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 --- WORKSPACE | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'WORKSPACE') diff --git a/WORKSPACE b/WORKSPACE index 2cd2e14e3a..666b8dfe9e 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -59,3 +59,8 @@ bind(name = "xcrunwrapper", actual = "@bazel_tools//tools/objc:xcrunwrapper") bind(name = "protobuf/java_runtime", actual = "//third_party/protobuf:protobuf") bind(name = "protobuf/javalite_runtime", actual = "//third_party/protobuf:protobuf-lite") bind(name = "proto/toolchains/java", actual = "//third_party/protobuf:java_toolchain") +new_local_repository( + name = "com_google_protobuf_java", + path = "./third_party/protobuf/3.0.0/", + build_file = "./third_party/protobuf/3.0.0/com_google_protobuf_java.BUILD", +) -- cgit v1.2.3