2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-09-08 22:16:07 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Cyan4973/xxHash
|
2020-09-28 08:33:19 +08:00
|
|
|
REF 94e5f23e736f2bb67ebdf90727353e65344f9fc0 # v0.8.0
|
|
|
|
SHA512 367c82b37fd188890574446a7c237294a4a9ba038aff9a19a5d5d119058df74c089c682e9abad3281d5e14020c08834666343b2ea18378f400c8a0ee640098b8
|
2019-06-06 02:35:14 +08:00
|
|
|
HEAD_REF dev
|
|
|
|
)
|
2017-03-25 04:49:08 +08:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}/cmake_unofficial
|
|
|
|
PREFER_NINJA
|
2019-05-03 13:57:43 +08:00
|
|
|
)
|
2017-03-25 04:49:08 +08:00
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
2020-09-28 08:33:19 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/xxHash TARGET_PATH share/${PORT})
|
2017-03-25 04:49:08 +08:00
|
|
|
|
2019-05-03 13:57:43 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
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)
|
2020-09-28 08:33:19 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|