Add java_genrule to replace handcrafted api fingerprint generation
Test: m and TH Bug: 268337234 Change-Id: Ib58f736ce43d877d0c08cdd9b154e93a1766105b
This commit is contained in:
@@ -263,3 +263,15 @@ genrule {
|
|||||||
out: ["combined-removed-dex.txt"],
|
out: ["combined-removed-dex.txt"],
|
||||||
cmd: "$(location gen_combined_removed_dex.sh) $(location metalava) $(genDir) $(in) > $(out)",
|
cmd: "$(location gen_combined_removed_dex.sh) $(location metalava) $(genDir) $(in) > $(out)",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
java_genrule {
|
||||||
|
name: "api_fingerprint",
|
||||||
|
srcs: [
|
||||||
|
":frameworks-base-api-current.txt",
|
||||||
|
":frameworks-base-api-system-current.txt",
|
||||||
|
":frameworks-base-api-module-lib-current.txt",
|
||||||
|
":frameworks-base-api-system-server-current.txt",
|
||||||
|
],
|
||||||
|
out: ["api_fingerprint.txt"],
|
||||||
|
cmd: "cat $(in) | md5sum | cut -d' ' -f1 > $(out)",
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user