Add a proto_lang_toolchain for javalite (#6882) (#6976)

* Add a proto_lang_toolchain for javalite

* fix toolchain. Swap javalite example to master repo
This commit is contained in:
Eric Anderson 2019-12-03 13:06:31 -08:00 committed by Rafi Kamal
parent 2929bb3736
commit 0425fa932c
2 changed files with 9 additions and 3 deletions

7
BUILD
View File

@ -1001,6 +1001,13 @@ proto_lang_toolchain(
visibility = ["//visibility:public"],
)
proto_lang_toolchain(
name = "javalite_toolchain",
command_line = "--java_out=lite:$(OUT)",
runtime = ":protobuf_javalite",
visibility = ["//visibility:public"],
)
alias(
name = "objectivec",
actual = ":protobuf_objc",

View File

@ -21,10 +21,9 @@ local_repository(
# Similar to com_google_protobuf but for Java lite. If you are building
# for Android, the lite version should be prefered because it has a much
# smaller code size.
http_archive(
local_repository(
name = "com_google_protobuf_javalite",
strip_prefix = "protobuf-javalite",
urls = ["https://github.com/protocolbuffers/protobuf/archive/javalite.zip"],
path = "..",
)
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")