xref: /aosp_15_r20/external/cronet/third_party/protobuf/WORKSPACE (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1workspace(name = "com_google_protobuf")
2
3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4
5local_repository(
6    name = "com_google_protobuf_examples",
7    path = "examples",
8)
9
10http_archive(
11    name = "com_google_googletest",
12    sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb",
13    strip_prefix = "googletest-release-1.10.0",
14    urls = [
15        "https://mirror.bazel.build/github.com/google/googletest/archive/release-1.10.0.tar.gz",
16        "https://github.com/google/googletest/archive/release-1.10.0.tar.gz",
17    ],
18)
19
20http_archive(
21    name = "com_github_google_benchmark",
22    sha256 = "2a778d821997df7d8646c9c59b8edb9a573a6e04c534c01892a40aa524a7b68c",
23    strip_prefix = "benchmark-bf585a2789e30585b4e3ce6baf11ef2750b54677",
24    urls = [
25        "https://github.com/google/benchmark/archive/bf585a2789e30585b4e3ce6baf11ef2750b54677.zip",
26    ],
27)
28
29# Load common dependencies.
30load("//:protobuf_deps.bzl", "PROTOBUF_MAVEN_ARTIFACTS", "protobuf_deps")
31protobuf_deps()
32
33bind(
34    name = "python_headers",
35    actual = "//util/python:python_headers",
36)
37
38load("@rules_jvm_external//:defs.bzl", "maven_install")
39
40maven_install(
41    artifacts = PROTOBUF_MAVEN_ARTIFACTS,
42    # For updating instructions, see:
43    # https://github.com/bazelbuild/rules_jvm_external#updating-maven_installjson
44    maven_install_json = "//:maven_install.json",
45    repositories = [
46        "https://repo1.maven.org/maven2",
47        "https://repo.maven.apache.org/maven2",
48    ],
49)
50
51load("@maven//:defs.bzl", "pinned_maven_install")
52
53pinned_maven_install()
54
55# For `cc_proto_blacklist_test` and `build_test`.
56load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
57
58bazel_skylib_workspace()
59
60load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
61rules_pkg_dependencies()
62
63# For `kt_jvm_library`
64load("@io_bazel_rules_kotlin//kotlin:repositories.bzl", "kotlin_repositories")
65kotlin_repositories()
66
67load("@io_bazel_rules_kotlin//kotlin:core.bzl", "kt_register_toolchains")
68kt_register_toolchains()
69
70load("@upb//bazel:workspace_deps.bzl", "upb_deps")
71upb_deps()
72