diff options
| author | Carlos O'Ryan <coryan@users.noreply.github.com> | 2021-08-30 17:14:50 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-30 17:14:50 -0700 |
| commit | 4529856aebcdb61c63b062b11ed75b569e8e38bb (patch) | |
| tree | 09392c6c16043f971c49c80991f88fe166f6e61b /ports/google-cloud-cpp | |
| parent | 2777eada3f0608c337eced841c0023ab405e03d8 (diff) | |
| download | vcpkg-4529856aebcdb61c63b062b11ed75b569e8e38bb.tar.gz vcpkg-4529856aebcdb61c63b062b11ed75b569e8e38bb.zip | |
[google-cloud-cpp] use features to stop package growth (#19600)
* [google-cloud-cpp] use features to stop package growth
We have plans to grow `google-cloud-cpp`, but we think the build times
are large enough already. This creates "features" to at least stop the
package growth as new features are added. The "default-features"
reflects the current features in the package.
* Remove versions created during development
* Address review comments
Diffstat (limited to 'ports/google-cloud-cpp')
| -rw-r--r-- | ports/google-cloud-cpp/portfile.cmake | 5 | ||||
| -rw-r--r-- | ports/google-cloud-cpp/vcpkg.json | 113 |
2 files changed, 106 insertions, 12 deletions
diff --git a/ports/google-cloud-cpp/portfile.cmake b/ports/google-cloud-cpp/portfile.cmake index 6fb513e50..6dfe0070b 100644 --- a/ports/google-cloud-cpp/portfile.cmake +++ b/ports/google-cloud-cpp/portfile.cmake @@ -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") + 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 diff --git a/ports/google-cloud-cpp/vcpkg.json b/ports/google-cloud-cpp/vcpkg.json index f744436ff..b907123b6 100644 --- a/ports/google-cloud-cpp/vcpkg.json +++ b/ports/google-cloud-cpp/vcpkg.json @@ -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" + ] + } + } } |
