| 1 |
# Copyright 2021 The gRPC Authors |
| 2 |
# |
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
# you may not use this file except in compliance with the License. |
| 5 |
# You may obtain a copy of the License at |
| 6 |
# |
| 7 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
# See the License for the specific language governing permissions and |
| 13 |
# limitations under the License. |
| 14 |
"""Load dependencies needed to compile and test the grpc library as a 3rd-party consumer.""" |
| 15 |
|
| 16 |
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 17 |
load("@com_github_grpc_grpc//bazel:grpc_python_deps.bzl", "grpc_python_deps") |
| 18 |
|
| 19 |
# buildifier: disable=unnamed-macro |
| 20 |
def grpc_deps(): |
| 21 |
"""Loads dependencies need to compile and test the grpc library.""" |
| 22 |
|
| 23 |
native.bind( |
| 24 |
name = "upb_lib", |
| 25 |
actual = "@upb//:upb", |
| 26 |
) |
| 27 |
|
| 28 |
native.bind( |
| 29 |
name = "upb_reflection", |
| 30 |
actual = "@upb//:reflection", |
| 31 |
) |
| 32 |
|
| 33 |
native.bind( |
| 34 |
name = "upb_lib_descriptor", |
| 35 |
actual = "@upb//:descriptor_upb_proto", |
| 36 |
) |
| 37 |
|
| 38 |
native.bind( |
| 39 |
name = "upb_lib_descriptor_reflection", |
| 40 |
actual = "@upb//:descriptor_upb_proto_reflection", |
| 41 |
) |
| 42 |
|
| 43 |
native.bind( |
| 44 |
name = "upb_textformat_lib", |
| 45 |
actual = "@upb//:textformat", |
| 46 |
) |
| 47 |
|
| 48 |
native.bind( |
| 49 |
name = "upb_json_lib", |
| 50 |
actual = "@upb//:json", |
| 51 |
) |
| 52 |
|
| 53 |
native.bind( |
| 54 |
name = "upb_generated_code_support__only_for_generated_code_do_not_use__i_give_permission_to_break_me", |
| 55 |
actual = "@upb//:generated_code_support__only_for_generated_code_do_not_use__i_give_permission_to_break_me", |
| 56 |
) |
| 57 |
|
| 58 |
native.bind( |
| 59 |
name = "libssl", |
| 60 |
actual = "@boringssl//:ssl", |
| 61 |
) |
| 62 |
|
| 63 |
native.bind( |
| 64 |
name = "libcrypto", |
| 65 |
actual = "@boringssl//:crypto", |
| 66 |
) |
| 67 |
|
| 68 |
native.bind( |
| 69 |
name = "madler_zlib", |
| 70 |
actual = "@zlib//:zlib", |
| 71 |
) |
| 72 |
|
| 73 |
native.bind( |
| 74 |
name = "protobuf", |
| 75 |
actual = "@com_google_protobuf//:protobuf", |
| 76 |
) |
| 77 |
|
| 78 |
native.bind( |
| 79 |
name = "protobuf_clib", |
| 80 |
actual = "@com_google_protobuf//:protoc_lib", |
| 81 |
) |
| 82 |
|
| 83 |
native.bind( |
| 84 |
name = "protobuf_headers", |
| 85 |
actual = "@com_google_protobuf//:protobuf_headers", |
| 86 |
) |
| 87 |
|
| 88 |
native.bind( |
| 89 |
name = "protocol_compiler", |
| 90 |
actual = "@com_google_protobuf//:protoc", |
| 91 |
) |
| 92 |
|
| 93 |
native.bind( |
| 94 |
name = "cares", |
| 95 |
actual = "@com_github_cares_cares//:ares", |
| 96 |
) |
| 97 |
|
| 98 |
native.bind( |
| 99 |
name = "gtest", |
| 100 |
actual = "@com_google_googletest//:gtest", |
| 101 |
) |
| 102 |
|
| 103 |
native.bind( |
| 104 |
name = "benchmark", |
| 105 |
actual = "@com_github_google_benchmark//:benchmark", |
| 106 |
) |
| 107 |
|
| 108 |
native.bind( |
| 109 |
name = "re2", |
| 110 |
actual = "@com_googlesource_code_re2//:re2", |
| 111 |
) |
| 112 |
|
| 113 |
native.bind( |
| 114 |
name = "grpc_cpp_plugin", |
| 115 |
actual = "@com_github_grpc_grpc//src/compiler:grpc_cpp_plugin", |
| 116 |
) |
| 117 |
|
| 118 |
native.bind( |
| 119 |
name = "grpc++_codegen_proto", |
| 120 |
actual = "@com_github_grpc_grpc//:grpc++_codegen_proto", |
| 121 |
) |
| 122 |
|
| 123 |
native.bind( |
| 124 |
name = "opencensus-context", |
| 125 |
actual = "@io_opencensus_cpp//opencensus/context:context", |
| 126 |
) |
| 127 |
|
| 128 |
native.bind( |
| 129 |
name = "opencensus-trace", |
| 130 |
actual = "@io_opencensus_cpp//opencensus/trace:trace", |
| 131 |
) |
| 132 |
|
| 133 |
native.bind( |
| 134 |
name = "opencensus-trace-context_util", |
| 135 |
actual = "@io_opencensus_cpp//opencensus/trace:context_util", |
| 136 |
) |
| 137 |
|
| 138 |
native.bind( |
| 139 |
name = "opencensus-trace-propagation", |
| 140 |
actual = "@io_opencensus_cpp//opencensus/trace:grpc_trace_bin", |
| 141 |
) |
| 142 |
|
| 143 |
native.bind( |
| 144 |
name = "opencensus-trace-span_context", |
| 145 |
actual = "@io_opencensus_cpp//opencensus/trace:span_context", |
| 146 |
) |
| 147 |
|
| 148 |
native.bind( |
| 149 |
name = "opencensus-stats", |
| 150 |
actual = "@io_opencensus_cpp//opencensus/stats:stats", |
| 151 |
) |
| 152 |
|
| 153 |
native.bind( |
| 154 |
name = "opencensus-stats-test", |
| 155 |
actual = "@io_opencensus_cpp//opencensus/stats:test_utils", |
| 156 |
) |
| 157 |
|
| 158 |
native.bind( |
| 159 |
name = "opencensus-with-tag-map", |
| 160 |
actual = "@io_opencensus_cpp//opencensus/tags:with_tag_map", |
| 161 |
) |
| 162 |
|
| 163 |
native.bind( |
| 164 |
name = "opencensus-tags", |
| 165 |
actual = "@io_opencensus_cpp//opencensus/tags:tags", |
| 166 |
) |
| 167 |
|
| 168 |
native.bind( |
| 169 |
name = "opencensus-tags-context_util", |
| 170 |
actual = "@io_opencensus_cpp//opencensus/tags:context_util", |
| 171 |
) |
| 172 |
|
| 173 |
native.bind( |
| 174 |
name = "opencensus-trace-stackdriver_exporter", |
| 175 |
actual = "@io_opencensus_cpp//opencensus/exporters/trace/stackdriver:stackdriver_exporter", |
| 176 |
) |
| 177 |
|
| 178 |
native.bind( |
| 179 |
name = "opencensus-stats-stackdriver_exporter", |
| 180 |
actual = "@io_opencensus_cpp//opencensus/exporters/stats/stackdriver:stackdriver_exporter", |
| 181 |
) |
| 182 |
|
| 183 |
native.bind( |
| 184 |
name = "libuv", |
| 185 |
actual = "@com_github_libuv_libuv//:libuv", |
| 186 |
) |
| 187 |
|
| 188 |
native.bind( |
| 189 |
name = "libuv_test", |
| 190 |
actual = "@com_github_libuv_libuv//:libuv_test", |
| 191 |
) |
| 192 |
|
| 193 |
native.bind( |
| 194 |
name = "googleapis_trace_grpc_service", |
| 195 |
actual = "@com_google_googleapis//google/devtools/cloudtrace/v2:cloudtrace_cc_grpc", |
| 196 |
) |
| 197 |
|
| 198 |
native.bind( |
| 199 |
name = "googleapis_monitoring_grpc_service", |
| 200 |
actual = "@com_google_googleapis//google/monitoring/v3:monitoring_cc_grpc", |
| 201 |
) |
| 202 |
|
| 203 |
if "boringssl" not in native.existing_rules(): |
| 204 |
http_archive( |
| 205 |
name = "boringssl", |
| 206 |
# Use github mirror instead of https://boringssl.googlesource.com/boringssl |
| 207 |
# to obtain a boringssl archive with consistent sha256 |
| 208 |
sha256 = "534fa658bd845fd974b50b10f444d392dfd0d93768c4a51b61263fd37d851c40", |
| 209 |
strip_prefix = "boringssl-b9232f9e27e5668bc0414879dcdedb2a59ea75f2", |
| 210 |
urls = [ |
| 211 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/google/boringssl/archive/b9232f9e27e5668bc0414879dcdedb2a59ea75f2.tar.gz", |
| 212 |
"https://github.com/google/boringssl/archive/b9232f9e27e5668bc0414879dcdedb2a59ea75f2.tar.gz", |
| 213 |
], |
| 214 |
) |
| 215 |
|
| 216 |
if "zlib" not in native.existing_rules(): |
| 217 |
http_archive( |
| 218 |
name = "zlib", |
| 219 |
build_file = "@com_github_grpc_grpc//third_party:zlib.BUILD", |
| 220 |
sha256 = "90f43a9c998740e8a0db24b0af0147033db2aaaa99423129abbd76640757cac9", |
| 221 |
strip_prefix = "zlib-04f42ceca40f73e2978b50e93806c2a18c1281fc", |
| 222 |
urls = [ |
| 223 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/madler/zlib/archive/04f42ceca40f73e2978b50e93806c2a18c1281fc.tar.gz", |
| 224 |
"https://github.com/madler/zlib/archive/04f42ceca40f73e2978b50e93806c2a18c1281fc.tar.gz", |
| 225 |
], |
| 226 |
) |
| 227 |
|
| 228 |
if "com_google_protobuf" not in native.existing_rules(): |
| 229 |
http_archive( |
| 230 |
name = "com_google_protobuf", |
| 231 |
sha256 = "63c5539a8506dc6bccd352a857cea106e0a389ce047a3ff0a78fe3f8fede410d", |
| 232 |
strip_prefix = "protobuf-24487dd1045c7f3d64a21f38a3f0c06cc4cf2edb", |
| 233 |
urls = [ |
| 234 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/protocolbuffers/protobuf/archive/24487dd1045c7f3d64a21f38a3f0c06cc4cf2edb.tar.gz", |
| 235 |
"https://github.com/protocolbuffers/protobuf/archive/24487dd1045c7f3d64a21f38a3f0c06cc4cf2edb.tar.gz", |
| 236 |
], |
| 237 |
patches = ["@com_github_grpc_grpc//third_party:protobuf.patch"], |
| 238 |
patch_args = ["-p1"], |
| 239 |
) |
| 240 |
|
| 241 |
if "com_google_googletest" not in native.existing_rules(): |
| 242 |
http_archive( |
| 243 |
name = "com_google_googletest", |
| 244 |
sha256 = "c8de6c60e12ad014a28225c5247ee735861d85cf906df617f6a29954ca05f547", |
| 245 |
strip_prefix = "googletest-0e402173c97aea7a00749e825b194bfede4f2e45", |
| 246 |
urls = [ |
| 247 |
# 2022-02-09 |
| 248 |
"https://github.com/google/googletest/archive/0e402173c97aea7a00749e825b194bfede4f2e45.tar.gz", |
| 249 |
], |
| 250 |
) |
| 251 |
|
| 252 |
if "rules_cc" not in native.existing_rules(): |
| 253 |
http_archive( |
| 254 |
name = "rules_cc", |
| 255 |
sha256 = "35f2fb4ea0b3e61ad64a369de284e4fbbdcdba71836a5555abb5e194cf119509", |
| 256 |
strip_prefix = "rules_cc-624b5d59dfb45672d4239422fa1e3de1822ee110", |
| 257 |
urls = [ |
| 258 |
#2019-08-15 |
| 259 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/bazelbuild/rules_cc/archive/624b5d59dfb45672d4239422fa1e3de1822ee110.tar.gz", |
| 260 |
"https://github.com/bazelbuild/rules_cc/archive/624b5d59dfb45672d4239422fa1e3de1822ee110.tar.gz", |
| 261 |
], |
| 262 |
) |
| 263 |
|
| 264 |
if "com_github_google_benchmark" not in native.existing_rules(): |
| 265 |
http_archive( |
| 266 |
name = "com_github_google_benchmark", |
| 267 |
sha256 = "3a43368d3ec48afe784573cf962fe98c084e89a1e3d176c00715a84366316e7d", |
| 268 |
strip_prefix = "benchmark-361e8d1cfe0c6c36d30b39f1b61302ece5507320", |
| 269 |
urls = [ |
| 270 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/google/benchmark/archive/361e8d1cfe0c6c36d30b39f1b61302ece5507320.tar.gz", |
| 271 |
"https://github.com/google/benchmark/archive/361e8d1cfe0c6c36d30b39f1b61302ece5507320.tar.gz", |
| 272 |
], |
| 273 |
) |
| 274 |
|
| 275 |
if "com_googlesource_code_re2" not in native.existing_rules(): |
| 276 |
http_archive( |
| 277 |
name = "com_googlesource_code_re2", |
| 278 |
sha256 = "319a58a58d8af295db97dfeecc4e250179c5966beaa2d842a82f0a013b6a239b", |
| 279 |
# Release 2021-09-01 |
| 280 |
strip_prefix = "re2-8e08f47b11b413302749c0d8b17a1c94777495d5", |
| 281 |
urls = [ |
| 282 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/google/re2/archive/8e08f47b11b413302749c0d8b17a1c94777495d5.tar.gz", |
| 283 |
"https://github.com/google/re2/archive/8e08f47b11b413302749c0d8b17a1c94777495d5.tar.gz", |
| 284 |
], |
| 285 |
) |
| 286 |
|
| 287 |
if "com_github_cares_cares" not in native.existing_rules(): |
| 288 |
http_archive( |
| 289 |
name = "com_github_cares_cares", |
| 290 |
build_file = "@com_github_grpc_grpc//third_party:cares/cares.BUILD", |
| 291 |
sha256 = "ec76c5e79db59762776bece58b69507d095856c37b81fd35bfb0958e74b61d93", |
| 292 |
strip_prefix = "c-ares-6654436a307a5a686b008c1d4c93b0085da6e6d8", |
| 293 |
urls = [ |
| 294 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/c-ares/c-ares/archive/6654436a307a5a686b008c1d4c93b0085da6e6d8.tar.gz", |
| 295 |
"https://github.com/c-ares/c-ares/archive/6654436a307a5a686b008c1d4c93b0085da6e6d8.tar.gz", |
| 296 |
], |
| 297 |
) |
| 298 |
|
| 299 |
if "com_google_absl" not in native.existing_rules(): |
| 300 |
http_archive( |
| 301 |
name = "com_google_absl", |
| 302 |
sha256 = "4208129b49006089ba1d6710845a45e31c59b0ab6bff9e5788a87f55c5abd602", |
| 303 |
strip_prefix = "abseil-cpp-20220623.0", |
| 304 |
urls = [ |
| 305 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/abseil/abseil-cpp/archive/20220623.0.tar.gz", |
| 306 |
"https://github.com/abseil/abseil-cpp/archive/20220623.0.tar.gz", |
| 307 |
], |
| 308 |
) |
| 309 |
|
| 310 |
if "bazel_toolchains" not in native.existing_rules(): |
| 311 |
# list of releases is at https://github.com/bazelbuild/bazel-toolchains/releases |
| 312 |
http_archive( |
| 313 |
name = "bazel_toolchains", |
| 314 |
sha256 = "179ec02f809e86abf56356d8898c8bd74069f1bd7c56044050c2cd3d79d0e024", |
| 315 |
strip_prefix = "bazel-toolchains-4.1.0", |
| 316 |
urls = [ |
| 317 |
"https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/releases/download/4.1.0/bazel-toolchains-4.1.0.tar.gz", |
| 318 |
"https://github.com/bazelbuild/bazel-toolchains/releases/download/4.1.0/bazel-toolchains-4.1.0.tar.gz", |
| 319 |
], |
| 320 |
) |
| 321 |
|
| 322 |
if "bazel_skylib" not in native.existing_rules(): |
| 323 |
http_archive( |
| 324 |
name = "bazel_skylib", |
| 325 |
urls = [ |
| 326 |
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz", |
| 327 |
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz", |
| 328 |
], |
| 329 |
sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44", |
| 330 |
) |
| 331 |
|
| 332 |
if "bazel_compdb" not in native.existing_rules(): |
| 333 |
http_archive( |
| 334 |
name = "bazel_compdb", |
| 335 |
sha256 = "bcecfd622c4ef272fd4ba42726a52e140b961c4eac23025f18b346c968a8cfb4", |
| 336 |
strip_prefix = "bazel-compilation-database-0.4.5", |
| 337 |
urls = [ |
| 338 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/grailbio/bazel-compilation-database/archive/0.4.5.tar.gz", |
| 339 |
"https://github.com/grailbio/bazel-compilation-database/archive/0.4.5.tar.gz", |
| 340 |
], |
| 341 |
) |
| 342 |
|
| 343 |
if "io_opencensus_cpp" not in native.existing_rules(): |
| 344 |
http_archive( |
| 345 |
name = "io_opencensus_cpp", |
| 346 |
sha256 = "20119a53cc1c140347671ac40650d797567ec63bd3a9f135e17f144fdb36c272", |
| 347 |
strip_prefix = "opencensus-cpp-3e6aa4c0fb31d2f39a2d38365483599ab50bef6d", |
| 348 |
urls = [ |
| 349 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/census-instrumentation/opencensus-cpp/archive/3e6aa4c0fb31d2f39a2d38365483599ab50bef6d.tar.gz", |
| 350 |
"https://github.com/census-instrumentation/opencensus-cpp/archive/3e6aa4c0fb31d2f39a2d38365483599ab50bef6d.tar.gz", |
| 351 |
], |
| 352 |
) |
| 353 |
|
| 354 |
if "upb" not in native.existing_rules(): |
| 355 |
http_archive( |
| 356 |
name = "upb", |
| 357 |
sha256 = "017a7e8e4e842d01dba5dc8aa316323eee080cd1b75986a7d1f94d87220e6502", |
| 358 |
strip_prefix = "upb-e4635f223e7d36dfbea3b722a4ca4807a7e882e2", |
| 359 |
urls = [ |
| 360 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/protocolbuffers/upb/archive/e4635f223e7d36dfbea3b722a4ca4807a7e882e2.tar.gz", |
| 361 |
"https://github.com/protocolbuffers/upb/archive/e4635f223e7d36dfbea3b722a4ca4807a7e882e2.tar.gz", |
| 362 |
], |
| 363 |
) |
| 364 |
|
| 365 |
if "envoy_api" not in native.existing_rules(): |
| 366 |
http_archive( |
| 367 |
name = "envoy_api", |
| 368 |
sha256 = "0fe4c68dea4423f5880c068abbcbc90ac4b98496cf2af15a1fe3fbc0fdb050fd", |
| 369 |
strip_prefix = "data-plane-api-bf6154e482bbd5e6f64032993206e66b6116f2bd", |
| 370 |
urls = [ |
| 371 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/envoyproxy/data-plane-api/archive/bf6154e482bbd5e6f64032993206e66b6116f2bd.tar.gz", |
| 372 |
"https://github.com/envoyproxy/data-plane-api/archive/bf6154e482bbd5e6f64032993206e66b6116f2bd.tar.gz", |
| 373 |
], |
| 374 |
) |
| 375 |
|
| 376 |
if "io_bazel_rules_go" not in native.existing_rules(): |
| 377 |
http_archive( |
| 378 |
name = "io_bazel_rules_go", |
| 379 |
sha256 = "69de5c704a05ff37862f7e0f5534d4f479418afc21806c887db544a316f3cb6b", |
| 380 |
urls = [ |
| 381 |
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.27.0/rules_go-v0.27.0.tar.gz", |
| 382 |
"https://github.com/bazelbuild/rules_go/releases/download/v0.27.0/rules_go-v0.27.0.tar.gz", |
| 383 |
], |
| 384 |
) |
| 385 |
|
| 386 |
if "build_bazel_rules_apple" not in native.existing_rules(): |
| 387 |
http_archive( |
| 388 |
name = "build_bazel_rules_apple", |
| 389 |
sha256 = "77e8bf6fda706f420a55874ae6ee4df0c9d95da6c7838228b26910fc82eea5a2", |
| 390 |
urls = [ |
| 391 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/bazelbuild/rules_apple/releases/download/0.32.0/rules_apple.0.32.0.tar.gz", |
| 392 |
"https://github.com/bazelbuild/rules_apple/releases/download/0.32.0/rules_apple.0.32.0.tar.gz", |
| 393 |
], |
| 394 |
) |
| 395 |
|
| 396 |
if "build_bazel_apple_support" not in native.existing_rules(): |
| 397 |
http_archive( |
| 398 |
name = "build_bazel_apple_support", |
| 399 |
sha256 = "76df040ade90836ff5543888d64616e7ba6c3a7b33b916aa3a4b68f342d1b447", |
| 400 |
urls = [ |
| 401 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/bazelbuild/apple_support/releases/download/0.11.0/apple_support.0.11.0.tar.gz", |
| 402 |
"https://github.com/bazelbuild/apple_support/releases/download/0.11.0/apple_support.0.11.0.tar.gz", |
| 403 |
], |
| 404 |
) |
| 405 |
|
| 406 |
if "com_github_libuv_libuv" not in native.existing_rules(): |
| 407 |
http_archive( |
| 408 |
name = "com_github_libuv_libuv", |
| 409 |
build_file = "@com_github_grpc_grpc//third_party:libuv.BUILD", |
| 410 |
sha256 = "5ca4e9091f3231d8ad8801862dc4e851c23af89c69141d27723157776f7291e7", |
| 411 |
strip_prefix = "libuv-02a9e1be252b623ee032a3137c0b0c94afbe6809", |
| 412 |
urls = [ |
| 413 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/libuv/libuv/archive/02a9e1be252b623ee032a3137c0b0c94afbe6809.tar.gz", |
| 414 |
"https://github.com/libuv/libuv/archive/02a9e1be252b623ee032a3137c0b0c94afbe6809.tar.gz", |
| 415 |
], |
| 416 |
) |
| 417 |
|
| 418 |
if "com_google_googleapis" not in native.existing_rules(): |
| 419 |
http_archive( |
| 420 |
name = "com_google_googleapis", |
| 421 |
sha256 = "5bb6b0253ccf64b53d6c7249625a7e3f6c3bc6402abd52d3778bfa48258703a0", |
| 422 |
strip_prefix = "googleapis-2f9af297c84c55c8b871ba4495e01ade42476c92", |
| 423 |
urls = [ |
| 424 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/googleapis/googleapis/archive/2f9af297c84c55c8b871ba4495e01ade42476c92.tar.gz", |
| 425 |
"https://github.com/googleapis/googleapis/archive/2f9af297c84c55c8b871ba4495e01ade42476c92.tar.gz", |
| 426 |
], |
| 427 |
) |
| 428 |
|
| 429 |
if "bazel_gazelle" not in native.existing_rules(): |
| 430 |
http_archive( |
| 431 |
name = "bazel_gazelle", |
| 432 |
sha256 = "de69a09dc70417580aabf20a28619bb3ef60d038470c7cf8442fafcf627c21cb", |
| 433 |
urls = [ |
| 434 |
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz", |
| 435 |
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz", |
| 436 |
], |
| 437 |
) |
| 438 |
|
| 439 |
if "opencensus_proto" not in native.existing_rules(): |
| 440 |
http_archive( |
| 441 |
name = "opencensus_proto", |
| 442 |
sha256 = "b7e13f0b4259e80c3070b583c2f39e53153085a6918718b1c710caf7037572b0", |
| 443 |
strip_prefix = "opencensus-proto-0.3.0/src", |
| 444 |
urls = [ |
| 445 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/census-instrumentation/opencensus-proto/archive/v0.3.0.tar.gz", |
| 446 |
"https://github.com/census-instrumentation/opencensus-proto/archive/v0.3.0.tar.gz", |
| 447 |
], |
| 448 |
) |
| 449 |
|
| 450 |
if "com_envoyproxy_protoc_gen_validate" not in native.existing_rules(): |
| 451 |
http_archive( |
| 452 |
name = "com_envoyproxy_protoc_gen_validate", |
| 453 |
strip_prefix = "protoc-gen-validate-4694024279bdac52b77e22dc87808bd0fd732b69", |
| 454 |
sha256 = "1e490b98005664d149b379a9529a6aa05932b8a11b76b4cd86f3d22d76346f47", |
| 455 |
urls = [ |
| 456 |
"https://github.com/envoyproxy/protoc-gen-validate/archive/4694024279bdac52b77e22dc87808bd0fd732b69.tar.gz", |
| 457 |
], |
| 458 |
patches = ["@com_github_grpc_grpc//third_party:protoc-gen-validate.patch"], |
| 459 |
patch_args = ["-p1"], |
| 460 |
) |
| 461 |
|
| 462 |
if "com_github_cncf_udpa" not in native.existing_rules(): |
| 463 |
http_archive( |
| 464 |
name = "com_github_cncf_udpa", |
| 465 |
sha256 = "5bc8365613fe2f8ce6cc33959b7667b13b7fe56cb9d16ba740c06e1a7c4242fc", |
| 466 |
strip_prefix = "xds-cb28da3451f158a947dfc45090fe92b07b243bc1", |
| 467 |
urls = [ |
| 468 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/cncf/xds/archive/cb28da3451f158a947dfc45090fe92b07b243bc1.tar.gz", |
| 469 |
"https://github.com/cncf/xds/archive/cb28da3451f158a947dfc45090fe92b07b243bc1.tar.gz", |
| 470 |
], |
| 471 |
) |
| 472 |
|
| 473 |
grpc_python_deps() |
| 474 |
|
| 475 |
# TODO: move some dependencies from "grpc_deps" here? |
| 476 |
# buildifier: disable=unnamed-macro |
| 477 |
def grpc_test_only_deps(): |
| 478 |
"""Internal, not intended for use by packages that are consuming grpc. |
| 479 |
|
| 480 |
Loads dependencies that are only needed to run grpc library's tests. |
| 481 |
""" |
| 482 |
native.bind( |
| 483 |
name = "twisted", |
| 484 |
actual = "@com_github_twisted_twisted//:twisted", |
| 485 |
) |
| 486 |
|
| 487 |
native.bind( |
| 488 |
name = "yaml", |
| 489 |
actual = "@com_github_yaml_pyyaml//:yaml", |
| 490 |
) |
| 491 |
|
| 492 |
if "com_github_twisted_twisted" not in native.existing_rules(): |
| 493 |
http_archive( |
| 494 |
name = "com_github_twisted_twisted", |
| 495 |
sha256 = "ca17699d0d62eafc5c28daf2c7d0a18e62ae77b4137300b6c7d7868b39b06139", |
| 496 |
strip_prefix = "twisted-twisted-17.5.0", |
| 497 |
urls = [ |
| 498 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/twisted/twisted/archive/twisted-17.5.0.zip", |
| 499 |
"https://github.com/twisted/twisted/archive/twisted-17.5.0.zip", |
| 500 |
], |
| 501 |
build_file = "@com_github_grpc_grpc//third_party:twisted.BUILD", |
| 502 |
) |
| 503 |
|
| 504 |
if "com_github_yaml_pyyaml" not in native.existing_rules(): |
| 505 |
http_archive( |
| 506 |
name = "com_github_yaml_pyyaml", |
| 507 |
sha256 = "6b4314b1b2051ddb9d4fcd1634e1fa9c1bb4012954273c9ff3ef689f6ec6c93e", |
| 508 |
strip_prefix = "pyyaml-3.12", |
| 509 |
urls = [ |
| 510 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/yaml/pyyaml/archive/3.12.zip", |
| 511 |
"https://github.com/yaml/pyyaml/archive/3.12.zip", |
| 512 |
], |
| 513 |
build_file = "@com_github_grpc_grpc//third_party:yaml.BUILD", |
| 514 |
) |
| 515 |
|
| 516 |
if "com_github_twisted_incremental" not in native.existing_rules(): |
| 517 |
http_archive( |
| 518 |
name = "com_github_twisted_incremental", |
| 519 |
sha256 = "f0ca93359ee70243ff7fbf2d904a6291810bd88cb80ed4aca6fa77f318a41a36", |
| 520 |
strip_prefix = "incremental-incremental-17.5.0", |
| 521 |
urls = [ |
| 522 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/twisted/incremental/archive/incremental-17.5.0.zip", |
| 523 |
"https://github.com/twisted/incremental/archive/incremental-17.5.0.zip", |
| 524 |
], |
| 525 |
build_file = "@com_github_grpc_grpc//third_party:incremental.BUILD", |
| 526 |
) |
| 527 |
|
| 528 |
if "com_github_zopefoundation_zope_interface" not in native.existing_rules(): |
| 529 |
http_archive( |
| 530 |
name = "com_github_zopefoundation_zope_interface", |
| 531 |
sha256 = "e9579fc6149294339897be3aa9ecd8a29217c0b013fe6f44fcdae00e3204198a", |
| 532 |
strip_prefix = "zope.interface-4.4.3", |
| 533 |
urls = [ |
| 534 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/zopefoundation/zope.interface/archive/4.4.3.zip", |
| 535 |
"https://github.com/zopefoundation/zope.interface/archive/4.4.3.zip", |
| 536 |
], |
| 537 |
build_file = "@com_github_grpc_grpc//third_party:zope_interface.BUILD", |
| 538 |
) |
| 539 |
|
| 540 |
if "com_github_twisted_constantly" not in native.existing_rules(): |
| 541 |
http_archive( |
| 542 |
name = "com_github_twisted_constantly", |
| 543 |
sha256 = "2702cd322161a579d2c0dbf94af4e57712eedc7bd7bbbdc554a230544f7d346c", |
| 544 |
strip_prefix = "constantly-15.1.0", |
| 545 |
urls = [ |
| 546 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/twisted/constantly/archive/15.1.0.zip", |
| 547 |
"https://github.com/twisted/constantly/archive/15.1.0.zip", |
| 548 |
], |
| 549 |
build_file = "@com_github_grpc_grpc//third_party:constantly.BUILD", |
| 550 |
) |
| 551 |
|
| 552 |
if "com_google_libprotobuf_mutator" not in native.existing_rules(): |
| 553 |
http_archive( |
| 554 |
name = "com_google_libprotobuf_mutator", |
| 555 |
sha256 = "b847c71723d8ce0b747aa661d7f3a07f1d16c595bf9c0202f30febc2f9a24a06", |
| 556 |
urls = [ |
| 557 |
"https://github.com/google/libprotobuf-mutator/archive/ffd86a32874e5c08a143019aad1aaf0907294c9f.tar.gz", |
| 558 |
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/google/libprotobuf-mutator/archive/ffd86a32874e5c08a143019aad1aaf0907294c9f.tar.gz", |
| 559 |
], |
| 560 |
strip_prefix = "libprotobuf-mutator-ffd86a32874e5c08a143019aad1aaf0907294c9f", |
| 561 |
build_file = "@com_github_grpc_grpc//third_party:libprotobuf_mutator.BUILD", |
| 562 |
) |