Rename aconfig intermediate file (json -> pb)
aconfig's intermediate file ("the cache") has changed format from json to protobuf. Rename the generated file accordingly. Bug: 283910447 Test: m nothing # run soong tests Change-Id: Iaff408774cfba4231dfb951b112b554466b8e884
This commit is contained in:
@@ -122,7 +122,7 @@ func (module *DefinitionsModule) GenerateAndroidBuildActions(ctx android.ModuleC
|
||||
|
||||
// Intermediate format
|
||||
inputFiles := android.PathsForModuleSrc(ctx, module.properties.Srcs)
|
||||
intermediatePath := android.PathForModuleOut(ctx, "intermediate.json")
|
||||
intermediatePath := android.PathForModuleOut(ctx, "intermediate.pb")
|
||||
ctx.Build(pctx, android.BuildParams{
|
||||
Rule: aconfigRule,
|
||||
Inputs: inputFiles,
|
||||
|
@@ -36,7 +36,7 @@ func TestDeviceConfigDefinitions(t *testing.T) {
|
||||
// Check that the provider has the right contents
|
||||
depData := result.ModuleProvider(module, definitionsProviderKey).(definitionsProviderData)
|
||||
android.AssertStringEquals(t, "namespace", depData.namespace, "com.example.package")
|
||||
if !strings.HasSuffix(depData.intermediatePath.String(), "/intermediate.json") {
|
||||
if !strings.HasSuffix(depData.intermediatePath.String(), "/intermediate.pb") {
|
||||
t.Errorf("Missing intermediates path in provider: %s", depData.intermediatePath.String())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user