diff options
Diffstat (limited to 'java/builder.go')
-rw-r--r-- | java/builder.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/java/builder.go b/java/builder.go index 462626712..0c5773823 100644 --- a/java/builder.go +++ b/java/builder.go @@ -246,6 +246,19 @@ var ( CommandDeps: []string{"${config.ZipAlign}"}, }, ) + + checkZipAlignment = pctx.AndroidStaticRule("checkzipalign", + blueprint.RuleParams{ + Command: "if ! ${config.ZipAlign} -c -p 4 $in > /dev/null; then " + + "echo $in: Improper package alignment >&2; " + + "exit 1; " + + "else " + + "touch $out; " + + "fi", + CommandDeps: []string{"${config.ZipAlign}"}, + Description: "Check zip alignment", + }, + ) ) func init() { |