Add aconfig dump of all aconfig_declarations modules.

Bug: 283910439
Test: m dist ; m all_aconfig_declarations ; gqui from all_aconfig_declarations.pb proto /source/aosp-master-with-phones/build/make/tools/aconfig/protos/aconfig.proto:android.aconfig.parsed_flags
Change-Id: Ia89c7f9c53fa1600fa2f9c8ea01319e949e09f58
This commit is contained in:
Joe Onorato
2023-06-21 18:10:28 -07:00
parent a41c679fe1
commit 2f99c47a87
4 changed files with 84 additions and 0 deletions

View File

@@ -42,6 +42,16 @@ func Concat[T any](s1, s2 []T) []T {
return res
}
// JoinPathsWithPrefix converts the paths to strings, prefixes them
// with prefix and then joins them separated by " ".
func JoinPathsWithPrefix(paths []Path, prefix string) string {
strs := make([]string, len(paths))
for i := range paths {
strs[i] = paths[i].String()
}
return JoinWithPrefixAndSeparator(strs, prefix, " ")
}
// JoinWithPrefix prepends the prefix to each string in the list and
// returns them joined together with " " as separator.
func JoinWithPrefix(strs []string, prefix string) string {