Add Code Metadata rule to soong/testing.

This Cl adds a new rule to Soong to generate code ownership metadata. Also, this CL adds a provider in the Java SDK library to provide generated source files to the Code_metadata rule. Will add providers to other libraries in the future changes.

Bug: 296873595
Change-Id: Ic2e43aa9b161231fea4416d1f0d36b778361d7c5
This commit is contained in:
Aditya Choudhary
2023-10-12 19:40:17 +00:00
parent 14e1149195
commit 8094b6bf9d
25 changed files with 1042 additions and 6 deletions

View File

@@ -28,6 +28,8 @@ func init() {
}
func RegisterBuildComponents(ctx android.RegistrationContext) {
ctx.RegisterModuleType("code_metadata", CodeMetadataFactory)
ctx.RegisterModuleType("test_spec", TestSpecFactory)
ctx.RegisterParallelSingletonType("all_code_metadata", AllCodeMetadataFactory)
ctx.RegisterParallelSingletonType("all_test_specs", AllTestSpecsFactory)
}