aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/protobuf
diff options
context:
space:
mode:
authorGravatar Carmi Grushko <carmi@google.com>2016-11-04 06:44:45 +0000
committerGravatar Laszlo Csomor <laszlocsomor@google.com>2016-11-04 09:23:50 +0000
commita396b070ae36032a973672e11145533621c39edc (patch)
treef40c31deedafdff3ffa2ab28b51f1c3defa4e939 /third_party/protobuf
parentd3276b12e24862eb5030a32a29e8d8dc6dbf08aa (diff)
Use proto_lang_toolchain() in java_proto_library.
-- MOS_MIGRATED_REVID=138161512
Diffstat (limited to 'third_party/protobuf')
-rw-r--r--third_party/protobuf/3.0.0/BUILD6
-rw-r--r--third_party/protobuf/BUILD2
2 files changed, 8 insertions, 0 deletions
diff --git a/third_party/protobuf/3.0.0/BUILD b/third_party/protobuf/3.0.0/BUILD
index 767ebd7306..9da9f25212 100644
--- a/third_party/protobuf/3.0.0/BUILD
+++ b/third_party/protobuf/3.0.0/BUILD
@@ -311,3 +311,9 @@ cc_library(
visibility = ["//visibility:public"],
deps = [":protobuf_clib"],
)
+
+proto_lang_toolchain(
+ name = "java_toolchain",
+ command_line = "--java_out=shared,immutable:$(OUT)",
+ runtime = ":protobuf",
+)
diff --git a/third_party/protobuf/BUILD b/third_party/protobuf/BUILD
index 0f39107b93..f6e1ea9fda 100644
--- a/third_party/protobuf/BUILD
+++ b/third_party/protobuf/BUILD
@@ -29,3 +29,5 @@ proto_alias("protobuf_lite", PROTOBUF_VERSION)
proto_alias("protobuf_clib", PROTOBUF_VERSION)
proto_alias("protoc_lib", PROTOBUF_VERSION)
+
+proto_alias("java_toolchain", PROTOBUF_VERSION)