Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 1 | SUMMARY = "Seamless operability between C++11 and Python" |
Patrick Williams | 73bd93f | 2024-02-20 08:07:48 -0600 | [diff] [blame^] | 2 | HOMEPAGE = "https://github.com/pybind/pybind11" |
| 3 | LICENSE = "BSD-3-Clause" |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=774f65abd8a7fe3124be2cdf766cd06f" |
| 5 | |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 6 | SRCREV = "8a099e44b3d5f85b20f05828d919d2332a8de841" |
Patrick Williams | 73bd93f | 2024-02-20 08:07:48 -0600 | [diff] [blame^] | 7 | SRC_URI = "git://github.com/pybind/pybind11.git;branch=stable;protocol=https" |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 8 | |
| 9 | S = "${WORKDIR}/git" |
| 10 | |
Patrick Williams | 73bd93f | 2024-02-20 08:07:48 -0600 | [diff] [blame^] | 11 | inherit cmake setuptools3 |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 12 | |
Patrick Williams | 73bd93f | 2024-02-20 08:07:48 -0600 | [diff] [blame^] | 13 | EXTRA_OECMAKE = "-DPYBIND11_TEST=OFF" |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 14 | |
| 15 | PIP_INSTALL_DIST_PATH = "${S}/dist" |
| 16 | PIP_INSTALL_PACKAGE = "pybind11" |
| 17 | |
| 18 | do_configure() { |
Patrick Williams | b9af875 | 2023-01-30 13:28:01 -0600 | [diff] [blame] | 19 | cmake_do_configure |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | do_compile() { |
Patrick Williams | b9af875 | 2023-01-30 13:28:01 -0600 | [diff] [blame] | 23 | setuptools3_do_compile |
| 24 | cmake_do_compile |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | do_install() { |
Patrick Williams | b9af875 | 2023-01-30 13:28:01 -0600 | [diff] [blame] | 28 | setuptools3_do_install |
| 29 | cmake_do_install |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | BBCLASSEXTEND = "native nativesdk" |