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

feat: add storage protos #39

Merged
merged 3 commits into from
Feb 25, 2020
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
24 changes: 23 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down Expand Up @@ -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)
Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions cmake/config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down