Source release 15.2.0
This commit is contained in:
17
third_party/protobuf/examples/WORKSPACE
vendored
17
third_party/protobuf/examples/WORKSPACE
vendored
@@ -1,9 +1,11 @@
|
||||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
||||
|
||||
# This com_google_protobuf repository is required for proto_library rule.
|
||||
# It provides the protocol compiler binary (i.e., protoc).
|
||||
http_archive(
|
||||
name = "com_google_protobuf",
|
||||
strip_prefix = "protobuf-master",
|
||||
urls = ["https://github.com/google/protobuf/archive/master.zip"],
|
||||
urls = ["https://github.com/protocolbuffers/protobuf/archive/master.zip"],
|
||||
)
|
||||
|
||||
# This com_google_protobuf_cc repository is required for cc_proto_library
|
||||
@@ -13,14 +15,14 @@ http_archive(
|
||||
http_archive(
|
||||
name = "com_google_protobuf_cc",
|
||||
strip_prefix = "protobuf-master",
|
||||
urls = ["https://github.com/google/protobuf/archive/master.zip"],
|
||||
urls = ["https://github.com/protocolbuffers/protobuf/archive/master.zip"],
|
||||
)
|
||||
|
||||
# Similar to com_google_protobuf_cc but for Java (i.e., java_proto_library).
|
||||
http_archive(
|
||||
name = "com_google_protobuf_java",
|
||||
strip_prefix = "protobuf-master",
|
||||
urls = ["https://github.com/google/protobuf/archive/master.zip"],
|
||||
urls = ["https://github.com/protocolbuffers/protobuf/archive/master.zip"],
|
||||
)
|
||||
|
||||
# Similar to com_google_protobuf_cc but for Java lite. If you are building
|
||||
@@ -29,7 +31,7 @@ http_archive(
|
||||
http_archive(
|
||||
name = "com_google_protobuf_javalite",
|
||||
strip_prefix = "protobuf-javalite",
|
||||
urls = ["https://github.com/google/protobuf/archive/javalite.zip"],
|
||||
urls = ["https://github.com/protocolbuffers/protobuf/archive/javalite.zip"],
|
||||
)
|
||||
|
||||
http_archive(
|
||||
@@ -39,5 +41,10 @@ http_archive(
|
||||
urls = ["https://github.com/bazelbuild/bazel-skylib/archive/2169ae1c374aab4a09aa90e65efe1a3aad4e279b.tar.gz"],
|
||||
)
|
||||
|
||||
load("@bazel_skylib//:lib.bzl", "versions")
|
||||
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
|
||||
|
||||
protobuf_deps()
|
||||
|
||||
load("@bazel_skylib//lib:versions.bzl", "versions")
|
||||
|
||||
versions.check(minimum_bazel_version = "0.5.4")
|
||||
|
||||
Reference in New Issue
Block a user