2017-09-29 02:38:37 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
|
|
|
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
|
|
message(FATAL_ERROR "Abseil currently only supports being built for desktop")
|
|
|
|
endif()
|
|
|
|
|
2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-09-29 02:38:37 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO abseil/abseil-cpp
|
2019-05-10 13:53:05 +08:00
|
|
|
REF aa468ad75539619b47979911297efbb629c52e44
|
|
|
|
SHA512 4254d8599103d8f06b03f60a0386eba07f314184217d0bca404d41fc0bd0a8df287fe6d07158d10cde096af3097aff2ecc1a5e8f7c3046ecf956b5fde709ad1d
|
2017-09-29 02:38:37 +08:00
|
|
|
HEAD_REF master
|
2019-08-28 06:52:18 +08:00
|
|
|
PATCHES
|
|
|
|
fix-usage-lnk-error.patch
|
|
|
|
fix-config.patch
|
2017-09-29 02:38:37 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2019-08-28 06:52:18 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/absl TARGET_PATH share/absl)
|
2017-09-29 02:38:37 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/abseil RENAME copyright)
|
2019-07-16 02:37:40 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/include
|
|
|
|
${CURRENT_PACKAGES_DIR}/include/absl/copts
|
|
|
|
${CURRENT_PACKAGES_DIR}/include/absl/strings/testdata
|
|
|
|
${CURRENT_PACKAGES_DIR}/include/absl/time/internal/cctz/testdata)
|