2018-04-03 11:29:14 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
2019-01-09 04:42:41 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2018-04-03 11:29:14 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO GoogleCloudPlatform/google-cloud-cpp
|
2019-05-09 05:57:41 +08:00
|
|
|
REF v0.9.0
|
|
|
|
SHA512 b62051b9396efe8af8063d28ac958524b762a90c053f82030834bd38f018f0755487f6b39ceb5a0082d7cbf8784854c4effd81de27633086857330dc9bda182b
|
2018-04-03 11:29:14 +08:00
|
|
|
HEAD_REF master
|
2019-04-09 14:54:07 +08:00
|
|
|
PATCHES
|
|
|
|
cmake-libcurl-find-config.patch
|
2018-04-03 11:29:14 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
2019-01-09 04:42:41 +08:00
|
|
|
-DGOOGLE_CLOUD_CPP_DEPENDENCY_PROVIDER=package
|
2018-11-15 07:20:54 +08:00
|
|
|
-DGOOGLE_CLOUD_CPP_ENABLE_MACOS_OPENSSL_CHECK=OFF
|
2019-02-13 09:01:15 +08:00
|
|
|
-DBUILD_TESTING=OFF
|
2018-04-03 11:29:14 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake(ADD_BIN_TO_PATH)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2018-11-15 07:20:54 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake TARGET_PATH share)
|
2018-04-03 11:29:14 +08:00
|
|
|
|
2019-04-06 13:51:32 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
2018-04-03 11:29:14 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/google-cloud-cpp RENAME copyright)
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|