aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/protobuf
diff options
context:
space:
mode:
authorGravatar Carmi Grushko <carmi@google.com>2016-11-29 01:04:35 +0000
committerGravatar Irina Iancu <elenairina@google.com>2016-11-29 08:07:22 +0000
commitf1aa34c87cbd1944f385911244f3828e8d9114eb (patch)
treeb7c656cb89e1f9ebbdd7a13ddbd585a2d61cb512 /third_party/protobuf
parent2b5038831c2514f65841ce4e40f8e4648250bf01 (diff)
Make it easier to use protos in Bazel out of the box.
java_xxx_proto_library rules now look for toolchains in the external repo @com_google_protobuf_xxx//:xxx_toolchain This still requires getting protobuf's GitHub repository to build with Bazel. -- MOS_MIGRATED_REVID=140420903
Diffstat (limited to 'third_party/protobuf')
-rw-r--r--third_party/protobuf/3.0.0/com_google_protobuf_java.BUILD13
1 files changed, 13 insertions, 0 deletions
diff --git a/third_party/protobuf/3.0.0/com_google_protobuf_java.BUILD b/third_party/protobuf/3.0.0/com_google_protobuf_java.BUILD
new file mode 100644
index 0000000000..ce43ac82d4
--- /dev/null
+++ b/third_party/protobuf/3.0.0/com_google_protobuf_java.BUILD
@@ -0,0 +1,13 @@
+load(":proto_lang_toolchain_if_exists.bzl", "proto_lang_toolchain")
+
+java_import(
+ name = "protobuf",
+ jars = ["protobuf-java-3.0.0.jar"],
+)
+
+proto_lang_toolchain(
+ name = "java_toolchain",
+ command_line = "--java_out=shared,immutable:$(OUT)",
+ runtime = ":protobuf",
+ visibility = ["//visibility:public"],
+)