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

Commit 7420d53

Browse files
authored
Merge pull request #16 from coryan/add-cloudtrace-v2-trace-library
feat: Add library for cloudtrace/v2/trace.proto.
2 parents 1d42dc5 + 1e638c6 commit 7420d53

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

CMakeLists.txt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ ExternalProject_Add(
6363
"${GOOGLEAPIS_CPP_SOURCE}/google/api/auth.proto"
6464
"${GOOGLEAPIS_CPP_SOURCE}/google/api/client.proto"
6565
"${GOOGLEAPIS_CPP_SOURCE}/google/api/resource.proto"
66+
"${GOOGLEAPIS_CPP_SOURCE}/google/devtools/cloudtrace/v2/trace.proto"
67+
"${GOOGLEAPIS_CPP_SOURCE}/google/devtools/cloudtrace/v2/tracing.proto"
6668
"${GOOGLEAPIS_CPP_SOURCE}/google/type/expr.proto"
6769
"${GOOGLEAPIS_CPP_SOURCE}/google/rpc/error_details.proto"
6870
"${GOOGLEAPIS_CPP_SOURCE}/google/rpc/status.proto"
@@ -280,6 +282,31 @@ target_link_libraries(googleapis_cpp_spanner_protos
280282
googleapis-c++::iam_v1_iam_policy_protos
281283
PRIVATE googleapis_cpp_common_flags)
282284

285+
google_cloud_cpp_grpcpp_library(
286+
googleapis_cpp_devtools_cloudtrace_v2_trace_protos
287+
"${GOOGLEAPIS_CPP_SOURCE}/google/devtools/cloudtrace/v2/trace.proto"
288+
PROTO_PATH_DIRECTORIES
289+
"${GOOGLEAPIS_CPP_SOURCE}"
290+
"${PROTO_INCLUDE_DIR}")
291+
googleapis_cpp_set_version_and_alias(devtools_cloudtrace_v2_trace_protos)
292+
target_link_libraries(googleapis_cpp_devtools_cloudtrace_v2_trace_protos
293+
PUBLIC googleapis-c++::api_annotations_protos
294+
googleapis-c++::rpc_status_protos
295+
PRIVATE googleapis_cpp_common_flags)
296+
297+
google_cloud_cpp_grpcpp_library(
298+
googleapis_cpp_devtools_cloudtrace_v2_tracing_protos
299+
"${GOOGLEAPIS_CPP_SOURCE}/google/devtools/cloudtrace/v2/tracing.proto"
300+
PROTO_PATH_DIRECTORIES
301+
"${GOOGLEAPIS_CPP_SOURCE}"
302+
"${PROTO_INCLUDE_DIR}")
303+
googleapis_cpp_set_version_and_alias(devtools_cloudtrace_v2_tracing_protos)
304+
target_link_libraries(googleapis_cpp_devtools_cloudtrace_v2_tracing_protos
305+
PUBLIC googleapis-c++::devtools_cloudtrace_v2_trace_protos
306+
googleapis-c++::api_annotations_protos
307+
googleapis-c++::rpc_status_protos
308+
PRIVATE googleapis_cpp_common_flags)
309+
283310
# Install the libraries and headers in the locations determined by
284311
# GNUInstallDirs
285312
include(GNUInstallDirs)
@@ -292,6 +319,8 @@ set(googleapis_cpp_installed_libraries_list
292319
googleapis_cpp_api_annotations_protos
293320
googleapis_cpp_api_auth_protos
294321
googleapis_cpp_api_resource_protos
322+
googleapis_cpp_devtools_cloudtrace_v2_trace_protos
323+
googleapis_cpp_devtools_cloudtrace_v2_tracing_protos
295324
googleapis_cpp_iam_v1_policy_protos
296325
googleapis_cpp_iam_v1_iam_policy_protos
297326
googleapis_cpp_rpc_error_details_protos

cmake/config.cmake.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ foreach (_target
2626
api_http
2727
api_resource
2828
bigtable
29+
devtools_cloudtrace_v2_trace
30+
devtools_cloudtrace_v2_tracing
2931
iam_v1_iam_policy
3032
iam_v1_policy
3133
longrunning_operations

0 commit comments

Comments
 (0)