Skip to content

Commit 0425fa9

Browse files
ejona86rafi-kamal
authored andcommitted
Add a proto_lang_toolchain for javalite (#6882) (#6976)
* Add a proto_lang_toolchain for javalite * fix toolchain. Swap javalite example to master repo
1 parent 2929bb3 commit 0425fa9

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

BUILD

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,13 @@ proto_lang_toolchain(
10011001
visibility = ["//visibility:public"],
10021002
)
10031003

1004+
proto_lang_toolchain(
1005+
name = "javalite_toolchain",
1006+
command_line = "--java_out=lite:$(OUT)",
1007+
runtime = ":protobuf_javalite",
1008+
visibility = ["//visibility:public"],
1009+
)
1010+
10041011
alias(
10051012
name = "objectivec",
10061013
actual = ":protobuf_objc",

examples/WORKSPACE

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ local_repository(
2121
# Similar to com_google_protobuf but for Java lite. If you are building
2222
# for Android, the lite version should be prefered because it has a much
2323
# smaller code size.
24-
http_archive(
24+
local_repository(
2525
name = "com_google_protobuf_javalite",
26-
strip_prefix = "protobuf-javalite",
27-
urls = ["https://github.com/protocolbuffers/protobuf/archive/javalite.zip"],
26+
path = "..",
2827
)
2928

3029
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

0 commit comments

Comments
 (0)