2010-09-18 07:36:06 +08:00
|
|
|
####################################
|
2013-11-15 15:44:56 +08:00
|
|
|
# dexpreopt support - typically used on user builds to run dexopt (for Dalvik) or dex2oat (for ART) ahead of time
|
2010-09-18 07:36:06 +08:00
|
|
|
#
|
|
|
|
####################################
|
|
|
|
|
2018-11-17 13:26:33 +08:00
|
|
|
include $(BUILD_SYSTEM)/dex_preopt_config.mk
|
2016-06-17 05:47:10 +08:00
|
|
|
|
2017-03-24 22:45:59 +08:00
|
|
|
# Method returning whether the install path $(1) should be for system_other.
|
2017-06-17 01:24:54 +08: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 22:19:16 +08: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-17 01:24:54 +08:00
|
|
|
endif
|
2017-03-24 22:45:59 +08:00
|
|
|
|
2013-11-15 15:44:56 +08:00
|
|
|
include $(BUILD_SYSTEM)/dex_preopt_libart.mk
|
2010-09-18 07:36:06 +08:00
|
|
|
|
2018-05-11 02:33:27 +08:00
|
|
|
boot_profile_jars_zip := $(PRODUCT_OUT)/boot_profile_jars.zip
|
2019-02-21 04:39:57 +08:00
|
|
|
bootclasspath_jars := $(DEXPREOPT_BOOTCLASSPATH_DEX_FILES)
|
|
|
|
system_server_jars := $(foreach m,$(PRODUCT_SYSTEM_SERVER_JARS),$(PRODUCT_OUT)/system/framework/$(m).jar)
|
2018-05-11 02:33:27 +08:00
|
|
|
|
2019-02-21 04:39:57 +08:00
|
|
|
$(boot_profile_jars_zip): PRIVATE_BOOTCLASSPATH_JARS := $(bootclasspath_jars)
|
|
|
|
$(boot_profile_jars_zip): PRIVATE_SYSTEM_SERVER_JARS := $(system_server_jars)
|
|
|
|
$(boot_profile_jars_zip): $(bootclasspath_jars) $(system_server_jars) $(SOONG_ZIP)
|
|
|
|
@echo "Create boot profiles package: $@"
|
2018-05-11 02:33:27 +08:00
|
|
|
rm -f $@
|
2019-02-21 04:39:57 +08:00
|
|
|
$(SOONG_ZIP) -o $@ \
|
|
|
|
-C $(dir $(firstword $(PRIVATE_BOOTCLASSPATH_JARS)))/.. $(addprefix -f ,$(PRIVATE_BOOTCLASSPATH_JARS)) \
|
|
|
|
-C $(PRODUCT_OUT) $(addprefix -f ,$(PRIVATE_SYSTEM_SERVER_JARS))
|
2018-05-11 02:33:27 +08:00
|
|
|
|
2019-02-21 04:39:57 +08:00
|
|
|
ifeq ($(PRODUCT_DIST_BOOT_AND_SYSTEM_JARS),true)
|
2018-05-11 02:33:27 +08:00
|
|
|
$(call dist-for-goals, droidcore, $(boot_profile_jars_zip))
|
|
|
|
endif
|