Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit c873fd3

Browse files
authored
feat: add storage protos (#39)
1 parent c1713cb commit c873fd3

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

CMakeLists.txt

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ set(GOOGLEAPIS_CPP_PROTO_FILES
9696
"google/spanner/v1/result_set.proto"
9797
"google/spanner/v1/spanner.proto"
9898
"google/spanner/v1/transaction.proto"
99-
"google/spanner/v1/type.proto")
99+
"google/spanner/v1/type.proto"
100+
"google/storage/v1/storage.proto"
101+
"google/storage/v1/storage_resources.proto")
100102

101103
set(GOOGLEAPIS_CPP_BYPRODUCTS)
102104
foreach (proto ${GOOGLEAPIS_CPP_PROTO_FILES})
@@ -325,6 +327,23 @@ target_link_libraries(
325327
googleapis-c++::rpc_status_protos
326328
PRIVATE googleapis_cpp_common_flags)
327329

330+
google_cloud_cpp_grpcpp_library(
331+
googleapis_cpp_storage_protos
332+
"${GOOGLEAPIS_CPP_SOURCE}/google/storage/v1/storage.proto"
333+
"${GOOGLEAPIS_CPP_SOURCE}/google/storage/v1/storage_resources.proto"
334+
PROTO_PATH_DIRECTORIES
335+
"${GOOGLEAPIS_CPP_SOURCE}"
336+
"${PROTO_INCLUDE_DIR}")
337+
googleapis_cpp_set_version_and_alias(storage_protos)
338+
target_link_libraries(
339+
googleapis_cpp_storage_protos
340+
PUBLIC googleapis-c++::api_annotations_protos
341+
googleapis-c++::api_client_protos
342+
googleapis-c++::api_field_behavior_protos
343+
googleapis-c++::iam_v1_iam_policy_protos
344+
googleapis-c++::iam_v1_policy_protos
345+
PRIVATE googleapis_cpp_common_flags)
346+
328347
# Install the libraries and headers in the locations determined by
329348
# GNUInstallDirs
330349
include(GNUInstallDirs)
@@ -334,6 +353,7 @@ set(googleapis_cpp_installed_libraries_list
334353
googleapis_cpp_cloud_bigquery_protos
335354
googleapis_cpp_pubsub_protos
336355
googleapis_cpp_spanner_protos
356+
googleapis_cpp_storage_protos
337357
googleapis_cpp_longrunning_operations_protos
338358
googleapis_cpp_api_http_protos
339359
googleapis_cpp_api_annotations_protos
@@ -425,6 +445,8 @@ string(
425445
CONCAT GOOGLE_CLOUD_CPP_PC_REQUIRES
426446
"googleapis_cpp_bigtable_protos"
427447
" googleapis_cpp_cloud_bigquery_protos"
448+
" googleapis_pubsub_protos"
449+
" googleapis_cpp_storage_protos"
428450
" googleapis_cpp_iam_v1_iam_policy_protos"
429451
" googleapis_cpp_iam_v1_options_protos"
430452
" googleapis_cpp_iam_v1_policy_protos"

cmake/config.cmake.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ foreach (_target
3838
rpc_error_details
3939
rpc_status
4040
spanner
41+
storage
4142
type_expr)
4243
set(scoped_name "googleapis-c++::${_target}_protos")
4344
set(imported_name "googleapis_cpp_${_target}_protos")

0 commit comments

Comments
 (0)