2019-07-26 11:14:19 +00:00
|
|
|
workspace(name = "com_google_protobuf_examples")
|
|
|
|
|
2018-12-11 23:57:26 +00:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
|
2017-09-08 22:44:09 +00:00
|
|
|
# This com_google_protobuf repository is required for proto_library rule.
|
|
|
|
# It provides the protocol compiler binary (i.e., protoc).
|
2019-07-26 11:14:19 +00:00
|
|
|
#
|
|
|
|
# We declare it as local_repository so we can test changes
|
|
|
|
# before they get merged. You'll want to use the following instead:
|
|
|
|
#
|
|
|
|
# http_archive(
|
|
|
|
# name = "com_google_protobuf",
|
|
|
|
# strip_prefix = "protobuf-master",
|
|
|
|
# urls = ["https://github.com/protocolbuffers/protobuf/archive/master.zip"],
|
|
|
|
# )
|
|
|
|
local_repository(
|
2017-09-08 22:44:09 +00:00
|
|
|
name = "com_google_protobuf",
|
2019-07-26 11:14:19 +00:00
|
|
|
path = "..",
|
2017-09-08 22:44:09 +00:00
|
|
|
)
|
|
|
|
|
2019-07-26 11:14:19 +00:00
|
|
|
# Similar to com_google_protobuf but for Java lite. If you are building
|
2020-01-08 18:18:20 +00:00
|
|
|
# for Android, the lite version should be preferred because it has a much
|
2017-09-08 22:44:09 +00:00
|
|
|
# smaller code size.
|
2019-11-27 19:10:45 +00:00
|
|
|
local_repository(
|
2017-09-08 22:44:09 +00:00
|
|
|
name = "com_google_protobuf_javalite",
|
2019-11-27 19:10:45 +00:00
|
|
|
path = "..",
|
2017-09-08 22:44:09 +00:00
|
|
|
)
|
2018-07-03 18:00:15 +00:00
|
|
|
|
2019-02-26 18:07:55 +00:00
|
|
|
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
|
2018-12-11 23:57:26 +00:00
|
|
|
|
2019-02-26 18:07:55 +00:00
|
|
|
protobuf_deps()
|