Ying Wang | e7874c4 | 2010-09-17 16:36:06 -0700 | [diff] [blame] | 1 | #################################### |
Brian Carlstrom | ced4bff | 2013-11-14 23:44:56 -0800 | [diff] [blame] | 2 | # dexpreopt support - typically used on user builds to run dexopt (for Dalvik) or dex2oat (for ART) ahead of time |
Ying Wang | e7874c4 | 2010-09-17 16:36:06 -0700 | [diff] [blame] | 3 | # |
| 4 | #################################### |
| 5 | |
Colin Cross | 6db5b0e | 2018-11-16 21:26:33 -0800 | [diff] [blame] | 6 | include $(BUILD_SYSTEM)/dex_preopt_config.mk |
Alex Light | 4e358ab | 2016-06-16 14:47:10 -0700 | [diff] [blame] | 7 | |
Nicolas Geoffray | cdd4343 | 2017-03-24 14:45:59 +0000 | [diff] [blame] | 8 | # Method returning whether the install path $(1) should be for system_other. |
Andreas Gampe | 4ed21d1 | 2017-06-16 10:24:54 -0700 | [diff] [blame] | 9 | # Under SANITIZE_LITE, we do not want system_other. Just put things under /data/asan. |
| 10 | ifeq ($(SANITIZE_LITE),true) |
| 11 | install-on-system-other = |
| 12 | else |
Nicolas Geoffray | 4a0ad4a | 2017-06-12 15:19:16 +0100 | [diff] [blame] | 13 | 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))))) |
Andreas Gampe | 4ed21d1 | 2017-06-16 10:24:54 -0700 | [diff] [blame] | 14 | endif |
Nicolas Geoffray | cdd4343 | 2017-03-24 14:45:59 +0000 | [diff] [blame] | 15 | |
Brian Carlstrom | ced4bff | 2013-11-14 23:44:56 -0800 | [diff] [blame] | 16 | include $(BUILD_SYSTEM)/dex_preopt_libart.mk |
| 17 | |
Calin Juravle | 8955a99 | 2018-05-10 11:33:27 -0700 | [diff] [blame] | 18 | ifeq ($(PRODUCT_DIST_BOOT_AND_SYSTEM_JARS),true) |
| 19 | boot_profile_jars_zip := $(PRODUCT_OUT)/boot_profile_jars.zip |
| 20 | all_boot_jars := \ |
Calin Juravle | 9e1fb1b | 2019-01-29 16:43:21 -0800 | [diff] [blame] | 21 | $(DEXPREOPT_BOOTCLASSPATH_DEX_FILES) \ |
Calin Juravle | 8955a99 | 2018-05-10 11:33:27 -0700 | [diff] [blame] | 22 | $(foreach m,$(PRODUCT_SYSTEM_SERVER_JARS),$(PRODUCT_OUT)/system/framework/$(m).jar) |
| 23 | |
| 24 | $(boot_profile_jars_zip): PRIVATE_JARS := $(all_boot_jars) |
| 25 | $(boot_profile_jars_zip): $(all_boot_jars) $(SOONG_ZIP) |
| 26 | echo "Create boot profiles package: $@" |
| 27 | rm -f $@ |
Colin Cross | 1a81e37 | 2018-10-01 10:30:04 -0700 | [diff] [blame] | 28 | $(SOONG_ZIP) -o $@ -C $(PRODUCT_OUT) $(addprefix -f ,$(PRIVATE_JARS)) |
Calin Juravle | 8955a99 | 2018-05-10 11:33:27 -0700 | [diff] [blame] | 29 | |
| 30 | droidcore: $(boot_profile_jars_zip) |
| 31 | |
| 32 | $(call dist-for-goals, droidcore, $(boot_profile_jars_zip)) |
| 33 | endif |