blob: d51dd905a5342374f73997a40f9f43bc9a912b67 [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 Williams2a254922023-08-11 09:48:11 -050010SRCREV = "8a099e44b3d5f85b20f05828d919d2332a8de841"
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"