vcpkg/ports/xxhash/portfile.cmake

30 lines
940 B
CMake
Raw Normal View History

2017-09-08 22:16:07 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Cyan4973/xxHash
REF 94e5f23e736f2bb67ebdf90727353e65344f9fc0 # v0.8.0
SHA512 367c82b37fd188890574446a7c237294a4a9ba038aff9a19a5d5d119058df74c089c682e9abad3281d5e14020c08834666343b2ea18378f400c8a0ee640098b8
HEAD_REF dev
)
2017-03-25 04:49:08 +08:00
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
xxhsum XXHASH_BUILD_XXHSUM
)
2017-03-25 04:49:08 +08:00
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}/cmake_unofficial
PREFER_NINJA
OPTIONS ${FEATURE_OPTIONS}
)
2017-03-25 04:49:08 +08:00
vcpkg_install_cmake()
vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/xxHash TARGET_PATH share/${PORT})
2017-03-25 04:49:08 +08:00
if("xxhsum" IN_LIST FEATURES)
vcpkg_copy_tools(TOOL_NAMES xxhsum AUTO_CLEAN)
endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
2017-03-25 04:49:08 +08:00
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)