Add '--jar' flag to soong_zip to move META-INF to the top of the zip
Bug: 64536066
Test: soong_zip --jar -o /tmp/out.zip -C . -l files.list && \
zipdetails /tmp/out.zip | less \
# and check that the META-INF entries are earlier in \
# the list than other entries
Change-Id: Id5c6ea9ce8c3a6fbfb8366db753e6603a076dbf8
diff --git a/cmd/soong_zip/Android.bp b/cmd/soong_zip/Android.bp
index 10896ce..3e69336 100644
--- a/cmd/soong_zip/Android.bp
+++ b/cmd/soong_zip/Android.bp
@@ -14,7 +14,10 @@
blueprint_go_binary {
name: "soong_zip",
- deps: ["android-archive-zip"],
+ deps: [
+ "android-archive-zip",
+ "soong-jar",
+ ],
srcs: [
"soong_zip.go",
"rate_limit.go",