diff options
author | 2025-01-21 16:25:33 -0500 | |
---|---|---|
committer | 2025-01-22 11:59:47 -0500 | |
commit | 51684704f11ddc2f28941732093ae237fe6c2ec8 (patch) | |
tree | 4a8fdf7d7731479f6ba119c521f5225b3d1bcb0d /aconfig/init.go | |
parent | e98f706c29d7f54c36371ca1b5a3636876dfbf20 (diff) |
Connect SDK build flag to aconfig binary.
Also add lint check to ensure any changes to the exported lib binary
call happen in both places.
Test: manual via print statement in main.rs
Flag: RELEASE_ACONFIG_SDK_CHECK (build)
Change-Id: Ibd8508a62406b0d6d861f331a1b9747abae3483f
Diffstat (limited to 'aconfig/init.go')
-rw-r--r-- | aconfig/init.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/aconfig/init.go b/aconfig/init.go index e221153a7..3d7b20d20 100644 --- a/aconfig/init.go +++ b/aconfig/init.go @@ -95,6 +95,7 @@ var ( // exported flags (only). Finally collect all generated code // into the ${out} JAR file. blueprint.RuleParams{ + // LINT.IfChange Command: `rm -rf ${out}.tmp` + `&& for cache in ${cache_files}; do ` + ` if [ -n "$$(${aconfig} dump-cache --dedup --cache $$cache --filter=is_exported:true --format='{fully_qualified_name}')" ]; then ` + @@ -103,16 +104,18 @@ var ( ` --mode=exported` + ` --allow-instrumentation ${use_new_storage}` + ` --new-exported ${use_new_exported}` + + ` --check-api-level ${check_api_level}` + ` --out ${out}.tmp; ` + ` fi ` + `done` + `&& $soong_zip -write_if_changed -jar -o ${out} -C ${out}.tmp -D ${out}.tmp` + `&& rm -rf ${out}.tmp`, + // LINT.ThenChange(/aconfig/codegen/init.go) CommandDeps: []string{ "$aconfig", "$soong_zip", }, - }, "cache_files", "use_new_storage", "use_new_exported") + }, "cache_files", "use_new_storage", "use_new_exported", "check_api_level") ) func init() { |