2017-09-08 22:16:07 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Cyan4973/xxHash
|
2021-12-02 11:22:09 +08:00
|
|
|
REF v0.8.1
|
|
|
|
SHA512 12feedd6a1859ef55e27218dbd6dcceccbb5a4da34cd80240d2f7d44cd246c7afdeb59830c2d5b90189bb5159293532208bf5bb622250102e12d6e1bad14a193
|
2019-06-06 02:35:14 +08:00
|
|
|
HEAD_REF dev
|
2023-04-20 09:53:47 +08:00
|
|
|
PATCHES
|
|
|
|
fix_xxhsum1_path.patch
|
2019-06-06 02:35:14 +08:00
|
|
|
)
|
2017-03-25 04:49:08 +08:00
|
|
|
|
2020-10-27 15:58:18 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-12-02 11:22:09 +08:00
|
|
|
FEATURES xxhsum XXHASH_BUILD_XXHSUM
|
2020-10-27 15:58:18 +08:00
|
|
|
)
|
|
|
|
|
2021-12-02 11:22:09 +08:00
|
|
|
vcpkg_cmake_configure(
|
2017-03-25 04:49:08 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}/cmake_unofficial
|
2020-10-27 15:58:18 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
2019-05-03 13:57:43 +08:00
|
|
|
)
|
2017-03-25 04:49:08 +08:00
|
|
|
|
2021-12-02 11:22:09 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-03-25 04:49:08 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2021-12-02 11:22:09 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/xxHash)
|
2017-03-25 04:49:08 +08:00
|
|
|
|
2020-10-27 15:58:18 +08:00
|
|
|
if("xxhsum" IN_LIST FEATURES)
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES xxhsum AUTO_CLEAN)
|
|
|
|
endif()
|
|
|
|
|
2019-06-06 02:35:14 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
2017-03-25 04:49:08 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2021-12-07 13:10:49 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2020-10-27 15:58:18 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|