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