blob: f94ef3637beea8cc30c71e8a173e8adfb49fbb3b [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001SUMMARY = "Seamless operability between C++11 and Python"
Patrick Williams73bd93f2024-02-20 08:07:48 -06002HOMEPAGE = "https://github.com/pybind/pybind11"
3LICENSE = "BSD-3-Clause"
Patrick Williams92b42cb2022-09-03 06:53:57 -05004LIC_FILES_CHKSUM = "file://LICENSE;md5=774f65abd8a7fe3124be2cdf766cd06f"
5
Patrick Williams2a254922023-08-11 09:48:11 -05006SRCREV = "8a099e44b3d5f85b20f05828d919d2332a8de841"
Patrick Williams73bd93f2024-02-20 08:07:48 -06007SRC_URI = "git://github.com/pybind/pybind11.git;branch=stable;protocol=https"
Patrick Williams92b42cb2022-09-03 06:53:57 -05008
9S = "${WORKDIR}/git"
10
Patrick Williams73bd93f2024-02-20 08:07:48 -060011inherit cmake setuptools3
Patrick Williams92b42cb2022-09-03 06:53:57 -050012
Patrick Williams73bd93f2024-02-20 08:07:48 -060013EXTRA_OECMAKE = "-DPYBIND11_TEST=OFF"
Patrick Williams92b42cb2022-09-03 06:53:57 -050014
15PIP_INSTALL_DIST_PATH = "${S}/dist"
16PIP_INSTALL_PACKAGE = "pybind11"
17
18do_configure() {
Patrick Williamsb9af8752023-01-30 13:28:01 -060019 cmake_do_configure
Patrick Williams92b42cb2022-09-03 06:53:57 -050020}
21
22do_compile() {
Patrick Williamsb9af8752023-01-30 13:28:01 -060023 setuptools3_do_compile
24 cmake_do_compile
Patrick Williams92b42cb2022-09-03 06:53:57 -050025}
26
27do_install() {
Patrick Williamsb9af8752023-01-30 13:28:01 -060028 setuptools3_do_install
29 cmake_do_install
Patrick Williams92b42cb2022-09-03 06:53:57 -050030}
31
32BBCLASSEXTEND = "native nativesdk"