diff options
| author | 2019-12-17 11:14:42 +0000 | |
|---|---|---|
| committer | 2019-12-19 08:27:33 +0000 | |
| commit | 0dd06f6ff246e37dbf6fb9ae5c46cc3fa7541e8c (patch) | |
| tree | ef7a57f3c02c8220695340a2c0f7b9da5e8d79dc | |
| parent | b4cc0206bb384f0e802c9ef21966686a6d3d30ee (diff) | |
Update build rule for updated script.
The script now expects flags for filenames and no longer
just writes to stdout. Write full merged config too.
Test: m libcore-platform-compat-config
Change-Id: Ia524a8c271725665772c9543baecd4f494ee86f1
| -rw-r--r-- | java/platform_compat_config.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/java/platform_compat_config.go b/java/platform_compat_config.go index bf6043a54..fefd0e64b 100644 --- a/java/platform_compat_config.go +++ b/java/platform_compat_config.go @@ -32,20 +32,23 @@ type platformCompatConfig struct { properties platformCompatConfigProperties installDirPath android.InstallPath configFile android.OutputPath + metadataFile android.OutputPath } func (p *platformCompatConfig) GenerateAndroidBuildActions(ctx android.ModuleContext) { rule := android.NewRuleBuilder() configFileName := p.Name() + ".xml" + metadataFileName := p.Name() + "_meta.xml" p.configFile = android.PathForModuleOut(ctx, configFileName).OutputPath + p.metadataFile = android.PathForModuleOut(ctx, metadataFileName).OutputPath path := android.PathForModuleSrc(ctx, String(p.properties.Src)) rule.Command(). BuiltTool(ctx, "process-compat-config"). - Input(path). - Text(`>`). - Output(p.configFile) + FlagWithInput("--jar ", path). + FlagWithOutput("--device-config ", p.configFile). + FlagWithOutput("--merged-config ", p.metadataFile) p.installDirPath = android.PathForModuleInstall(ctx, "etc", "compatconfig") rule.Build(pctx, ctx, configFileName, "Extract compat/compat_config.xml and install it") |