• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2
3# This com_google_protobuf repository is required for proto_library rule.
4# It provides the protocol compiler binary (i.e., protoc).
5http_archive(
6    name = "com_google_protobuf",
7    strip_prefix = "protobuf-master",
8    urls = ["https://github.com/protocolbuffers/protobuf/archive/master.zip"],
9)
10
11# This com_google_protobuf_cc repository is required for cc_proto_library
12# rule. It provides protobuf C++ runtime. Note that it actually is the same
13# repo as com_google_protobuf but has to be given a different name as
14# required by bazel.
15http_archive(
16    name = "com_google_protobuf_cc",
17    strip_prefix = "protobuf-master",
18    urls = ["https://github.com/protocolbuffers/protobuf/archive/master.zip"],
19)
20
21# Similar to com_google_protobuf_cc but for Java (i.e., java_proto_library).
22http_archive(
23    name = "com_google_protobuf_java",
24    strip_prefix = "protobuf-master",
25    urls = ["https://github.com/protocolbuffers/protobuf/archive/master.zip"],
26)
27
28# Similar to com_google_protobuf_cc but for Java lite. If you are building
29# for Android, the lite version should be prefered because it has a much
30# smaller code size.
31http_archive(
32    name = "com_google_protobuf_javalite",
33    strip_prefix = "protobuf-javalite",
34    urls = ["https://github.com/protocolbuffers/protobuf/archive/javalite.zip"],
35)
36
37http_archive(
38    name = "bazel_skylib",
39    sha256 = "bbccf674aa441c266df9894182d80de104cabd19be98be002f6d478aaa31574d",
40    strip_prefix = "bazel-skylib-2169ae1c374aab4a09aa90e65efe1a3aad4e279b",
41    urls = ["https://github.com/bazelbuild/bazel-skylib/archive/2169ae1c374aab4a09aa90e65efe1a3aad4e279b.tar.gz"],
42)
43
44load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
45
46protobuf_deps()
47
48load("@bazel_skylib//lib:versions.bzl", "versions")
49
50versions.check(minimum_bazel_version = "0.5.4")
51