blob: e9811efff26bb73d1e301373a986037674fa25be [file] [log] [blame]
Yannic Bonenbergerbf0c69e2019-07-26 13:14:19 +02001workspace(name = "com_google_protobuf_examples")
2
Adam Cozzettee03c0d22018-12-11 15:57:26 -08003load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4
Feng Xiao74bf45f2017-09-08 15:44:09 -07005# This com_google_protobuf repository is required for proto_library rule.
6# It provides the protocol compiler binary (i.e., protoc).
Yannic Bonenbergerbf0c69e2019-07-26 13:14:19 +02007#
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 Kruskaled5c57a2022-08-10 22:51:29 -070013# sha256 = "c29d8b4b79389463c546f98b15aa4391d4ed7ec459340c47bffe15db63eb9126",
14# strip_prefix = "protobuf-3.21.3",
15# urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.21.3.tar.gz"],
Yannic Bonenbergerbf0c69e2019-07-26 13:14:19 +020016# )
Mike Kruskaled5c57a2022-08-10 22:51:29 -070017
Yannic Bonenbergerbf0c69e2019-07-26 13:14:19 +020018local_repository(
Feng Xiao74bf45f2017-09-08 15:44:09 -070019 name = "com_google_protobuf",
Yannic Bonenbergerbf0c69e2019-07-26 13:14:19 +020020 path = "..",
Feng Xiao74bf45f2017-09-08 15:44:09 -070021)
Feng Xiao74bf45f2017-09-08 15:44:09 -070022
Yannic Bonenbergerbf0c69e2019-07-26 13:14:19 +020023# Similar to com_google_protobuf but for Java lite. If you are building
Brian Wignalla104dff2020-01-08 13:18:20 -050024# for Android, the lite version should be preferred because it has a much
Feng Xiao74bf45f2017-09-08 15:44:09 -070025# smaller code size.
Rafi Kamale6c5a3b2019-11-27 11:10:45 -080026local_repository(
Feng Xiao74bf45f2017-09-08 15:44:09 -070027 name = "com_google_protobuf_javalite",
Rafi Kamale6c5a3b2019-11-27 11:10:45 -080028 path = "..",
Feng Xiao74bf45f2017-09-08 15:44:09 -070029)
Feng Xiao1a7ce042018-07-03 11:00:15 -070030
Kent Rossb6375e02019-02-26 10:07:55 -080031load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
Adam Cozzettee03c0d22018-12-11 15:57:26 -080032
Kent Rossb6375e02019-02-26 10:07:55 -080033protobuf_deps()