Skip to content

Commit

Permalink
[google-cloud-cpp] update to the latest release (v2.23) (#38204)
Browse files Browse the repository at this point in the history
Updates google-cloud-cpp to the latest release (v2.23.0)

Removed `DGOOGLE_CLOUD_CPP_ENABLE_CTYPE_CORD_WORKAROUND` since it is no
longer used because it is automatically set now
(googleapis/google-cloud-cpp#13877).

Tested locally (on x64-linux) with:

```
 for feature in "cloudcontrolspartner" "storagecontrol" "apphub" "backupdr"; do ./vcpkg remove google-cloud-cpp; ./vcpkg install "google-cloud-cpp[core,${feature}]" || break; done
```

and

```
./vcpkg remove google-cloud-cpp && ./vcpkg install 'google-cloud-cpp[*]'
```

- [x] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [x] SHA512s are updated for each updated download.
- [x] The "supports" clause reflects platforms that may be fixed by this
new version.
- [x] Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.
- [x] Any patches that are no longer applied are deleted from the port's
directory.
- [x] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [x] Only one version is added to each modified port's versions file.
  • Loading branch information
alevenberg committed Apr 24, 2024
1 parent b5ae18f commit ece635c
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 10 deletions.
6 changes: 1 addition & 5 deletions ports/google-cloud-cpp/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO googleapis/google-cloud-cpp
REF "v${VERSION}"
SHA512 5e77e08a5321f5cf794cb9e4cc4745e069a7dbc161414dac309f1bb5ea52d0adae086b13aed7195a7725a59cbc92206dd391aeef86dbf44bec7a8bee266c8881
SHA512 52cab0e1ee1ebd51097d28b2cd9a390110ce3f45e92d262fb301cfebdea369ea8b9290c44c26d6b6ba568b0dab1e4871ea819f8a440efeefb38c99f2776aac27
HEAD_REF main
PATCHES
support_absl_cxx17.patch
Expand Down Expand Up @@ -48,10 +48,6 @@ vcpkg_cmake_configure(
-DGOOGLE_CLOUD_CPP_ENABLE_CCACHE=OFF
-DGOOGLE_CLOUD_CPP_ENABLE_EXAMPLES=OFF
-DBUILD_TESTING=OFF
# This is needed by the `experimental-storage-grpc` feature until vcpkg
# gets Protobuf >= 4.23.0. It has no effect for other features, so
# it is simpler to just always turn it on.
-DGOOGLE_CLOUD_CPP_ENABLE_CTYPE_CORD_WORKAROUND=ON
)

vcpkg_cmake_install()
Expand Down
56 changes: 53 additions & 3 deletions ports/google-cloud-cpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"name": "google-cloud-cpp",
"version": "2.22.0",
"port-version": 1,
"version": "2.23.0",
"description": "C++ Client Libraries for Google Cloud Platform APIs.",
"homepage": "https://github.com/googleapis/google-cloud-cpp",
"license": "Apache-2.0",
"supports": "!uwp",
"dependencies": [
"abseil",
"openssl",
{
"name": "openssl",
"platform": "!windows"
},
{
"name": "vcpkg-cmake",
"host": true
Expand Down Expand Up @@ -123,6 +125,18 @@
}
]
},
"apphub": {
"description": "App Hub API C++ Client Library",
"dependencies": [
{
"name": "google-cloud-cpp",
"default-features": false,
"features": [
"grpc-common"
]
}
]
},
"artifactregistry": {
"description": "Artifact Registry API C++ Client Library",
"dependencies": [
Expand Down Expand Up @@ -174,6 +188,18 @@
}
]
},
"backupdr": {
"description": "Backup and DR Service API C++ Client Library",
"dependencies": [
{
"name": "google-cloud-cpp",
"default-features": false,
"features": [
"grpc-common"
]
}
]
},
"baremetalsolution": {
"description": "Bare Metal Solution API C++ Client Library",
"dependencies": [
Expand Down Expand Up @@ -296,6 +322,18 @@
}
]
},
"cloudcontrolspartner": {
"description": "Cloud Controls Partner API C++ Client Library",
"dependencies": [
{
"name": "google-cloud-cpp",
"default-features": false,
"features": [
"grpc-common"
]
}
]
},
"cloudquotas": {
"description": "Cloud Quotas API C++ Client Library",
"dependencies": [
Expand Down Expand Up @@ -1315,6 +1353,18 @@
}
]
},
"storagecontrol": {
"description": "Cloud Storage Control API C++ Client Library",
"dependencies": [
{
"name": "google-cloud-cpp",
"default-features": false,
"features": [
"grpc-common"
]
}
]
},
"storageinsights": {
"description": "Storage Insights API C++ Client Library",
"dependencies": [
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3125,8 +3125,8 @@
"port-version": 8
},
"google-cloud-cpp": {
"baseline": "2.22.0",
"port-version": 1
"baseline": "2.23.0",
"port-version": 0
},
"google-cloud-cpp-common": {
"baseline": "alias",
Expand Down
5 changes: 5 additions & 0 deletions versions/g-/google-cloud-cpp.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "bdd2c8a586337113246e4bb739b6d1d21e638b34",
"version": "2.23.0",
"port-version": 0
},
{
"git-tree": "671453ab8dafcf8bb0bbfa87a3649c26c6236942",
"version": "2.22.0",
Expand Down

0 comments on commit ece635c

Please sign in to comment.