Add soong config var for library linking strategy

Support building cc modules with different library linking strategies
for apexes, to support different apex strategies pre/post S

Test: m APEX_BUILD_FOR_PRE_S_DEVICES
      library_linking_strategy_sample_binary
Bug: 154663937
Change-Id: Ic95ddce5e2b0619adff5b6b8a4e2da0d44df7173
This commit is contained in:
Liz Kammer 2020-12-11 08:12:42 -08:00
parent e9df7af1ed
commit c8381ba16b
1 changed files with 5 additions and 0 deletions

View File

@ -34,3 +34,8 @@ ifeq (,$(filter art_module,$(SOONG_CONFIG_NAMESPACES)))
SOONG_CONFIG_art_module += source_build
endif
SOONG_CONFIG_art_module_source_build ?= true
# Apex build mode variables
ifdef APEX_BUILD_FOR_PRE_S_DEVICES
$(call add_soong_config_var_value,ANDROID,library_linking_strategy,prefer_static)
endif