Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Add C++ targets, especially for gRPC services. (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-easy authored Jul 23, 2019
1 parent 5d4f91a commit 26aa36c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/opencensus/proto/agent/common/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,8 @@ go_proto_library(
"@com_github_golang_protobuf//ptypes/timestamp:go_default_library",
],
)

cc_proto_library(
name = "common_proto_cc",
deps = [":common_proto"],
)
8 changes: 8 additions & 0 deletions src/opencensus/proto/agent/metrics/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package(default_visibility = ["//visibility:public"])

load("@grpc_java//:java_grpc_library.bzl", "java_grpc_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library")

proto_library(
name = "metrics_service_proto",
Expand All @@ -32,6 +33,13 @@ cc_proto_library(
deps = [":metrics_service_proto"],
)

cc_grpc_library(
name = "metrics_service_grpc_cc",
srcs = [":metrics_service_proto"],
deps = [":metrics_service_proto_cc"],
grpc_only = True,
)

java_proto_library(
name = "metrics_service_proto_java",
deps = [":metrics_service_proto"],
Expand Down
8 changes: 8 additions & 0 deletions src/opencensus/proto/agent/trace/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package(default_visibility = ["//visibility:public"])

load("@grpc_java//:java_grpc_library.bzl", "java_grpc_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library")

proto_library(
name = "trace_service_proto",
Expand All @@ -33,6 +34,13 @@ cc_proto_library(
deps = [":trace_service_proto"],
)

cc_grpc_library(
name = "trace_service_grpc_cc",
srcs = [":trace_service_proto"],
deps = [":trace_service_proto_cc"],
grpc_only = True,
)

java_proto_library(
name = "trace_service_proto_java",
deps = [":trace_service_proto"],
Expand Down

0 comments on commit 26aa36c

Please sign in to comment.