summaryrefslogtreecommitdiff
path: root/aconfig/codegen/init.go
diff options
context:
space:
mode:
author Marybeth Fair <marybethfair@google.com> 2025-01-21 16:25:33 -0500
committer Marybeth Fair <marybethfair@google.com> 2025-01-22 11:59:47 -0500
commit51684704f11ddc2f28941732093ae237fe6c2ec8 (patch)
tree4a8fdf7d7731479f6ba119c521f5225b3d1bcb0d /aconfig/codegen/init.go
parente98f706c29d7f54c36371ca1b5a3636876dfbf20 (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/codegen/init.go')
-rw-r--r--aconfig/codegen/init.go5
1 files changed, 4 insertions, 1 deletions
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",