Define a make variable for merged compat config.

This allows it to be added to the dist target.

Test: m dist
Change-Id: I1d913577f43a2ba3cb134ed35a7c98be76da2bd1
This commit is contained in:
Mathew Inwood 2019-12-19 12:38:10 +00:00
parent 4b662e4d3b
commit 653c78a909
1 changed files with 6 additions and 0 deletions

View File

@ -80,6 +80,12 @@ func (p *platformCompatConfigSingleton) GenerateBuildActions(ctx android.Singlet
p.metadata = outputPath
}
func (p *platformCompatConfigSingleton) MakeVars(ctx android.MakeVarsContext) {
if p.metadata != nil {
ctx.Strict("INTERNAL_PLATFORM_MERGED_COMPAT_CONFIG", p.metadata.String())
}
}
func (p *platformCompatConfig) GenerateAndroidBuildActions(ctx android.ModuleContext) {
rule := android.NewRuleBuilder()