Provide preparer for using platform_compat_config modules
Bug: 181070625 Test: m nothing Change-Id: I92ec022fae0951a21c2e885d3ded7c98daacfcfc
This commit is contained in:
parent
05f72de083
commit
4eb4b41cef
1 changed files with 9 additions and 3 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue