From 51684704f11ddc2f28941732093ae237fe6c2ec8 Mon Sep 17 00:00:00 2001 From: Marybeth Fair Date: Tue, 21 Jan 2025 16:25:33 -0500 Subject: 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 --- aconfig/codegen/init.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'aconfig/codegen/init.go') diff --git a/aconfig/codegen/init.go b/aconfig/codegen/init.go index 34fdca3d1..385fa49f1 100644 --- a/aconfig/codegen/init.go +++ b/aconfig/codegen/init.go @@ -26,6 +26,7 @@ var ( // For java_aconfig_library: Generate java library javaRule = pctx.AndroidStaticRule("java_aconfig_library", blueprint.RuleParams{ + // LINT.IfChange Command: `rm -rf ${out}.tmp` + ` && mkdir -p ${out}.tmp` + ` && ${aconfig} create-java-lib` + @@ -34,14 +35,16 @@ var ( ` --out ${out}.tmp` + ` --allow-instrumentation ${debug}` + ` --new-exported ${new_exported}` + + ` --check-api-level ${check_api_level}` + ` && $soong_zip -write_if_changed -jar -o ${out} -C ${out}.tmp -D ${out}.tmp` + ` && rm -rf ${out}.tmp`, + // LINT.ThenChange(/aconfig/init.go) CommandDeps: []string{ "$aconfig", "$soong_zip", }, Restat: true, - }, "mode", "debug", "new_exported") + }, "mode", "debug", "new_exported", "check_api_level") // For cc_aconfig_library: Generate C++ library cppRule = pctx.AndroidStaticRule("cc_aconfig_library", -- cgit v1.2.3-59-g8ed1b