summaryrefslogtreecommitdiff
path: root/aconfig/all_aconfig_declarations.go
diff options
context:
space:
mode:
author Mårten Kongstad <amhk@google.com> 2024-02-23 09:22:56 +0100
committer Mårten Kongstad <amhk@google.com> 2024-02-23 09:22:56 +0100
commitc61353222c43d499f447cb9ba855b6689435f022 (patch)
tree66b5754bf69e69c8970dbb7ceb866c7140781de9 /aconfig/all_aconfig_declarations.go
parentb0e708d03d1c1b9167584f48d269e56944a38680 (diff)
Include all_aconfig_declarations in droid dist
Include all_aconfig_declarations in the droid dist directory (identically to how it is already included in the sdk dist). For local builds, `printflags` is still the recommended way to read all_aconfig_declarations; the dist-ed files are intended as a way to inspect remote builds, such as CI builds. Bug: 324281288 Test: lunch aosp_oriole-trunk-eng && m droid dist && test -e out/dist/flags.pb && test -e out/dist/flags.textproto Change-Id: Ic29d69ab5014593a3f9213f8a5b55e0569922cc9
Diffstat (limited to 'aconfig/all_aconfig_declarations.go')
-rw-r--r--aconfig/all_aconfig_declarations.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/aconfig/all_aconfig_declarations.go b/aconfig/all_aconfig_declarations.go
index 3d9663c1d..72fe4959b 100644
--- a/aconfig/all_aconfig_declarations.go
+++ b/aconfig/all_aconfig_declarations.go
@@ -89,6 +89,8 @@ func (this *allAconfigDeclarationsSingleton) GenerateBuildActions(ctx android.Si
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")
+ }
}