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:
commit
cb5f38f071
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue