|
|
@ -14,167 +14,12 @@ |
|
|
|
"""Load dependencies needed to compile and test the grpc library as a 3rd-party consumer.""" |
|
|
|
"""Load dependencies needed to compile and test the grpc library as a 3rd-party consumer.""" |
|
|
|
|
|
|
|
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
|
|
|
load("@com_github_grpc_grpc//bazel:grpc_python_deps.bzl", "grpc_python_deps") |
|
|
|
load("//bazel:grpc_python_deps.bzl", "grpc_python_deps") |
|
|
|
|
|
|
|
|
|
|
|
# buildifier: disable=unnamed-macro |
|
|
|
# buildifier: disable=unnamed-macro |
|
|
|
def grpc_deps(): |
|
|
|
def grpc_deps(): |
|
|
|
"""Loads dependencies need to compile and test the grpc library.""" |
|
|
|
"""Loads dependencies need to compile and test the grpc library.""" |
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "libssl", |
|
|
|
|
|
|
|
actual = "@boringssl//:ssl", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "libcrypto", |
|
|
|
|
|
|
|
actual = "@boringssl//:crypto", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "madler_zlib", |
|
|
|
|
|
|
|
actual = "@zlib//:zlib", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "protobuf", |
|
|
|
|
|
|
|
actual = "@com_google_protobuf//:protobuf", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "protobuf_clib", |
|
|
|
|
|
|
|
actual = "@com_google_protobuf//:protoc_lib", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "protobuf_headers", |
|
|
|
|
|
|
|
actual = "@com_google_protobuf//:protobuf_headers", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "protocol_compiler", |
|
|
|
|
|
|
|
actual = "@com_google_protobuf//:protoc", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "cares", |
|
|
|
|
|
|
|
actual = "@com_github_cares_cares//:ares", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "gtest", |
|
|
|
|
|
|
|
actual = "@com_google_googletest//:gtest", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "fuzztest", |
|
|
|
|
|
|
|
actual = "@com_google_fuzztest//fuzztest", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "fuzztest_main", |
|
|
|
|
|
|
|
actual = "@com_google_fuzztest//fuzztest:fuzztest_gtest_main", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "benchmark", |
|
|
|
|
|
|
|
actual = "@com_github_google_benchmark//:benchmark", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "re2", |
|
|
|
|
|
|
|
actual = "@com_googlesource_code_re2//:re2", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "grpc_cpp_plugin", |
|
|
|
|
|
|
|
actual = "@com_github_grpc_grpc//src/compiler:grpc_cpp_plugin", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "grpc++_codegen_proto", |
|
|
|
|
|
|
|
actual = "@com_github_grpc_grpc//:grpc++_codegen_proto", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "opencensus-context", |
|
|
|
|
|
|
|
actual = "@io_opencensus_cpp//opencensus/context:context", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "opencensus-trace", |
|
|
|
|
|
|
|
actual = "@io_opencensus_cpp//opencensus/trace:trace", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "opencensus-trace-context_util", |
|
|
|
|
|
|
|
actual = "@io_opencensus_cpp//opencensus/trace:context_util", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "opencensus-trace-propagation", |
|
|
|
|
|
|
|
actual = "@io_opencensus_cpp//opencensus/trace:grpc_trace_bin", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "opencensus-trace-span_context", |
|
|
|
|
|
|
|
actual = "@io_opencensus_cpp//opencensus/trace:span_context", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "opencensus-stats", |
|
|
|
|
|
|
|
actual = "@io_opencensus_cpp//opencensus/stats:stats", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "opencensus-stats-test", |
|
|
|
|
|
|
|
actual = "@io_opencensus_cpp//opencensus/stats:test_utils", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "opencensus-with-tag-map", |
|
|
|
|
|
|
|
actual = "@io_opencensus_cpp//opencensus/tags:with_tag_map", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "opencensus-tags", |
|
|
|
|
|
|
|
actual = "@io_opencensus_cpp//opencensus/tags:tags", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "opencensus-tags-context_util", |
|
|
|
|
|
|
|
actual = "@io_opencensus_cpp//opencensus/tags:context_util", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "opencensus-trace-stackdriver_exporter", |
|
|
|
|
|
|
|
actual = "@io_opencensus_cpp//opencensus/exporters/trace/stackdriver:stackdriver_exporter", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "opencensus-stats-stackdriver_exporter", |
|
|
|
|
|
|
|
actual = "@io_opencensus_cpp//opencensus/exporters/stats/stackdriver:stackdriver_exporter", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "googleapis_trace_grpc_service", |
|
|
|
|
|
|
|
actual = "@com_google_googleapis//google/devtools/cloudtrace/v2:cloudtrace_cc_grpc", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "googleapis_monitoring_grpc_service", |
|
|
|
|
|
|
|
actual = "@com_google_googleapis//google/monitoring/v3:monitoring_cc_grpc", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "googleapis_logging_grpc_service", |
|
|
|
|
|
|
|
actual = "@com_google_googleapis//google/logging/v2:logging_cc_grpc", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "googleapis_logging_cc_proto", |
|
|
|
|
|
|
|
actual = "@com_google_googleapis//google/logging/v2:logging_cc_proto", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if "platforms" not in native.existing_rules(): |
|
|
|
if "platforms" not in native.existing_rules(): |
|
|
|
http_archive( |
|
|
|
http_archive( |
|
|
|
name = "platforms", |
|
|
|
name = "platforms", |
|
|
@ -496,15 +341,6 @@ def grpc_test_only_deps(): |
|
|
|
|
|
|
|
|
|
|
|
Loads dependencies that are only needed to run grpc library's tests. |
|
|
|
Loads dependencies that are only needed to run grpc library's tests. |
|
|
|
""" |
|
|
|
""" |
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "twisted", |
|
|
|
|
|
|
|
actual = "@com_github_twisted_twisted//:twisted", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
native.bind( |
|
|
|
|
|
|
|
name = "yaml", |
|
|
|
|
|
|
|
actual = "@com_github_yaml_pyyaml//:yaml", |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if "com_github_twisted_twisted" not in native.existing_rules(): |
|
|
|
if "com_github_twisted_twisted" not in native.existing_rules(): |
|
|
|
http_archive( |
|
|
|
http_archive( |
|
|
|