From c873fd3aa14fb0d8696588117b5f79693381ba3c Mon Sep 17 00:00:00 2001 From: Carlos O'Ryan Date: Tue, 25 Feb 2020 14:35:22 -0500 Subject: [PATCH] feat: add storage protos (#39) --- CMakeLists.txt | 24 +++++++++++++++++++++++- cmake/config.cmake.in | 1 + 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ead2b05c..f755def48 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,7 +96,9 @@ set(GOOGLEAPIS_CPP_PROTO_FILES "google/spanner/v1/result_set.proto" "google/spanner/v1/spanner.proto" "google/spanner/v1/transaction.proto" - "google/spanner/v1/type.proto") + "google/spanner/v1/type.proto" + "google/storage/v1/storage.proto" + "google/storage/v1/storage_resources.proto") set(GOOGLEAPIS_CPP_BYPRODUCTS) foreach (proto ${GOOGLEAPIS_CPP_PROTO_FILES}) @@ -325,6 +327,23 @@ target_link_libraries( googleapis-c++::rpc_status_protos PRIVATE googleapis_cpp_common_flags) +google_cloud_cpp_grpcpp_library( + googleapis_cpp_storage_protos + "${GOOGLEAPIS_CPP_SOURCE}/google/storage/v1/storage.proto" + "${GOOGLEAPIS_CPP_SOURCE}/google/storage/v1/storage_resources.proto" + PROTO_PATH_DIRECTORIES + "${GOOGLEAPIS_CPP_SOURCE}" + "${PROTO_INCLUDE_DIR}") +googleapis_cpp_set_version_and_alias(storage_protos) +target_link_libraries( + googleapis_cpp_storage_protos + PUBLIC googleapis-c++::api_annotations_protos + googleapis-c++::api_client_protos + googleapis-c++::api_field_behavior_protos + googleapis-c++::iam_v1_iam_policy_protos + googleapis-c++::iam_v1_policy_protos + PRIVATE googleapis_cpp_common_flags) + # Install the libraries and headers in the locations determined by # GNUInstallDirs include(GNUInstallDirs) @@ -334,6 +353,7 @@ set(googleapis_cpp_installed_libraries_list googleapis_cpp_cloud_bigquery_protos googleapis_cpp_pubsub_protos googleapis_cpp_spanner_protos + googleapis_cpp_storage_protos googleapis_cpp_longrunning_operations_protos googleapis_cpp_api_http_protos googleapis_cpp_api_annotations_protos @@ -425,6 +445,8 @@ string( CONCAT GOOGLE_CLOUD_CPP_PC_REQUIRES "googleapis_cpp_bigtable_protos" " googleapis_cpp_cloud_bigquery_protos" + " googleapis_pubsub_protos" + " googleapis_cpp_storage_protos" " googleapis_cpp_iam_v1_iam_policy_protos" " googleapis_cpp_iam_v1_options_protos" " googleapis_cpp_iam_v1_policy_protos" diff --git a/cmake/config.cmake.in b/cmake/config.cmake.in index e7b77c33c..02169ef85 100644 --- a/cmake/config.cmake.in +++ b/cmake/config.cmake.in @@ -38,6 +38,7 @@ foreach (_target rpc_error_details rpc_status spanner + storage type_expr) set(scoped_name "googleapis-c++::${_target}_protos") set(imported_name "googleapis_cpp_${_target}_protos")