mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 22:47:49 +08:00
24e8be5fcf
* [boost] update to 1.73 * [ompl] remove dependency to boost-disjoint-sets * [libtorrent] include fixes from RC_1_2 branch * [liblas] fix boost headers * [freeopcua] fix std headers * [pcl] fix build with Boost 1.73.0 * [hpx] fix build with Boost 1.73.0 * [libmysql] fix conflict with C++20 header <version> * [boost-modular-build-helper] move port-specific b2 options to the file `<port_dir>/b2-options.cmake` [boost-python] support Python2 (fixes #3495) * [boost-python] remove Python executable from user-config * [libtorrent] update version after merge * [libtorrent] add boost-variant dependency
90 lines
2.7 KiB
CMake
90 lines
2.7 KiB
CMake
|
|
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO STEllAR-GROUP/hpx
|
|
REF 1.4.1
|
|
SHA512 f110d5e5c10ec396f6e762568c9ecd5b767cb6efe91168b5caa8fe1e07bb5870cd13b3392fa4e008a2cc0e044b02084a35b0866e943d9b9c7435599c131f1582
|
|
HEAD_REF stable
|
|
PATCHES
|
|
boost-1.73.patch
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
"-DBOOST_ROOT=${CURRENT_INSTALLED_DIR}/share/boost"
|
|
"-DHWLOC_ROOT=${CURRENT_INSTALLED_DIR}/share/hwloc"
|
|
-DHPX_WITH_VCPKG=ON
|
|
-DHPX_WITH_TESTS=OFF
|
|
-DHPX_WITH_EXAMPLES=OFF
|
|
-DHPX_WITH_TOOLS=OFF
|
|
-DHPX_WITH_RUNTIME=OFF
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
# post build cleanup
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/HPX)
|
|
|
|
file(GLOB_RECURSE CMAKE_FILES "${CURRENT_PACKAGES_DIR}/share/hpx/*.cmake")
|
|
foreach(CMAKE_FILE IN LISTS CMAKE_FILES)
|
|
file(READ ${CMAKE_FILE} _contents)
|
|
string(REGEX REPLACE
|
|
"lib/([A-Za-z0-9_.-]+\\.dll)"
|
|
"bin/\\1"
|
|
_contents "${_contents}")
|
|
string(REGEX REPLACE
|
|
"lib/hpx/([A-Za-z0-9_.-]+\\.dll)"
|
|
"bin/hpx/\\1"
|
|
_contents "${_contents}")
|
|
file(WRITE ${CMAKE_FILE} "${_contents}")
|
|
endforeach()
|
|
|
|
vcpkg_replace_string(
|
|
"${CURRENT_PACKAGES_DIR}/share/${PORT}/HPXMacros.cmake"
|
|
"set(CMAKE_MODULE_PATH \${CMAKE_MODULE_PATH} \"\${CMAKE_CURRENT_LIST_DIR}\")"
|
|
"list(APPEND CMAKE_MODULE_PATH \"\${CMAKE_CURRENT_LIST_DIR}\")")
|
|
|
|
file(INSTALL
|
|
${SOURCE_PATH}/LICENSE_1_0.txt
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
|
|
file(GLOB DLLS ${CURRENT_PACKAGES_DIR}/lib/*.dll)
|
|
if(DLLS)
|
|
file(COPY ${DLLS} DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
|
|
file(REMOVE ${DLLS})
|
|
endif()
|
|
|
|
file(GLOB DLLS ${CURRENT_PACKAGES_DIR}/lib/hpx/*.dll)
|
|
if(DLLS)
|
|
file(COPY ${DLLS} DESTINATION ${CURRENT_PACKAGES_DIR}/bin/hpx)
|
|
file(REMOVE ${DLLS})
|
|
endif()
|
|
|
|
file(GLOB DLLS ${CURRENT_PACKAGES_DIR}/debug/lib/*.dll)
|
|
if(DLLS)
|
|
file(COPY ${DLLS} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
file(REMOVE ${DLLS})
|
|
endif()
|
|
|
|
file(GLOB DLLS ${CURRENT_PACKAGES_DIR}/debug/lib/hpx/*.dll)
|
|
if(DLLS)
|
|
file(COPY ${DLLS} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin/hpx)
|
|
file(REMOVE ${DLLS})
|
|
endif()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/bazel)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/cmake)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/pkgconfig)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/bazel)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig)
|
|
|
|
vcpkg_copy_pdbs()
|