1 workspace(name = "com_google_protobuf_examples")
3 load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
5 # This protobuf repository is required for proto_library rule.
6 # It provides the protocol compiler binary (i.e., protoc).
8 # We declare it as local_repository so we can test changes
9 # before they get merged. You'll want to use the following instead:
12 # name = "com_google_protobuf",
13 # sha256 = "c29d8b4b79389463c546f98b15aa4391d4ed7ec459340c47bffe15db63eb9126",
14 # strip_prefix = "protobuf-3.21.3",
15 # urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.21.3.tar.gz"],
19 name = "com_google_protobuf",
23 # Similar to com_google_protobuf but for Java lite. If you are building
24 # for Android, the lite version should be preferred because it has a much
27 name = "com_google_protobuf_javalite",
31 # Bazel platform rules, for clang-cl.
34 sha256 = "218efe8ee736d26a3572663b374a253c012b716d8af0c07e842e82f238a0a7ee",
36 "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.10/platforms-0.0.10.tar.gz",
37 "https://github.com/bazelbuild/platforms/releases/download/0.0.10/platforms-0.0.10.tar.gz",
41 load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
45 load("@rules_java//java:rules_java_deps.bzl", "rules_java_dependencies")
47 rules_java_dependencies()
49 load("@rules_java//java:repositories.bzl", "rules_java_toolchains")
51 rules_java_toolchains()
53 load("@rules_python//python:repositories.bzl", "py_repositories")
57 load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies", "rules_cc_toolchains")
59 rules_cc_dependencies()