summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorAndrei Onea <andreionea@google.com>2021-02-19 16:28:30 +0000
committerAndrei-Valentin Onea <andreionea@google.com>2021-02-23 14:15:11 +0000
commitb2cf181a015fc35eae6174c9615ae0071d5a2023 (patch)
tree1ad6aadb042c0003c57ed6b914bdf3637efb6753 /api
parent359eca32b32d07f0013f60ebbe1600d985c951fc (diff)
Add genrules for merged system server stubs
This is a change analogous to https://r.android.com/1432681 for system server stubs; it feeds into metalava the stubs for the non-updatable system server api stubs and the individual mainline module system server stubs to generate a merged .txt file that will eventually replace the monolithic one in frameworks/base/services/api/current.txt . Bug: 177640454 Test: diff frameworks/base/services/api/current.txt \ out/soong/.intermediates/frameworks/base/api/services-system-server-current.txt/gen/system-server-current.txt Change-Id: I021f59bb91572d28798a97ab8aa687b684599d6c
Diffstat (limited to 'api')
-rw-r--r--api/Android.bp46
1 files changed, 46 insertions, 0 deletions
diff --git a/api/Android.bp b/api/Android.bp
index 2c2bb65402ea..4a641f3519eb 100644
--- a/api/Android.bp
+++ b/api/Android.bp
@@ -312,3 +312,49 @@ genrule {
out: ["combined-removed-dex.txt"],
cmd: "$(location gen_combined_removed_dex.sh) $(location metalava) $(genDir) $(in) > $(out)",
}
+
+genrule {
+ name: "services-system-server-current.txt",
+ srcs: [
+ ":service-permission{.system-server.api.txt}",
+ ":non-updatable-system-server-current.txt",
+ ],
+ out: ["system-server-current.txt"],
+ tools: ["metalava"],
+ cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
+ dists: [
+ {
+ targets: ["droidcore"],
+ dir: "api",
+ dest: "system-server-current.txt",
+ },
+ {
+ targets: ["sdk", "win_sdk"],
+ dir: "apistubs/android/system-server/api",
+ dest: "merge-android.txt",
+ },
+ ],
+}
+
+genrule {
+ name: "services-system-server-removed.txt",
+ srcs: [
+ ":service-permission{.system-server.removed-api.txt}",
+ ":non-updatable-system-server-removed.txt",
+ ],
+ out: ["system-server-removed.txt"],
+ tools: ["metalava"],
+ cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
+ dists: [
+ {
+ targets: ["droidcore"],
+ dir: "api",
+ dest: "system-server-removed.txt",
+ },
+ {
+ targets: ["sdk", "win_sdk"],
+ dir: "apistubs/android/system-server/api",
+ dest: "merge-removed.txt",
+ },
+ ],
+}