Yannic Bonenberger | bf0c69e | 2019-07-26 13:14:19 +0200 | [diff] [blame] | 1 | workspace(name = "com_google_protobuf_examples") |
| 2 | |
Adam Cozzette | e03c0d2 | 2018-12-11 15:57:26 -0800 | [diff] [blame] | 3 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 4 | |
Feng Xiao | 74bf45f | 2017-09-08 15:44:09 -0700 | [diff] [blame] | 5 | # This com_google_protobuf repository is required for proto_library rule. |
| 6 | # It provides the protocol compiler binary (i.e., protoc). |
Yannic Bonenberger | bf0c69e | 2019-07-26 13:14:19 +0200 | [diff] [blame] | 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", |
Mike Kruskal | ed5c57a | 2022-08-10 22:51:29 -0700 | [diff] [blame] | 13 | # sha256 = "c29d8b4b79389463c546f98b15aa4391d4ed7ec459340c47bffe15db63eb9126", |
| 14 | # strip_prefix = "protobuf-3.21.3", |
| 15 | # urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.21.3.tar.gz"], |
Yannic Bonenberger | bf0c69e | 2019-07-26 13:14:19 +0200 | [diff] [blame] | 16 | # ) |
Mike Kruskal | ed5c57a | 2022-08-10 22:51:29 -0700 | [diff] [blame] | 17 | |
Yannic Bonenberger | bf0c69e | 2019-07-26 13:14:19 +0200 | [diff] [blame] | 18 | local_repository( |
Feng Xiao | 74bf45f | 2017-09-08 15:44:09 -0700 | [diff] [blame] | 19 | name = "com_google_protobuf", |
Yannic Bonenberger | bf0c69e | 2019-07-26 13:14:19 +0200 | [diff] [blame] | 20 | path = "..", |
Feng Xiao | 74bf45f | 2017-09-08 15:44:09 -0700 | [diff] [blame] | 21 | ) |
Feng Xiao | 74bf45f | 2017-09-08 15:44:09 -0700 | [diff] [blame] | 22 | |
Yannic Bonenberger | bf0c69e | 2019-07-26 13:14:19 +0200 | [diff] [blame] | 23 | # Similar to com_google_protobuf but for Java lite. If you are building |
Brian Wignall | a104dff | 2020-01-08 13:18:20 -0500 | [diff] [blame] | 24 | # for Android, the lite version should be preferred because it has a much |
Feng Xiao | 74bf45f | 2017-09-08 15:44:09 -0700 | [diff] [blame] | 25 | # smaller code size. |
Rafi Kamal | e6c5a3b | 2019-11-27 11:10:45 -0800 | [diff] [blame] | 26 | local_repository( |
Feng Xiao | 74bf45f | 2017-09-08 15:44:09 -0700 | [diff] [blame] | 27 | name = "com_google_protobuf_javalite", |
Rafi Kamal | e6c5a3b | 2019-11-27 11:10:45 -0800 | [diff] [blame] | 28 | path = "..", |
Feng Xiao | 74bf45f | 2017-09-08 15:44:09 -0700 | [diff] [blame] | 29 | ) |
Feng Xiao | 1a7ce04 | 2018-07-03 11:00:15 -0700 | [diff] [blame] | 30 | |
Kent Ross | b6375e0 | 2019-02-26 10:07:55 -0800 | [diff] [blame] | 31 | load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") |
Adam Cozzette | e03c0d2 | 2018-12-11 15:57:26 -0800 | [diff] [blame] | 32 | |
Kent Ross | b6375e0 | 2019-02-26 10:07:55 -0800 | [diff] [blame] | 33 | protobuf_deps() |