2019-01-08 15:42:41 -05:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2018-04-02 23:29:14 -04:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2019-06-05 19:38:37 -04:00
|
|
|
REPO googleapis/google-cloud-cpp
|
2020-04-07 13:03:46 -04:00
|
|
|
REF v0.21.0
|
|
|
|
SHA512 744c7a14c31966df1f1383ad5804428807babf53079ed96514367f145eb38b4b90be3e0f9c6f16deb9269c754fd5a44e898e5afb77f6f749ba968605d79b8397
|
2018-04-02 23:29:14 -04:00
|
|
|
HEAD_REF master
|
2020-01-10 13:32:55 -05:00
|
|
|
PATCHES
|
|
|
|
0001-fix-x86-build.patch
|
2018-04-02 23:29:14 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2019-08-07 19:43:35 -04:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2018-04-02 23:29:14 -04:00
|
|
|
OPTIONS
|
2019-01-08 15:42:41 -05:00
|
|
|
-DGOOGLE_CLOUD_CPP_DEPENDENCY_PROVIDER=package
|
2018-11-14 18:20:54 -05:00
|
|
|
-DGOOGLE_CLOUD_CPP_ENABLE_MACOS_OPENSSL_CHECK=OFF
|
2019-11-19 18:57:48 -05:00
|
|
|
-DBUILD_TESTING=OFF
|
2018-04-02 23:29:14 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake(ADD_BIN_TO_PATH)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2018-11-14 18:20:54 -05:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake TARGET_PATH share)
|
2018-04-02 23:29:14 -04:00
|
|
|
|
2019-04-06 01:51:32 -04:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
2020-02-08 23:23:12 -05:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
2018-04-02 23:29:14 -04:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|