Merge "Add genrule for combined-removed-dex" am: b0ba7618c8 am: dd7eb2b019
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1446678 Change-Id: I93de42fc706d521307b7cf08ac328b182131a542
This commit is contained in:
@@ -147,3 +147,17 @@ genrule {
|
|||||||
tools: ["metalava"],
|
tools: ["metalava"],
|
||||||
cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
|
cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
genrule {
|
||||||
|
name: "combined-removed-dex",
|
||||||
|
srcs: [
|
||||||
|
":frameworks-base-api-removed-merged.txt",
|
||||||
|
":frameworks-base-api-system-removed-merged.txt",
|
||||||
|
":android.car-stubs-docs{.removed-api.txt}",
|
||||||
|
":android.car-system-stubs-docs{.removed-api.txt}",
|
||||||
|
],
|
||||||
|
tool_files: ["gen_combined_removed_dex.sh"],
|
||||||
|
tools: ["metalava"],
|
||||||
|
out: ["combined-removed-dex.txt"],
|
||||||
|
cmd: "$(location gen_combined_removed_dex.sh) $(location metalava) $(genDir) $(in) > $(out)",
|
||||||
|
}
|
||||||
|
|||||||
11
api/gen_combined_removed_dex.sh
Executable file
11
api/gen_combined_removed_dex.sh
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
metalava_path="$1"
|
||||||
|
tmp_dir="$2"
|
||||||
|
shift 2
|
||||||
|
|
||||||
|
# Convert each removed.txt to the "dex format" equivalent, and print all output.
|
||||||
|
for f in "$@"; do
|
||||||
|
"$metalava_path" --no-banner "$f" --dex-api "${tmp_dir}/tmp"
|
||||||
|
cat "${tmp_dir}/tmp"
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user