Add MODULE_BUILD_FROM_SOURCE env variable.

When set, module builds will prefer source where applicable.

Bug: 191978129
Test: m; MODULE_BUILD_FROM_SOURCE=true m
Change-Id: Ie7f928674a511a98f17653fa814a42194ee0e9f9
Merged-In: Ie7f928674a511a98f17653fa814a42194ee0e9f9
This commit is contained in:
Dario Freni 2021-06-24 15:14:04 +00:00
parent 36b659550e
commit 84d3bf7a2f
1 changed files with 4 additions and 0 deletions

View File

@ -60,3 +60,7 @@ endif
ifdef APEX_BUILD_FOR_PRE_S_DEVICES ifdef APEX_BUILD_FOR_PRE_S_DEVICES
$(call add_soong_config_var_value,ANDROID,library_linking_strategy,prefer_static) $(call add_soong_config_var_value,ANDROID,library_linking_strategy,prefer_static)
endif endif
ifdef MODULE_BUILD_FROM_SOURCE
$(call add_soong_config_var_value,ANDROID,module_build_from_source,true)
endif