Provide preparer for using platform_compat_config modules am: 4eb4b41cef am: 74b85bd619 am: e24da8d2c4

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

Change-Id: I158919b4ef1886ea21ecce1f04bbe822dd3d2fb6
This commit is contained in:
Paul Duffin 2021-03-16 08:50:46 +00:00 committed by Automerger Merge Worker
commit cb5f38f071
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")
}