aboutsummaryrefslogtreecommitdiff
path: root/libs/vcpkg-registry/ports/pybind11
diff options
context:
space:
mode:
Diffstat (limited to 'libs/vcpkg-registry/ports/pybind11')
-rw-r--r--libs/vcpkg-registry/ports/pybind11/portfile.cmake23
-rw-r--r--libs/vcpkg-registry/ports/pybind11/vcpkg.json18
2 files changed, 41 insertions, 0 deletions
diff --git a/libs/vcpkg-registry/ports/pybind11/portfile.cmake b/libs/vcpkg-registry/ports/pybind11/portfile.cmake
new file mode 100644
index 0000000..1913e61
--- /dev/null
+++ b/libs/vcpkg-registry/ports/pybind11/portfile.cmake
@@ -0,0 +1,23 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO pybind/pybind11
+ REF "v${VERSION}"
+ SHA512 497C25B33B09A9C42F67131AB82E35D689E8CE089DD7639BE997305FF9A6D502447B79C824508C455D559E61F0186335B54DD2771D903A7C1621833930622D1A
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DPYBIND11_TEST=OFF
+ # Disable all Python searching, Python required only for tests
+ -DPYBIND11_NOPYTHON=ON
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH "share/cmake/pybind11")
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/libs/vcpkg-registry/ports/pybind11/vcpkg.json b/libs/vcpkg-registry/ports/pybind11/vcpkg.json
new file mode 100644
index 0000000..4cf6c77
--- /dev/null
+++ b/libs/vcpkg-registry/ports/pybind11/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "pybind11",
+ "version": "2.13.6",
+ "description": "pybind11 is a lightweight header-only library that exposes C++ types in Python and vice versa, mainly to create Python bindings of existing C++ code",
+ "homepage": "https://github.com/pybind/pybind11",
+ "license": "BSD-3-Clause",
+ "supports": "!(arm & windows)",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}