about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCarlos O'Ryan <coryan@users.noreply.github.com>2020-02-25T19·35-0500
committerGitHub <noreply@github.com>2020-02-25T19·35-0500
commitc873fd3aa14fb0d8696588117b5f79693381ba3c (patch)
tree595c8e032f0ae973deee9e350cb670612f0a4d8d
parentc1713cb00d5969dcb1a8b0775817d6b3d32886c3 (diff)
feat: add storage protos (#39)
-rw-r--r--CMakeLists.txt24
-rw-r--r--cmake/config.cmake.in1
2 files changed, 24 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7ead2b05c1..f755def484 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 e7b77c33ce..02169ef85c 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")