Skip to content

Commit

Permalink
Separate ijar sources from deployment zip.
Browse files Browse the repository at this point in the history
This is a github only patch from PR #12546. Needs to go in first.

Closes #12556.

Signed-off-by: Philipp Wollermann <[email protected]>
  • Loading branch information
comius authored and philwo committed Nov 25, 2020
1 parent 1ad391b commit de2dab0
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions third_party/ijar/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,20 @@ filegroup(

genrule(
name = "ijar_transitive_zip",
srcs = [
":ijar_srcs_zip",
":ijar_deploy_zip",
"//src:zlib_zip",
"//src/main/cpp/util:cpp_util_with_deps_zip",
],
outs = ["ijar_with_deps.zip"],
cmd = "$(location //src:merge_zip_files) - $@ $(SRCS)",
tools = ["//src:merge_zip_files"],
visibility = ["//visibility:public"],
)

genrule(
name = "ijar_transitive_srcs_zip",
srcs = [
":ijar_srcs_zip",
"//src:zlib_zip",
Expand All @@ -135,15 +149,24 @@ genrule(
visibility = ["//visibility:public"],
)

genrule(
name = "ijar_deploy_zip",
srcs = [
":ijar",
":zipper",
],
outs = ["ijar_deploy.zip"],
cmd = "$(location //src:zip_files) ijar $@ $(SRCS)",
tools = ["//src:zip_files"],
visibility = ["//visibility:public"],
)

genrule(
name = "ijar_srcs_zip",
srcs = glob(
["**"],
exclude = ["BUILD"],
) + [
":ijar",
":zipper",
],
),
outs = ["ijar_srcs.zip"],
cmd = "$(location //src:zip_files) ijar $@ $(SRCS)",
tools = ["//src:zip_files"],
Expand Down

0 comments on commit de2dab0

Please sign in to comment.