diff options
author | 2024-02-20 12:43:21 +0100 | |
---|---|---|
committer | 2024-02-20 12:51:25 +0100 | |
commit | 2a1adcc63a18670f06ba8080a19ad0db539d4135 (patch) | |
tree | 4fcf5e87217f6682fa37ffa2f4ac96aa3367159e /aconfig/init.go | |
parent | 4bec95e2f6fcb6b3e64eb5634a979720ff5a2a54 (diff) |
Include all_aconfig_declarations in sdk dist
Include all_aconfig_declarations in the sdk dist directory, in both
binary protobuf (for machine consumption) and text protobuf (for human
consumption) format.
Bug: 324281288
Test: m sdk dist && test -e out/dist/flags.pb && test -e out/dist/flags.textproto
Change-Id: Icfb4841c3fe6478ddc233ef6d092ca700a8acb20
Diffstat (limited to 'aconfig/init.go')
-rw-r--r-- | aconfig/init.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/aconfig/init.go b/aconfig/init.go index 16fb0cd9b..5a4bb9008 100644 --- a/aconfig/init.go +++ b/aconfig/init.go @@ -75,6 +75,13 @@ var ( "${aconfig}", }, }, "cache_files") + AllDeclarationsRuleTextProto = pctx.AndroidStaticRule("All_aconfig_declarations_dump_textproto", + blueprint.RuleParams{ + Command: `${aconfig} dump-cache --dedup --format textproto --out ${out} ${cache_files}`, + CommandDeps: []string{ + "${aconfig}", + }, + }, "cache_files") // For exported_java_aconfig_library: Generate a JAR from all // java_aconfig_libraries to be consumed by apps built outside the |