2020-09-17 08:00:57 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "uwp")
|
|
|
|
|
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
|
2019-06-06 07:38:37 +08:00
|
|
|
REPO googleapis/google-cloud-cpp
|
2021-09-08 12:06:57 +08:00
|
|
|
REF v1.31.1
|
|
|
|
SHA512 c172280cc934978505524d53bc804dc9079af21a1357f347b0bd3554d25cc2d57dec3869f1ba01f9eacaa1367feede84ae158fa3e9039b0e6bb87f7c27717bb1
|
2018-04-03 11:29:14 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-03-27 03:55:34 +08:00
|
|
|
vcpkg_add_to_path(PREPEND "${CURRENT_HOST_INSTALLED_DIR}/tools/grpc")
|
|
|
|
|
2021-08-31 08:14:50 +08:00
|
|
|
set(GOOGLE_CLOUD_CPP_ENABLE "${FEATURES}")
|
|
|
|
list(REMOVE_ITEM GOOGLE_CLOUD_CPP_ENABLE "core")
|
|
|
|
list(REMOVE_ITEM GOOGLE_CLOUD_CPP_ENABLE "googleapis")
|
|
|
|
|
2018-04-03 11:29:14 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2019-08-08 07:43:35 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2018-04-03 11:29:14 +08:00
|
|
|
OPTIONS
|
2021-08-31 08:14:50 +08:00
|
|
|
"-DGOOGLE_CLOUD_CPP_ENABLE=${GOOGLE_CLOUD_CPP_ENABLE}"
|
2018-11-15 07:20:54 +08:00
|
|
|
-DGOOGLE_CLOUD_CPP_ENABLE_MACOS_OPENSSL_CHECK=OFF
|
2020-06-03 13:46:06 +08:00
|
|
|
-DGOOGLE_CLOUD_CPP_ENABLE_WERROR=OFF
|
2021-03-27 03:55:34 +08:00
|
|
|
-DGOOGLE_CLOUD_CPP_ENABLE_CCACHE=OFF
|
2021-06-05 07:50:36 +08:00
|
|
|
-DGOOGLE_CLOUD_CPP_ENABLE_EXAMPLES=OFF
|
2019-11-20 07:57:48 +08:00
|
|
|
-DBUILD_TESTING=OFF
|
2018-04-03 11:29:14 +08:00
|
|
|
)
|
|
|
|
|
2021-03-27 03:55:34 +08:00
|
|
|
vcpkg_install_cmake()
|
2018-04-03 11:29:14 +08:00
|
|
|
|
|
|
|
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)
|
2020-02-09 12:23:12 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
2018-04-03 11:29:14 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|