summaryrefslogtreecommitdiff
path: root/api/Android.bp
diff options
context:
space:
mode:
authorAnton Hansson <hansson@google.com>2020-09-21 17:02:25 +0100
committerAnton Hansson <hansson@google.com>2020-09-22 18:53:15 +0100
commit85359f6f0b7cb6d0d9ef95adf36d9389450864ff (patch)
tree34a9089cfbbe8ac263e111f4cbe8ecf6b18f6c10 /api/Android.bp
parentfcb91d4ad070ce12b5acad2a0f01d2143aad8f75 (diff)
Add genrules for merged current.txt
Feed metalava all module txt files and write a single file. These are intended to replace the checked in monolithic current.txt eventually. Note that they are unused for now, they're getting checked in to enable easier collaboration. Bug: 169034951 Test: m frameworks-base-api-{,system-,module-lib-}current-merged.txt Test: Manual inspection for now, some very minor diffs Change-Id: I1e1d0aff8475d3aaa354308bb70d54201488de61
Diffstat (limited to 'api/Android.bp')
-rw-r--r--api/Android.bp52
1 files changed, 52 insertions, 0 deletions
diff --git a/api/Android.bp b/api/Android.bp
index 54031da6e203..cb6d448caf63 100644
--- a/api/Android.bp
+++ b/api/Android.bp
@@ -43,3 +43,55 @@ genrule {
cmd: "$(location metalava) --no-banner -convert2xmlnostrip $(in) $(out)",
visibility: ["//visibility:public"],
}
+
+genrule {
+ name: "frameworks-base-api-current-merged.txt",
+ srcs: [
+ ":conscrypt.module.public.api{.public.api.txt}",
+ ":framework-media{.public.api.txt}",
+ ":framework-mediaprovider{.public.api.txt}",
+ ":framework-permission{.public.api.txt}",
+ ":framework-sdkextensions{.public.api.txt}",
+ ":framework-statsd{.public.api.txt}",
+ ":framework-tethering{.public.api.txt}",
+ ":framework-wifi{.public.api.txt}",
+ ":non-updatable-current.txt",
+ ],
+ out: ["current.txt"],
+ tools: ["metalava"],
+ cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
+}
+
+genrule {
+ name: "frameworks-base-api-system-current-merged.txt",
+ srcs: [
+ ":framework-media{.system.api.txt}",
+ ":framework-mediaprovider{.system.api.txt}",
+ ":framework-permission{.system.api.txt}",
+ ":framework-sdkextensions{.system.api.txt}",
+ ":framework-statsd{.system.api.txt}",
+ ":framework-tethering{.system.api.txt}",
+ ":framework-wifi{.system.api.txt}",
+ ":non-updatable-system-current.txt",
+ ],
+ out: ["system-current.txt"],
+ tools: ["metalava"],
+ cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
+}
+
+genrule {
+ name: "frameworks-base-api-module-lib-current-merged.txt",
+ srcs: [
+ ":framework-media{.module-lib.api.txt}",
+ ":framework-mediaprovider{.module-lib.api.txt}",
+ ":framework-permission{.module-lib.api.txt}",
+ ":framework-sdkextensions{.module-lib.api.txt}",
+ ":framework-statsd{.module-lib.api.txt}",
+ ":framework-tethering{.module-lib.api.txt}",
+ ":framework-wifi{.module-lib.api.txt}",
+ ":non-updatable-module-lib-current.txt",
+ ],
+ out: ["module-lib-current.txt"],
+ tools: ["metalava"],
+ cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
+}