aboutsummaryrefslogtreecommitdiffhomepage
path: root/WORKSPACE
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 /WORKSPACE
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 'WORKSPACE')
-rw-r--r--WORKSPACE5
1 files changed, 5 insertions, 0 deletions
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",
+)