blob: bb604982d0aa0a48804b81aac550bf32eedf891b [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001SUMMARY = "Seamless operability between C++11 and Python"
2HOMEPAGE = "https://github.com/wjakob/pybind11"
3LICENSE = "BSD-2-Clause"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=774f65abd8a7fe3124be2cdf766cd06f"
5
6DEPENDS = "boost"
7
Patrick Williamsb9af8752023-01-30 13:28:01 -06008SRC_URI = "git://github.com/pybind/pybind11.git;branch=stable;protocol=https"
Patrick Williams92b42cb2022-09-03 06:53:57 -05009
Patrick Williamsb9af8752023-01-30 13:28:01 -060010SRCREV = "0bd8896a4010f2d91b2340570c24fa08606ec406"
Patrick Williams92b42cb2022-09-03 06:53:57 -050011
12S = "${WORKDIR}/git"
13
Patrick Williams92b42cb2022-09-03 06:53:57 -050014EXTRA_OECMAKE = "-DPYBIND11_TEST=OFF"
15
16inherit cmake setuptools3 python3native
17
18PIP_INSTALL_DIST_PATH = "${S}/dist"
19PIP_INSTALL_PACKAGE = "pybind11"
20
21do_configure() {
Patrick Williamsb9af8752023-01-30 13:28:01 -060022 cmake_do_configure
Patrick Williams92b42cb2022-09-03 06:53:57 -050023}
24
25do_compile() {
Patrick Williamsb9af8752023-01-30 13:28:01 -060026 setuptools3_do_compile
27 cmake_do_compile
Patrick Williams92b42cb2022-09-03 06:53:57 -050028}
29
30do_install() {
Patrick Williamsb9af8752023-01-30 13:28:01 -060031 setuptools3_do_install
32 cmake_do_install
Patrick Williams92b42cb2022-09-03 06:53:57 -050033}
34
35BBCLASSEXTEND = "native nativesdk"