2018-01-29 22:59:21 +02:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/crc32c
|
2018-12-11 22:28:05 -05:00
|
|
|
REF 1.0.6
|
|
|
|
SHA512 c30f6510d6348f15dcdddc06e375f21a69681cd615483d67628b32de747e5e98200fa49faf7e3fc30a1302991fd1f9c9a706c9eb4e13c9c6c09e74066474ea7b
|
2018-01-29 22:59:21 +02:00
|
|
|
HEAD_REF master
|
2018-12-14 23:12:44 -05:00
|
|
|
PATCHES ${CMAKE_CURRENT_LIST_DIR}/0001_export_symbols.patch
|
2018-01-29 22:59:21 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
2018-10-20 13:19:50 -07:00
|
|
|
-DCRC32C_BUILD_TESTS=OFF
|
|
|
|
-DCRC32C_BUILD_BENCHMARKS=OFF
|
|
|
|
-DCRC32C_USE_GLOG=OFF
|
2018-01-29 22:59:21 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
2018-10-20 13:19:50 -07:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/Crc32c")
|
2018-01-29 22:59:21 +02:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
|
2018-10-20 13:19:50 -07:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2018-01-29 22:59:21 +02:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/crc32c RENAME copyright)
|