platform_build_soong/android
Colin Cross d6fd013394 Support generating module_info.json in Soong
Generate module_info.json for some Soong modules in Soong in order to
pass fewer properties to Kati, which can prevent Kati reanalysis when
some Android.bp changes are made.

Soong modules can export a ModuleInfoJSONProvider containing the
data that should be included in module-info.json.  During the androidmk
singleton the providers are collected and written to a single JSON
file.  Make then merges the Soong modules into its own modules.

For now, to keep the result as similar as possible to the
module-info.json currently being generated by Make, only modules that
are exported to Make are written to the Soong module-info.json.

Bug: 309006256
Test: Compare module-info.json
Change-Id: I996520eb48e04743d43ac11c9aba0f3ada7745de
2024-01-02 16:03:43 -08:00
..
allowlists Merge "Allowlist libcodec2_soft_av1dec_dav1d" into main 2023-10-25 19:22:15 +00:00
soongconfig Migrate overlapping config var defs in all bp file 2023-03-06 09:15:36 -05:00
Android.bp Support generating module_info.json in Soong 2024-01-02 16:03:43 -08:00
android_test.go
androidmk.go Support generating module_info.json in Soong 2024-01-02 16:03:43 -08:00
androidmk_test.go
apex.go Convert NewProvider/NewMutatorProvider to generic providers API 2023-12-14 16:12:20 -08:00
apex_contributions.go Convert SetProvider to generic providers API 2023-12-14 16:12:20 -08:00
apex_test.go Add TestApexes to ApexInfo 2023-04-17 19:26:07 +00:00
api_domain.go Delete some api_bp2build dead code. 2023-10-05 10:23:58 +00:00
api_levels.go Support for incremetal platform prebuilt APIs 2023-08-25 18:03:44 +00:00
arch.go Add sdk_genrule 2023-12-13 14:11:24 -08:00
arch_list.go Merge "Introduce armv9-a arch variant." 2023-03-07 22:58:11 +00:00
arch_test.go Add sanitizer tests for musl 2023-03-22 12:58:38 -07:00
base_module_context.go Use generics for providers API 2023-12-14 16:12:20 -08:00
buildinfo_prop.go Parallelize singleton execution 2023-05-19 20:31:32 +00:00
config.go Merge "Remove infrastructure to run bp2build" into main 2023-12-12 20:03:58 +00:00
config_bp2build.go Improve error message readability 2023-10-17 09:10:13 -04:00
config_bp2build_test.go
config_test.go Platform mapping-based product config 2023-07-17 16:27:08 -07:00
configured_jars.go Add a Make variable that overrides configured jar locations. 2023-07-14 12:13:30 +01:00
configured_jars_test.go Platform mapping-based product config 2023-07-17 16:27:08 -07:00
csuite_config.go
csuite_config_test.go
deapexer.go Convert OtherModuleProvider to generic providers API 2023-12-14 16:12:22 -08:00
defaults.go Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
defaults_test.go Revert "Add protected_properties support in defaults modules" 2023-03-10 18:53:59 -05:00
defs.go Add TestContext parameter to ContentFromFileRuleForTests 2023-12-03 17:22:56 -08:00
depset_generic.go Revert "support sandboxed rust rules" 2023-09-22 22:05:54 +00:00
depset_test.go Use generics for DepSets 2023-06-22 08:18:33 -07:00
deptag.go Install sdk variants in unbundled builds and package uninstallable variants 2023-05-02 15:37:26 +00:00
deptag_test.go
early_module_context.go Split *ModuleContext out of module.go 2023-11-15 11:40:49 -08:00
expand.go
expand_test.go
filegroup.go Convert SetProvider to generic providers API 2023-12-14 16:12:20 -08:00
filegroup_test.go Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
fixture.go Add unit test for parsing build files in bp2build 2023-09-14 19:19:28 +00:00
fixture_test.go
gen_notice.go Parallelize singleton execution 2023-05-19 20:31:32 +00:00
gen_notice_test.go
hooks.go
image.go
license.go Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
license_kind.go Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
license_kind_test.go
license_metadata.go Convert OtherModuleProvider to generic providers API 2023-12-14 16:12:22 -08:00
license_sdk_member.go
license_test.go
licenses.go Convert SetProvider to generic providers API 2023-12-14 16:12:20 -08:00
licenses_test.go
makevars.go Install vintf fragments and init.rc files in Soong 2024-01-02 16:01:56 -08:00
metrics.go Remove infrastructure to run bp2build 2023-12-08 13:51:07 -08:00
module.go Support generating module_info.json in Soong 2024-01-02 16:03:43 -08:00
module_context.go Support generating module_info.json in Soong 2024-01-02 16:03:43 -08:00
module_info_json.go Support generating module_info.json in Soong 2024-01-02 16:03:43 -08:00
module_test.go
mutator.go Use generics for providers API 2023-12-14 16:12:20 -08:00
mutator_test.go Remove infrastructure to run bp2build 2023-12-08 13:51:07 -08:00
namespace.go Add name hint to Soong. 2023-04-10 20:20:41 +00:00
namespace_test.go Add name hint to Soong. 2023-04-10 20:20:41 +00:00
neverallow.go Allow Ravenwood to cross variant boundaries 2023-11-11 00:13:14 +00:00
neverallow_test.go java_library support for building headers-only 2023-08-22 21:29:05 +00:00
ninja_deps.go Load starlark files from soong 2023-04-26 17:18:19 -07:00
ninja_deps_test.go
notices.go
onceper.go
onceper_test.go
override_module.go Remove infrastructure to run bp2build 2023-12-08 13:51:07 -08:00
package.go Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
package_ctx.go
package_test.go
packaging.go Use generics for DepSets 2023-06-22 08:18:33 -07:00
packaging_test.go Install sdk variants in unbundled builds and package uninstallable variants 2023-05-02 15:37:26 +00:00
path_properties.go
path_properties_test.go
paths.go Remove cc.moduleContext override of android.ModuleContext.*Specific 2023-12-18 15:07:05 -08:00
paths_test.go Optimize out empty path components 2023-11-02 14:37:21 -07:00
phony.go Replace SortedStringKeys with SortedKeys 2023-02-28 16:51:32 -08:00
plugin.go Remove google_clockwork list of soong plugins 2023-11-27 12:29:55 -08:00
prebuilt.go Convert OtherModuleProvider to generic providers API 2023-12-14 16:12:22 -08:00
prebuilt_build_tool.go Revert^4 "add rust_toolchain_rustc_prebuilt module type" 2023-09-25 12:13:17 +00:00
prebuilt_test.go Use all_apex_contributions for source/prebuilts selection 2023-11-08 18:37:24 +00:00
proto.go Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
provider.go Use generics for providers API 2023-12-14 16:12:20 -08:00
register.go Remove infrastructure to run bp2build 2023-12-08 13:51:07 -08:00
rule_builder.go Add TestContext parameter to ContentFromFileRuleForTests 2023-12-03 17:22:56 -08:00
rule_builder_test.go Add TestContext parameter to ContentFromFileRuleForTests 2023-12-03 17:22:56 -08:00
sandbox.go
sdk.go Convert NewProvider/NewMutatorProvider to generic providers API 2023-12-14 16:12:20 -08:00
sdk_test.go
sdk_version.go SdkTestCore for non-updatable modules 2023-10-23 15:25:55 +00:00
sdk_version_test.go Platform mapping-based product config 2023-07-17 16:27:08 -07:00
singleton.go Convert ModuleProvder to generic providers API 2023-12-14 16:12:22 -08:00
singleton_module.go
singleton_module_test.go
soong_config_modules.go Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
soong_config_modules_test.go Use hashed subdir for soong_config modules 2023-05-26 18:07:05 +09:00
test_asserts.go use message in android.AssertStringMatches() 2023-10-04 20:19:54 +00:00
test_config.go Remove infrastructure to run bp2build 2023-12-08 13:51:07 -08:00
test_suites.go Remove baseModuleContext.debug 2023-10-16 14:20:00 -07:00
testing.go Use generics for providers API 2023-12-14 16:12:20 -08:00
updatable_modules.go Revert "DO NOT MERGE: Changing the udc-dev version to 345990000" 2023-05-03 16:43:37 +00:00
util.go Remove infrastructure to run bp2build 2023-12-08 13:51:07 -08:00
util_test.go Fix TestReverseSlice for go 1.21 2023-11-08 22:11:24 -08:00
variable.go Remove infrastructure to run bp2build 2023-12-08 13:51:07 -08:00
variable_test.go
visibility.go Remove completed TODO in android/visibility.go 2023-04-07 22:18:19 +00:00
visibility_test.go