Unverified Commit e6c5a3b5 authored by Rafi Kamal's avatar Rafi Kamal Committed by GitHub

Add a proto_lang_toolchain for javalite (#6882)

* Add a proto_lang_toolchain for javalite

* fix toolchain. Swap javalite example to master repo
parent 058d5b0d
...@@ -1001,6 +1001,13 @@ proto_lang_toolchain( ...@@ -1001,6 +1001,13 @@ proto_lang_toolchain(
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
) )
proto_lang_toolchain(
name = "javalite_toolchain",
command_line = "--java_out=lite:$(OUT)",
runtime = ":protobuf_javalite",
visibility = ["//visibility:public"],
)
alias( alias(
name = "objectivec", name = "objectivec",
actual = ":protobuf_objc", actual = ":protobuf_objc",
......
...@@ -21,10 +21,9 @@ local_repository( ...@@ -21,10 +21,9 @@ local_repository(
# Similar to com_google_protobuf but for Java lite. If you are building # 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 # for Android, the lite version should be prefered because it has a much
# smaller code size. # smaller code size.
http_archive( local_repository(
name = "com_google_protobuf_javalite", name = "com_google_protobuf_javalite",
strip_prefix = "protobuf-javalite", path = "..",
urls = ["https://github.com/protocolbuffers/protobuf/archive/javalite.zip"],
) )
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment