Generate genrule modules for merged api txts

Add a soong plugin that can generate the genrule definitions for the
merged api txt files. This will allow removing a lot of duplicated
lists in the Android.bp and simplify adding new modules.

Bug: 169103987
Test: follow-up that uses these rules (branch dependent)
Change-Id: I0c7a9921b7f4c5b74f8b652cb357abf9444ce93f
This commit is contained in:
Anton Hansson
2021-10-08 16:48:03 +01:00
parent ac674f3b41
commit 0860aaf958
2 changed files with 237 additions and 0 deletions

View File

@@ -24,6 +24,19 @@ package {
default_applicable_licenses: ["frameworks_base_license"],
}
bootstrap_go_package {
name: "soong-api",
pkgPath: "android/soong/api",
deps: [
"blueprint",
"soong",
"soong-android",
"soong-genrule",
],
srcs: ["api.go"],
pluginFor: ["soong_build"],
}
python_defaults {
name: "python3_version_defaults",
version: {