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:
commit
74b85bd619
|
@ -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 New Issue