mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 15:41:48 +08:00
e7e328cf9d
* [many ports] call vcpkg_fixup_pkgconfig() The ports generate pc files, but don't call vcpkg_fixup_pkgconfig() so that there are absolute paths in the pc files * Update port-version for armadillo and polyclipping. * Update version database. Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
63 lines
2.1 KiB
CMake
63 lines
2.1 KiB
CMake
vcpkg_fail_port_install(ON_TARGET "uwp")
|
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
# Building python bindings is currently broken on Windows
|
|
if("python" IN_LIST FEATURES)
|
|
message(FATAL_ERROR "The python feature is currently broken on Windows")
|
|
endif()
|
|
if(VCPKG_CRT_LINKAGE STREQUAL "static")
|
|
set(_static_runtime ON)
|
|
endif()
|
|
endif()
|
|
|
|
vcpkg_check_features(
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
deprfun deprecated-functions
|
|
examples build_examples
|
|
iconv iconv
|
|
python python-bindings
|
|
test build_tests
|
|
tools build_tools
|
|
)
|
|
|
|
# Note: the python feature currently requires `python3-dev` and `python3-setuptools` installed on the system
|
|
if("python" IN_LIST FEATURES)
|
|
vcpkg_find_acquire_program(PYTHON3)
|
|
get_filename_component(PYTHON3_PATH ${PYTHON3} DIRECTORY)
|
|
vcpkg_add_to_path(${PYTHON3_PATH})
|
|
|
|
file(GLOB BOOST_PYTHON_LIB "${CURRENT_INSTALLED_DIR}/lib/*boost_python*")
|
|
string(REGEX REPLACE ".*(python)([0-9])([0-9]+).*" "\\1\\2\\3" _boost-python-module-name "${BOOST_PYTHON_LIB}")
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO arvidn/libtorrent
|
|
REF 33a10d5a723a6c27d9baee7d9bf2028eb81c88ed # v1.2.14
|
|
SHA512 7be169625c9ab1319047aa025abb36579cf6c749faeee7788b5c0ca24ca32d0a4bfd898415159b9133302da4d26230edcb5585c12137edcab8f5b3548c67a268
|
|
HEAD_REF RC_1_2
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
-Dboost-python-module-name=${_boost-python-module-name}
|
|
-Dstatic_runtime=${_static_runtime}
|
|
-DPython3_USE_STATIC_LIBS=ON
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/LibtorrentRasterbar TARGET_PATH share/LibtorrentRasterbar)
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
|
|
# Do not duplicate include files
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share ${CURRENT_PACKAGES_DIR}/share/cmake)
|
|
|
|
vcpkg_fixup_pkgconfig()
|