early-access version 2853
This commit is contained in:
30
externals/vcpkg/ports/pybind11/portfile.cmake
vendored
Executable file
30
externals/vcpkg/ports/pybind11/portfile.cmake
vendored
Executable file
@@ -0,0 +1,30 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO pybind/pybind11
|
||||
REF v2.9.2
|
||||
SHA512 c6c18e5f59873adb3692640ade26472abd257607e7bb9fd48cfd1949878811e83d6ac6eb8c8dd926622d52ca4f13e5e6a58e0abaaaa1fa814ee831ea2b515272
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DPYBIND11_TEST=OFF
|
||||
-DPYBIND11_FINDPYTHON=ON
|
||||
OPTIONS_RELEASE
|
||||
-DPYTHON_IS_DEBUG=OFF
|
||||
OPTIONS_DEBUG
|
||||
-DPYTHON_IS_DEBUG=ON
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH "share/cmake/pybind11")
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/")
|
||||
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/pybind11/pybind11Tools.cmake"
|
||||
[=[find_package(PythonLibsNew ${PYBIND11_PYTHON_VERSION} MODULE REQUIRED ${_pybind11_quiet})]=]
|
||||
[=[find_package(PythonLibs ${PYBIND11_PYTHON_VERSION} MODULE REQUIRED ${_pybind11_quiet})]=]) # CMake's PythonLibs works better with vcpkg
|
||||
|
||||
# copy license
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
19
externals/vcpkg/ports/pybind11/vcpkg.json
vendored
Executable file
19
externals/vcpkg/ports/pybind11/vcpkg.json
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "pybind11",
|
||||
"version": "2.9.2",
|
||||
"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": [
|
||||
"python3",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user