2013-11-15 08:44:56 +01:00
|
|
|
####################################
|
|
|
|
# dexpreopt support for ART
|
|
|
|
#
|
|
|
|
####################################
|
|
|
|
|
2017-06-29 03:23:37 +02:00
|
|
|
# We want to install the profile even if we are not using preopt since it is required to generate
|
|
|
|
# the image on the device.
|
2019-02-11 23:25:13 +01:00
|
|
|
my_installed := $(call copy-many-files,$(DEXPREOPT_IMAGE_PROFILE_BUILT_INSTALLED),$(PRODUCT_OUT))
|
|
|
|
ALL_DEFAULT_INSTALLED_MODULES += $(my_installed)
|
|
|
|
|
|
|
|
# Install primary arch vdex files into a shared location, and then symlink them to both the primary
|
|
|
|
# and secondary arch directories.
|
|
|
|
my_vdex_copy_pairs := $(DEXPREOPT_IMAGE_VDEX_BUILT_INSTALLED_$(TARGET_ARCH))
|
|
|
|
my_installed := $(foreach v,$(my_vdex_copy_pairs),$(PRODUCT_OUT)$(call word-colon,2,$(v)))
|
|
|
|
$(firstword $(my_installed)): $(wordlist 2,9999,$(my_installed))
|
2017-06-29 03:23:37 +02:00
|
|
|
|
2019-02-11 23:25:13 +01:00
|
|
|
my_built_vdex_dir := $(dir $(call word-colon,1,$(firstword $(my_vdex_copy_pairs))))
|
|
|
|
my_installed_vdex_dir := $(PRODUCT_OUT)$(dir $(call word-colon,2,$(firstword $(my_vdex_copy_pairs))))
|
|
|
|
|
|
|
|
$(my_installed): $(my_installed_vdex_dir)% : $(my_built_vdex_dir)%
|
|
|
|
@echo "Install: $@"
|
|
|
|
@rm -f $@
|
|
|
|
$(copy-file-to-target)
|
|
|
|
mkdir -p $(dir $@)/$(TARGET_ARCH)
|
|
|
|
ln -sfn ../$(notdir $@) $(dir $@)/$(TARGET_ARCH)
|
|
|
|
ifdef TARGET_2ND_ARCH
|
|
|
|
ifneq ($(TARGET_TRANSLATE_2ND_ARCH),true)
|
|
|
|
mkdir -p $(dir $@)/$(TARGET_2ND_ARCH)
|
|
|
|
ln -sfn ../$(notdir $@) $(dir $@)/$(TARGET_2ND_ARCH)
|
|
|
|
endif
|
2017-06-29 03:23:37 +02:00
|
|
|
endif
|
|
|
|
|
2019-02-11 23:25:13 +01:00
|
|
|
my_dexpreopt_image_extra_deps := $(firstword $(my_installed))
|
2017-08-16 10:28:05 +02:00
|
|
|
|
2014-05-13 22:57:28 +02:00
|
|
|
my_2nd_arch_prefix :=
|
|
|
|
include $(BUILD_SYSTEM)/dex_preopt_libart_boot.mk
|
|
|
|
|
|
|
|
ifdef TARGET_2ND_ARCH
|
2019-02-11 23:25:13 +01:00
|
|
|
ifneq ($(TARGET_TRANSLATE_2ND_ARCH),true)
|
|
|
|
my_2nd_arch_prefix := $(TARGET_2ND_ARCH_VAR_PREFIX)
|
|
|
|
include $(BUILD_SYSTEM)/dex_preopt_libart_boot.mk
|
|
|
|
endif
|
2014-05-13 22:57:28 +02:00
|
|
|
endif
|
2017-08-16 10:28:05 +02:00
|
|
|
|
|
|
|
my_2nd_arch_prefix :=
|
2019-02-11 23:25:13 +01:00
|
|
|
|
|
|
|
|
|
|
|
my_vdex_copy_pairs :=
|
|
|
|
my_installed :=
|
|
|
|
my_built_vdex_dir :=
|
|
|
|
my_installed_vdex_dir :=
|
|
|
|
my_dexpreopt_image_extra_deps :=
|