Create soong config to support other apis for aconfig finalization
Bug: b/391174731
Flag: NONE exempt build change
Test: `m all_aconfig_declarations` and check finalized-flags.txt
Ignore-AOSP-First: testing in main presubmits, will cp
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a901751cea47a035e9bb6a0bb35ac2ba324b335d)
Merged-In: I8612b185db60085a3be3fc560fc11cf77fbf35db
Change-Id: I8612b185db60085a3be3fc560fc11cf77fbf35db
diff --git a/aconfig/Android.bp b/aconfig/Android.bp
index 1505ba5..3484b97 100644
--- a/aconfig/Android.bp
+++ b/aconfig/Android.bp
@@ -29,12 +29,17 @@
pluginFor: ["soong_build"],
}
+// All FlaggedApi flags associated with platform API.
+// By default this uses the platform APIs associated with android.jar
+// but other verticals/platforms can override via soong config setting.
all_aconfig_declarations {
name: "all_aconfig_declarations",
- api_files: [
- ":frameworks-base-api-current.txt",
- ":frameworks-base-api-system-current.txt",
- ":frameworks-base-api-system-server-current.txt",
- ":frameworks-base-api-module-lib-current.txt",
- ],
+ api_files: select(soong_config_variable("android_aconfig", "opt_platform_api_srcs"), {
+ default: [
+ ":frameworks-base-api-current.txt",
+ ":frameworks-base-api-system-current.txt",
+ ":frameworks-base-api-system-server-current.txt",
+ ":frameworks-base-api-module-lib-current.txt",
+ ],
+ }),
}