Register the propagateRROEnforcementMutator
This adds the registration of the mutator to the existing register... method which will include it in PrepareForTestWithJavaBuildComponents. Bug: 182885307 Test: m nothing Change-Id: I6cea716a3ff4d8abdb80543b7e0ddf22246ffa30
This commit is contained in:
@@ -40,15 +40,14 @@ type AndroidLibraryDependency interface {
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
RegisterAARBuildComponents(android.InitRegistrationContext)
|
RegisterAARBuildComponents(android.InitRegistrationContext)
|
||||||
|
|
||||||
android.PostDepsMutators(func(ctx android.RegisterMutatorsContext) {
|
|
||||||
ctx.TopDown("propagate_rro_enforcement", propagateRROEnforcementMutator).Parallel()
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func RegisterAARBuildComponents(ctx android.RegistrationContext) {
|
func RegisterAARBuildComponents(ctx android.RegistrationContext) {
|
||||||
ctx.RegisterModuleType("android_library_import", AARImportFactory)
|
ctx.RegisterModuleType("android_library_import", AARImportFactory)
|
||||||
ctx.RegisterModuleType("android_library", AndroidLibraryFactory)
|
ctx.RegisterModuleType("android_library", AndroidLibraryFactory)
|
||||||
|
ctx.PostDepsMutators(func(ctx android.RegisterMutatorsContext) {
|
||||||
|
ctx.TopDown("propagate_rro_enforcement", propagateRROEnforcementMutator).Parallel()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@@ -126,10 +126,6 @@ func testContext(config android.Config) *android.TestContext {
|
|||||||
// Register module types and mutators from cc needed for JNI testing
|
// Register module types and mutators from cc needed for JNI testing
|
||||||
cc.RegisterRequiredBuildComponentsForTest(ctx)
|
cc.RegisterRequiredBuildComponentsForTest(ctx)
|
||||||
|
|
||||||
ctx.PostDepsMutators(func(ctx android.RegisterMutatorsContext) {
|
|
||||||
ctx.TopDown("propagate_rro_enforcement", propagateRROEnforcementMutator).Parallel()
|
|
||||||
})
|
|
||||||
|
|
||||||
return ctx
|
return ctx
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user