From f1aa34c87cbd1944f385911244f3828e8d9114eb Mon Sep 17 00:00:00 2001 From: Carmi Grushko Date: Tue, 29 Nov 2016 01:04:35 +0000 Subject: 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 --- third_party/protobuf/3.0.0/com_google_protobuf_java.BUILD | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 third_party/protobuf/3.0.0/com_google_protobuf_java.BUILD (limited to 'third_party/protobuf') 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"], +) -- cgit v1.2.3