xref: /aosp_15_r20/external/protobuf/examples/WORKSPACE (revision 1b3f573f81763fcece89efc2b6a5209149e44ab8)
1*1b3f573fSAndroid Build Coastguard Workerworkspace(name = "com_google_protobuf_examples")
2*1b3f573fSAndroid Build Coastguard Worker
3*1b3f573fSAndroid Build Coastguard Workerload("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4*1b3f573fSAndroid Build Coastguard Worker
5*1b3f573fSAndroid Build Coastguard Worker# This com_google_protobuf repository is required for proto_library rule.
6*1b3f573fSAndroid Build Coastguard Worker# It provides the protocol compiler binary (i.e., protoc).
7*1b3f573fSAndroid Build Coastguard Worker#
8*1b3f573fSAndroid Build Coastguard Worker# We declare it as local_repository so we can test changes
9*1b3f573fSAndroid Build Coastguard Worker# before they get merged. You'll want to use the following instead:
10*1b3f573fSAndroid Build Coastguard Worker#
11*1b3f573fSAndroid Build Coastguard Worker# http_archive(
12*1b3f573fSAndroid Build Coastguard Worker#     name = "com_google_protobuf",
13*1b3f573fSAndroid Build Coastguard Worker#     strip_prefix = "protobuf-main",
14*1b3f573fSAndroid Build Coastguard Worker#     urls = ["https://github.com/protocolbuffers/protobuf/archive/main.zip"],
15*1b3f573fSAndroid Build Coastguard Worker# )
16*1b3f573fSAndroid Build Coastguard Workerlocal_repository(
17*1b3f573fSAndroid Build Coastguard Worker    name = "com_google_protobuf",
18*1b3f573fSAndroid Build Coastguard Worker    path = "..",
19*1b3f573fSAndroid Build Coastguard Worker)
20*1b3f573fSAndroid Build Coastguard Worker
21*1b3f573fSAndroid Build Coastguard Worker# Similar to com_google_protobuf but for Java lite. If you are building
22*1b3f573fSAndroid Build Coastguard Worker# for Android, the lite version should be preferred because it has a much
23*1b3f573fSAndroid Build Coastguard Worker# smaller code size.
24*1b3f573fSAndroid Build Coastguard Workerlocal_repository(
25*1b3f573fSAndroid Build Coastguard Worker    name = "com_google_protobuf_javalite",
26*1b3f573fSAndroid Build Coastguard Worker    path = "..",
27*1b3f573fSAndroid Build Coastguard Worker)
28*1b3f573fSAndroid Build Coastguard Worker
29*1b3f573fSAndroid Build Coastguard Workerload("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
30*1b3f573fSAndroid Build Coastguard Worker
31*1b3f573fSAndroid Build Coastguard Workerprotobuf_deps()
32