Add a proto_lang_toolchain for Java

This allows easy use of Bazel's java_proto_library native rule.
This commit is contained in:
cgrushko 2017-01-12 12:51:04 -05:00 committed by GitHub
parent e53dd99350
commit e4baf3f58a

9
BUILD
View File

@ -771,7 +771,14 @@ internal_protobuf_py_tests(
proto_lang_toolchain(
name = "cc_toolchain",
runtime = ":protobuf",
command_line = "--cpp_out=$(OUT)",
runtime = ":protobuf",
visibility = ["//visibility:public"],
)
proto_lang_toolchain(
name = "java_toolchain",
command_line = "--java_out=$(OUT)",
runtime = ":protobuf_java",
visibility = ["//visibility:public"],
)