Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[google-cloud-cpp] use features to stop package growth #19600

Merged
merged 3 commits into from
Aug 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ports/google-cloud-cpp/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@ vcpkg_from_github(

vcpkg_add_to_path(PREPEND "${CURRENT_HOST_INSTALLED_DIR}/tools/grpc")

set(GOOGLE_CLOUD_CPP_ENABLE "${FEATURES}")
list(REMOVE_ITEM GOOGLE_CLOUD_CPP_ENABLE "core")
list(REMOVE_ITEM GOOGLE_CLOUD_CPP_ENABLE "googleapis")
JackBoosY marked this conversation as resolved.
Show resolved Hide resolved

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
DISABLE_PARALLEL_CONFIGURE
OPTIONS
"-DGOOGLE_CLOUD_CPP_ENABLE=${GOOGLE_CLOUD_CPP_ENABLE}"
-DGOOGLE_CLOUD_CPP_ENABLE_MACOS_OPENSSL_CHECK=OFF
-DGOOGLE_CLOUD_CPP_ENABLE_WERROR=OFF
-DGOOGLE_CLOUD_CPP_ENABLE_CCACHE=OFF
Expand Down
113 changes: 101 additions & 12 deletions ports/google-cloud-cpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,113 @@
{
"name": "google-cloud-cpp",
"version": "1.30.1",
"port-version": 1,
"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",
"crc32c",
{
"name": "curl",
"features": [
"ssl"
"abseil"
],
"default-features": [
"bigquery",
"bigtable",
"iam",
"pubsub",
"spanner",
"storage"
],
"features": {
"bigquery": {
"description": "The Google Cloud BigQuery C++ client library",
"dependencies": [
"grpc",
{
"name": "grpc",
"host": true
},
"protobuf",
{
"name": "protobuf",
"host": true
}
]
},
{
"name": "grpc",
"host": true
"bigtable": {
"description": "The Google Cloud Bigtable C++ client library",
"dependencies": [
"grpc",
{
"name": "grpc",
"host": true
},
"protobuf",
{
"name": "protobuf",
"host": true
}
]
},
"firestore": {
"description": "Community contributions to interact with Firestore"
},
"grpc",
"nlohmann-json"
]
"iam": {
"description": "The Google Cloud IAM C++ client library",
"dependencies": [
"grpc",
{
"name": "grpc",
"host": true
},
"protobuf",
{
"name": "protobuf",
"host": true
}
]
},
"pubsub": {
"description": "The Google Cloud Bigtable C++ client library",
"dependencies": [
"grpc",
{
"name": "grpc",
"host": true
},
"protobuf",
{
"name": "protobuf",
"host": true
}
]
},
"spanner": {
"description": "The Google Cloud Spanner C++ client library",
"dependencies": [
"grpc",
{
"name": "grpc",
"host": true
},
"protobuf",
{
"name": "protobuf",
"host": true
}
]
},
"storage": {
"description": "The Google Cloud Storage C++ client library",
"dependencies": [
"crc32c",
{
"name": "curl",
"features": [
"ssl"
]
},
"nlohmann-json"
]
}
}
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2382,7 +2382,7 @@
},
"google-cloud-cpp": {
"baseline": "1.30.1",
"port-version": 0
"port-version": 1
},
"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": "7e4c28a8a9e84631228981bd73a3932596fe8e1f",
"version": "1.30.1",
"port-version": 1
},
{
"git-tree": "254b48f7254b7ab5b4ac6676ccd3149274f154f0",
"version": "1.30.1",
Expand Down