Provide preparer for using platform_compat_config modules
Bug: 181070625 Test: m nothing Change-Id: I92ec022fae0951a21c2e885d3ded7c98daacfcfc
This commit is contained in:
@@ -20,11 +20,17 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
android.RegisterSingletonType("platform_compat_config_singleton", platformCompatConfigSingletonFactory)
|
registerPlatformCompatConfigBuildComponents(android.InitRegistrationContext)
|
||||||
android.RegisterModuleType("platform_compat_config", PlatformCompatConfigFactory)
|
|
||||||
android.RegisterModuleType("global_compat_config", globalCompatConfigFactory)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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 {
|
func platformCompatConfigPath(ctx android.PathContext) android.OutputPath {
|
||||||
return android.PathForOutput(ctx, "compat_config", "merged_compat_config.xml")
|
return android.PathForOutput(ctx, "compat_config", "merged_compat_config.xml")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user