2010-09-17 23:36:06 +00:00
|
|
|
####################################
|
2013-11-15 07:44:56 +00:00
|
|
|
# dexpreopt support - typically used on user builds to run dexopt (for Dalvik) or dex2oat (for ART) ahead of time
|
2010-09-17 23:36:06 +00:00
|
|
|
#
|
|
|
|
####################################
|
|
|
|
|
2018-11-17 05:26:33 +00:00
|
|
|
include $(BUILD_SYSTEM)/dex_preopt_config.mk
|
2016-06-16 21:47:10 +00:00
|
|
|
|
2017-03-24 14:45:59 +00:00
|
|
|
# Method returning whether the install path $(1) should be for system_other.
|
2017-06-16 17:24:54 +00:00
|
|
|
# Under SANITIZE_LITE, we do not want system_other. Just put things under /data/asan.
|
|
|
|
ifeq ($(SANITIZE_LITE),true)
|
|
|
|
install-on-system-other =
|
|
|
|
else
|
2017-06-12 14:19:16 +00:00
|
|
|
install-on-system-other = $(filter-out $(PRODUCT_DEXPREOPT_SPEED_APPS) $(PRODUCT_SYSTEM_SERVER_APPS),$(basename $(notdir $(filter $(foreach f,$(SYSTEM_OTHER_ODEX_FILTER),$(TARGET_OUT)/$(f)),$(1)))))
|
2017-06-16 17:24:54 +00:00
|
|
|
endif
|
2017-03-24 14:45:59 +00:00
|
|
|
|
2013-11-15 07:44:56 +00:00
|
|
|
include $(BUILD_SYSTEM)/dex_preopt_libart.mk
|
2010-09-17 23:36:06 +00:00
|
|
|
|
2018-05-10 18:33:27 +00:00
|
|
|
ifeq ($(PRODUCT_DIST_BOOT_AND_SYSTEM_JARS),true)
|
|
|
|
boot_profile_jars_zip := $(PRODUCT_OUT)/boot_profile_jars.zip
|
|
|
|
all_boot_jars := \
|
2019-01-30 00:43:21 +00:00
|
|
|
$(DEXPREOPT_BOOTCLASSPATH_DEX_FILES) \
|
2018-05-10 18:33:27 +00:00
|
|
|
$(foreach m,$(PRODUCT_SYSTEM_SERVER_JARS),$(PRODUCT_OUT)/system/framework/$(m).jar)
|
|
|
|
|
|
|
|
$(boot_profile_jars_zip): PRIVATE_JARS := $(all_boot_jars)
|
|
|
|
$(boot_profile_jars_zip): $(all_boot_jars) $(SOONG_ZIP)
|
|
|
|
echo "Create boot profiles package: $@"
|
|
|
|
rm -f $@
|
2018-10-01 17:30:04 +00:00
|
|
|
$(SOONG_ZIP) -o $@ -C $(PRODUCT_OUT) $(addprefix -f ,$(PRIVATE_JARS))
|
2018-05-10 18:33:27 +00:00
|
|
|
|
|
|
|
droidcore: $(boot_profile_jars_zip)
|
|
|
|
|
|
|
|
$(call dist-for-goals, droidcore, $(boot_profile_jars_zip))
|
|
|
|
endif
|