Merge "Include all_aconfig_declarations in droid dist" into main am: 50bfc34894 am: 0091bf0d2b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2973436
Change-Id: I3962c44b812d36e0aa41d81086d0a13761589455
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/aconfig/all_aconfig_declarations.go b/aconfig/all_aconfig_declarations.go
index 3d9663c..72fe495 100644
--- a/aconfig/all_aconfig_declarations.go
+++ b/aconfig/all_aconfig_declarations.go
@@ -89,6 +89,8 @@
func (this *allAconfigDeclarationsSingleton) MakeVars(ctx android.MakeVarsContext) {
ctx.DistForGoal("droid", this.intermediateBinaryProtoPath)
- ctx.DistForGoalWithFilename("sdk", this.intermediateBinaryProtoPath, "flags.pb")
- ctx.DistForGoalWithFilename("sdk", this.intermediateTextProtoPath, "flags.textproto")
+ for _, goal := range []string{"droid", "sdk"} {
+ ctx.DistForGoalWithFilename(goal, this.intermediateBinaryProtoPath, "flags.pb")
+ ctx.DistForGoalWithFilename(goal, this.intermediateTextProtoPath, "flags.textproto")
+ }
}