2020-09-10 02:43:20 +08:00
|
|
|
#https://github.com/google/benchmark/issues/661
|
|
|
|
vcpkg_fail_port_install(ON_TARGET "uwp")
|
2017-05-10 07:43:39 +08:00
|
|
|
|
2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-05-10 07:43:39 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/benchmark
|
2020-10-14 04:17:32 +08:00
|
|
|
REF 73d4d5e8d6d449fc8663765a42aa8aeeee844489 # v1.5.2
|
|
|
|
SHA512 b87a7c207eb85187165df8ff99ab1bbf5d38fc2a6d839e267a71987951c94e33b55fd7fbee6f2b59202b0379a7e9705b73b193edaea0b9c742eddf3fcbe5f48e
|
2017-05-10 07:43:39 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
2017-09-21 16:20:51 +08:00
|
|
|
-DBENCHMARK_ENABLE_TESTING=OFF
|
2017-05-10 07:43:39 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2017-09-16 05:07:08 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/benchmark)
|
2017-05-10 07:43:39 +08:00
|
|
|
|
2020-09-10 02:43:20 +08:00
|
|
|
vcpkg_fixup_pkgconfig(SYSTEM_LIBRARIES pthread)
|
|
|
|
|
2017-05-10 07:43:39 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2017-09-15 17:00:36 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
2017-05-10 07:43:39 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2020-09-10 02:43:20 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|