| 1 |
workspace(name = "com_google_protobuf_examples") |
| 2 |
|
| 3 |
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 4 |
|
| 5 |
# This com_google_protobuf repository is required for proto_library rule. |
| 6 |
# It provides the protocol compiler binary (i.e., protoc). |
| 7 |
# |
| 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: |
| 10 |
# |
| 11 |
# http_archive( |
| 12 |
# name = "com_google_protobuf", |
| 13 |
# strip_prefix = "protobuf-main", |
| 14 |
# urls = ["https://github.com/protocolbuffers/protobuf/archive/main.zip"], |
| 15 |
# ) |
| 16 |
local_repository( |
| 17 |
name = "com_google_protobuf", |
| 18 |
path = "..", |
| 19 |
) |
| 20 |
|
| 21 |
# Similar to com_google_protobuf but for Java lite. If you are building |
| 22 |
# for Android, the lite version should be preferred because it has a much |
| 23 |
# smaller code size. |
| 24 |
local_repository( |
| 25 |
name = "com_google_protobuf_javalite", |
| 26 |
path = "..", |
| 27 |
) |
| 28 |
|
| 29 |
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") |
| 30 |
|
| 31 |
protobuf_deps() |