Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8381ba1 authored by Liz Kammer's avatar Liz Kammer
Browse files

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
parent e9df7af1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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