Provide preparer for using platform_compat_config modules am: 4eb4b41cef

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1626504

Change-Id: Id9af1fa24826b17936b206242e769dda0e905167
This commit is contained in:
Paul Duffin 2021-03-16 07:25:50 +00:00 committed by Automerger Merge Worker
commit 74b85bd619
1 changed files with 9 additions and 3 deletions

View File

@ -20,11 +20,17 @@ import (
)
func init() {
android.RegisterSingletonType("platform_compat_config_singleton", platformCompatConfigSingletonFactory)
android.RegisterModuleType("platform_compat_config", PlatformCompatConfigFactory)
android.RegisterModuleType("global_compat_config", globalCompatConfigFactory)
registerPlatformCompatConfigBuildComponents(android.InitRegistrationContext)
}
func registerPlatformCompatConfigBuildComponents(ctx android.RegistrationContext) {
ctx.RegisterSingletonType("platform_compat_config_singleton", platformCompatConfigSingletonFactory)
ctx.RegisterModuleType("platform_compat_config", PlatformCompatConfigFactory)
ctx.RegisterModuleType("global_compat_config", globalCompatConfigFactory)
}
var PrepareForTestWithPlatformCompatConfig = android.FixtureRegisterWithContext(registerPlatformCompatConfigBuildComponents)
func platformCompatConfigPath(ctx android.PathContext) android.OutputPath {
return android.PathForOutput(ctx, "compat_config", "merged_compat_config.xml")
}