Skip to content

Commit

Permalink
Separate ijar sources from deployment zip. (#12556)
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.

PiperOrigin-RevId: 344260438
  • Loading branch information
philwo authored and Copybara-Service committed Nov 25, 2020
1 parent f5887da commit 3c9ad2d
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions third_party/ijar/BUILD
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 3c9ad2d

Please sign in to comment.