|
|
|
@ -27,9 +27,8 @@ def api_dependencies(): |
|
|
|
|
build_file_content = PROMETHEUSMETRICS_BUILD_CONTENT, |
|
|
|
|
) |
|
|
|
|
envoy_http_archive( |
|
|
|
|
name = "io_opencensus_trace", |
|
|
|
|
name = "opencensus_proto", |
|
|
|
|
locations = REPOSITORY_LOCATIONS, |
|
|
|
|
build_file_content = OPENCENSUSTRACE_BUILD_CONTENT, |
|
|
|
|
) |
|
|
|
|
envoy_http_archive( |
|
|
|
|
name = "kafka_source", |
|
|
|
@ -38,8 +37,9 @@ def api_dependencies(): |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
GOOGLEAPIS_BUILD_CONTENT = """ |
|
|
|
|
load("@com_google_protobuf//:protobuf.bzl", "cc_proto_library", "py_proto_library") |
|
|
|
|
load("@com_google_protobuf//:protobuf.bzl", "py_proto_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") |
|
|
|
|
|
|
|
|
|
filegroup( |
|
|
|
|
name = "api_httpbody_protos_src", |
|
|
|
@ -58,12 +58,7 @@ proto_library( |
|
|
|
|
|
|
|
|
|
cc_proto_library( |
|
|
|
|
name = "api_httpbody_protos", |
|
|
|
|
srcs = [ |
|
|
|
|
"google/api/httpbody.proto", |
|
|
|
|
], |
|
|
|
|
default_runtime = "@com_google_protobuf//:protobuf", |
|
|
|
|
protoc = "@com_google_protobuf//:protoc", |
|
|
|
|
deps = ["@com_google_protobuf//:cc_wkt_protos"], |
|
|
|
|
deps = [":api_httpbody_protos_proto"], |
|
|
|
|
visibility = ["//visibility:public"], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
@ -114,14 +109,7 @@ proto_library( |
|
|
|
|
|
|
|
|
|
cc_proto_library( |
|
|
|
|
name = "http_api_protos", |
|
|
|
|
srcs = [ |
|
|
|
|
"google/api/annotations.proto", |
|
|
|
|
"google/api/http.proto", |
|
|
|
|
], |
|
|
|
|
default_runtime = "@com_google_protobuf//:protobuf", |
|
|
|
|
protoc = "@com_google_protobuf//:protoc", |
|
|
|
|
linkstatic = 1, |
|
|
|
|
deps = ["@com_google_protobuf//:cc_wkt_protos"], |
|
|
|
|
deps = [":http_api_protos_proto"], |
|
|
|
|
visibility = ["//visibility:public"], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
@ -165,12 +153,7 @@ proto_library( |
|
|
|
|
|
|
|
|
|
cc_proto_library( |
|
|
|
|
name = "rpc_status_protos", |
|
|
|
|
srcs = ["google/rpc/status.proto"], |
|
|
|
|
default_runtime = "@com_google_protobuf//:protobuf", |
|
|
|
|
protoc = "@com_google_protobuf//:protoc", |
|
|
|
|
deps = [ |
|
|
|
|
"@com_google_protobuf//:cc_wkt_protos" |
|
|
|
|
], |
|
|
|
|
deps = [":rpc_status_protos_lib"], |
|
|
|
|
visibility = ["//visibility:public"], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
@ -195,6 +178,35 @@ py_proto_library( |
|
|
|
|
visibility = ["//visibility:public"], |
|
|
|
|
deps = ["@com_google_protobuf//:protobuf_python"], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
proto_library( |
|
|
|
|
name = "tracing_proto_proto", |
|
|
|
|
srcs = [ |
|
|
|
|
"google/devtools/cloudtrace/v2/trace.proto", |
|
|
|
|
"google/devtools/cloudtrace/v2/tracing.proto", |
|
|
|
|
], |
|
|
|
|
deps = [ |
|
|
|
|
":http_api_protos_proto", |
|
|
|
|
":rpc_status_protos_lib", |
|
|
|
|
"@com_google_protobuf//:timestamp_proto", |
|
|
|
|
"@com_google_protobuf//:wrappers_proto", |
|
|
|
|
"@com_google_protobuf//:empty_proto", |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_proto_library( |
|
|
|
|
name = "tracing_proto_cc", |
|
|
|
|
deps = [":tracing_proto_proto"], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_grpc_library( |
|
|
|
|
name = "tracing_proto", |
|
|
|
|
srcs = [":tracing_proto_proto"], |
|
|
|
|
deps = [":tracing_proto_cc"], |
|
|
|
|
grpc_only = True, |
|
|
|
|
visibility = ["@io_opencensus_cpp//opencensus:__subpackages__"], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
""" |
|
|
|
|
|
|
|
|
|
GOGOPROTO_BUILD_CONTENT = """ |
|
|
|
|