blob: 78662fe3cdaa79ddae4f295fdad2ca90053fc71d [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"
Patrick Williams39653562024-03-01 08:54:02 -06005DEPENDS = "\
6 python3-cmake-native \
7 python3-ninja-native \
8"
Patrick Williams92b42cb2022-09-03 06:53:57 -05009
Patrick Williams2a254922023-08-11 09:48:11 -050010SRCREV = "8a099e44b3d5f85b20f05828d919d2332a8de841"
Patrick Williams39653562024-03-01 08:54:02 -060011SRC_URI = "\
12 git://github.com/pybind/pybind11.git;branch=stable;protocol=https \
13 file://0001-Do-not-strip-binaries.patch \
14"
Patrick Williams92b42cb2022-09-03 06:53:57 -050015
16S = "${WORKDIR}/git"
17
Patrick Williams39653562024-03-01 08:54:02 -060018inherit cmake python_setuptools_build_meta
Patrick Williams92b42cb2022-09-03 06:53:57 -050019
Patrick Williams73bd93f2024-02-20 08:07:48 -060020EXTRA_OECMAKE = "-DPYBIND11_TEST=OFF"
Patrick Williams92b42cb2022-09-03 06:53:57 -050021
Patrick Williams39653562024-03-01 08:54:02 -060022do_configure:append() {
23 cmake_do_configure
Patrick Williams92b42cb2022-09-03 06:53:57 -050024}
25
Patrick Williams39653562024-03-01 08:54:02 -060026do_compile:append() {
27 cmake_do_compile
Patrick Williams92b42cb2022-09-03 06:53:57 -050028}
29
Patrick Williams39653562024-03-01 08:54:02 -060030do_install:append() {
31 cmake_do_install
Patrick Williams92b42cb2022-09-03 06:53:57 -050032}
33
34BBCLASSEXTEND = "native nativesdk"