Skip to content

Commit 8040303

Browse files
authored
[google-cloud-cpp] update to the latest release (v2.21.0) (microsoft#36522)
* [google-cloud-cpp] update to the latest release (v2.21.0) * rerun version thingy * rerun version thingy again
1 parent f9a5556 commit 8040303

File tree

4 files changed

+35
-20
lines changed

4 files changed

+35
-20
lines changed

ports/google-cloud-cpp/portfile.cmake

+15-16
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ vcpkg_from_github(
44
OUT_SOURCE_PATH SOURCE_PATH
55
REPO googleapis/google-cloud-cpp
66
REF "v${VERSION}"
7-
SHA512 f017252b3fbccd5b91088a00c98a610606c5e98b920bf6c0889b6bf0f33f923c38a6116df7d9784381fd6b81ff4c303f55a609fde2e7182958a3c9cbab1f9f47
7+
SHA512 f02e26964a4049791bf4ce9580e738f245fb8380f9a1ccf3bd193296a4877aece72e8507efbbcabf7ef7072a810f6632c399748d804e33f3cc769ef49e334a88
88
HEAD_REF main
99
PATCHES
1010
support_absl_cxx17.patch
@@ -53,28 +53,27 @@ vcpkg_cmake_configure(
5353
vcpkg_cmake_install()
5454

5555
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
56-
foreach(feature IN LISTS FEATURES)
57-
set(config_path "lib/cmake/google_cloud_cpp_${feature}")
58-
# Most features get their own package in `google-cloud-cpp`.
59-
# The exceptions are captured by this `if()` command, basically
60-
# things like `core` and `experimental-storage-grpc` are skipped.
56+
57+
function (google_cloud_cpp_cmake_config_fixup library)
58+
set(config_path "lib/cmake/google_cloud_cpp_${library}")
59+
# If the library exists and is installed, tell vcpkg about it.
6160
if(NOT IS_DIRECTORY "${CURRENT_PACKAGES_DIR}/${config_path}")
62-
continue()
61+
return()
6362
endif()
64-
vcpkg_cmake_config_fixup(PACKAGE_NAME "google_cloud_cpp_${feature}"
63+
vcpkg_cmake_config_fixup(PACKAGE_NAME "google_cloud_cpp_${library}"
6564
CONFIG_PATH "${config_path}"
6665
DO_NOT_DELETE_PARENT_CONFIG_PATH)
66+
endfunction ()
67+
68+
foreach(feature IN LISTS GOOGLE_CLOUD_CPP_ENABLE)
69+
google_cloud_cpp_cmake_config_fixup(${feature})
70+
google_cloud_cpp_cmake_config_fixup(${feature}_mocks)
6771
endforeach()
72+
6873
# These packages are automatically installed depending on what features are
6974
# enabled.
70-
foreach(suffix common compute_protos googleapis grpc_utils iam_v2 logging_type rest_internal rest_protobuf_internal dialogflow_cx dialogflow_es)
71-
set(config_path "lib/cmake/google_cloud_cpp_${suffix}")
72-
if(NOT IS_DIRECTORY "${CURRENT_PACKAGES_DIR}/${config_path}")
73-
continue()
74-
endif()
75-
vcpkg_cmake_config_fixup(PACKAGE_NAME "google_cloud_cpp_${suffix}"
76-
CONFIG_PATH "${config_path}"
77-
DO_NOT_DELETE_PARENT_CONFIG_PATH)
75+
foreach(feature common compute_protos googleapis grpc_utils iam_v2 logging_type rest_internal rest_protobuf_internal)
76+
google_cloud_cpp_cmake_config_fixup(${feature})
7877
endforeach()
7978

8079
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/cmake"

ports/google-cloud-cpp/vcpkg.json

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "google-cloud-cpp",
3-
"version": "2.20.0",
4-
"port-version": 1,
3+
"version": "2.21.0",
54
"description": "C++ Client Libraries for Google Cloud Platform APIs.",
65
"homepage": "https://github.com/googleapis/google-cloud-cpp",
76
"license": "Apache-2.0",
@@ -1205,6 +1204,18 @@
12051204
}
12061205
]
12071206
},
1207+
"servicehealth": {
1208+
"description": "Personalized Service Health API C++ Client Library",
1209+
"dependencies": [
1210+
{
1211+
"name": "google-cloud-cpp",
1212+
"default-features": false,
1213+
"features": [
1214+
"grpc-common"
1215+
]
1216+
}
1217+
]
1218+
},
12081219
"servicemanagement": {
12091220
"description": "Service Management API C++ Client Library",
12101221
"dependencies": [

versions/baseline.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3081,8 +3081,8 @@
30813081
"port-version": 7
30823082
},
30833083
"google-cloud-cpp": {
3084-
"baseline": "2.20.0",
3085-
"port-version": 1
3084+
"baseline": "2.21.0",
3085+
"port-version": 0
30863086
},
30873087
"google-cloud-cpp-common": {
30883088
"baseline": "alias",

versions/g-/google-cloud-cpp.json

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "d8f3be8b308c4858ec0226b7aebe1e55a21298f4",
5+
"version": "2.21.0",
6+
"port-version": 0
7+
},
38
{
49
"git-tree": "363eb6725f35aaefdbd1da17ab0a3d1bd93e90cd",
510
"version": "2.20.0",

0 commit comments

Comments
 (0)