Skip to content

Commit 3c9ad2d

Browse files
philwocopybara-github
authored andcommitted
Separate ijar sources from deployment zip. (#12556)
This is a github only patch from PR #12546. Needs to go in first. PiperOrigin-RevId: 344260438
1 parent f5887da commit 3c9ad2d

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

third_party/ijar/BUILD

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,20 @@ filegroup(
124124

125125
genrule(
126126
name = "ijar_transitive_zip",
127+
srcs = [
128+
":ijar_srcs_zip",
129+
":ijar_deploy_zip",
130+
"//src:zlib_zip",
131+
"//src/main/cpp/util:cpp_util_with_deps_zip",
132+
],
133+
outs = ["ijar_with_deps.zip"],
134+
cmd = "$(location //src:merge_zip_files) - $@ $(SRCS)",
135+
tools = ["//src:merge_zip_files"],
136+
visibility = ["//visibility:public"],
137+
)
138+
139+
genrule(
140+
name = "ijar_transitive_srcs_zip",
127141
srcs = [
128142
":ijar_srcs_zip",
129143
"//src:zlib_zip",
@@ -135,15 +149,24 @@ genrule(
135149
visibility = ["//visibility:public"],
136150
)
137151

152+
genrule(
153+
name = "ijar_deploy_zip",
154+
srcs = [
155+
":ijar",
156+
":zipper",
157+
],
158+
outs = ["ijar_deploy.zip"],
159+
cmd = "$(location //src:zip_files) ijar $@ $(SRCS)",
160+
tools = ["//src:zip_files"],
161+
visibility = ["//visibility:public"],
162+
)
163+
138164
genrule(
139165
name = "ijar_srcs_zip",
140166
srcs = glob(
141167
["**"],
142168
exclude = ["BUILD"],
143-
) + [
144-
":ijar",
145-
":zipper",
146-
],
169+
),
147170
outs = ["ijar_srcs.zip"],
148171
cmd = "$(location //src:zip_files) ijar $@ $(SRCS)",
149172
tools = ["//src:zip_files"],

0 commit comments

Comments
 (0)