Merge changes from topics "target-build-unbundled", "unbundled-preopt" am: 77112df75f
Original change: https://android-review.googlesource.com/c/platform/build/+/1324517 Change-Id: Ie73a4e808d7dc35aa3255b4b759f031985170c0a
This commit is contained in:
commit
9d7c4c0a69
1 changed files with 10 additions and 1 deletions
|
@ -1,5 +1,14 @@
|
|||
DEX_PREOPT_CONFIG := $(SOONG_OUT_DIR)/dexpreopt.config
|
||||
|
||||
ENABLE_PREOPT := true
|
||||
ifneq (true,$(filter true,$(WITH_DEXPREOPT)))
|
||||
ENABLE_PREOPT :=
|
||||
else ifneq (true,$(filter true,$(PRODUCT_USES_DEFAULT_ART_CONFIG)))
|
||||
ENABLE_PREOPT :=
|
||||
else ifneq (,$(TARGET_BUILD_APPS))
|
||||
ENABLE_PREOPT :=
|
||||
endif
|
||||
|
||||
# The default value for LOCAL_DEX_PREOPT
|
||||
DEX_PREOPT_DEFAULT ?= true
|
||||
|
||||
|
@ -60,7 +69,7 @@ ifeq ($(WRITE_SOONG_VARIABLES),true)
|
|||
|
||||
$(call json_start)
|
||||
|
||||
$(call add_json_bool, DisablePreopt, $(call invert_bool,$(and $(filter true,$(PRODUCT_USES_DEFAULT_ART_CONFIG)),$(filter true,$(WITH_DEXPREOPT)))))
|
||||
$(call add_json_bool, DisablePreopt, $(call invert_bool,$(ENABLE_PREOPT)))
|
||||
$(call add_json_list, DisablePreoptModules, $(DEXPREOPT_DISABLED_MODULES))
|
||||
$(call add_json_bool, OnlyPreoptBootImageAndSystemServer, $(filter true,$(WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY)))
|
||||
$(call add_json_bool, UseArtImage, $(filter true,$(DEXPREOPT_USE_ART_IMAGE)))
|
||||
|
|
Loading…
Reference in a new issue