Enable art for user builds
Bug: 10069754 Change-Id: Iaaff33a97bd7b68b2e8d84cd0034b15dde8a4316
This commit is contained in:
@@ -56,7 +56,9 @@ $(_dbj_odex) : $(_dbj_src_jar) | $(ACP) $(DEXPREOPT) $(DEXOPT)
|
|||||||
|
|
||||||
$(_dbj_jar_no_dex) : $(_dbj_src_jar) | $(ACP) $(AAPT)
|
$(_dbj_jar_no_dex) : $(_dbj_src_jar) | $(ACP) $(AAPT)
|
||||||
$$(call copy-file-to-target)
|
$$(call copy-file-to-target)
|
||||||
|
ifneq ($(DEX_PREOPT_DEFAULT),nostripping)
|
||||||
$$(call dexpreopt-remove-classes.dex,$$@)
|
$$(call dexpreopt-remove-classes.dex,$$@)
|
||||||
|
endif
|
||||||
|
|
||||||
$(eval _dbj_jar :=)
|
$(eval _dbj_jar :=)
|
||||||
$(eval _dbj_odex :=)
|
$(eval _dbj_odex :=)
|
||||||
|
@@ -40,7 +40,7 @@ else
|
|||||||
ifeq (,$(TARGET_BUILD_APPS))
|
ifeq (,$(TARGET_BUILD_APPS))
|
||||||
ifeq (,$(LOCAL_APK_LIBRARIES))
|
ifeq (,$(LOCAL_APK_LIBRARIES))
|
||||||
ifndef LOCAL_DEX_PREOPT
|
ifndef LOCAL_DEX_PREOPT
|
||||||
LOCAL_DEX_PREOPT := true
|
LOCAL_DEX_PREOPT := $(DEX_PREOPT_DEFAULT)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@@ -153,7 +153,7 @@ ifeq (,$(TARGET_BUILD_APPS))
|
|||||||
ifeq (,$(LOCAL_APK_LIBRARIES))
|
ifeq (,$(LOCAL_APK_LIBRARIES))
|
||||||
ifneq (,$(LOCAL_SRC_FILES))
|
ifneq (,$(LOCAL_SRC_FILES))
|
||||||
ifndef LOCAL_DEX_PREOPT
|
ifndef LOCAL_DEX_PREOPT
|
||||||
LOCAL_DEX_PREOPT := true
|
LOCAL_DEX_PREOPT := $(DEX_PREOPT_DEFAULT)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@@ -59,8 +59,6 @@ PRODUCT_PACKAGES += \
|
|||||||
PRODUCT_BOOT_JARS := core:conscrypt:okhttp:core-junit:bouncycastle:ext:framework:framework2:android.policy:services:apache-xml:webviewchromium
|
PRODUCT_BOOT_JARS := core:conscrypt:okhttp:core-junit:bouncycastle:ext:framework:framework2:android.policy:services:apache-xml:webviewchromium
|
||||||
|
|
||||||
PRODUCT_RUNTIMES := runtime_libdvm_default
|
PRODUCT_RUNTIMES := runtime_libdvm_default
|
||||||
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
PRODUCT_RUNTIMES += runtime_libart
|
||||||
PRODUCT_RUNTIMES += runtime_libart
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk)
|
||||||
|
@@ -28,4 +28,7 @@ ifeq ($(WITH_HOST_DALVIK),true)
|
|||||||
core-libart-hostdex
|
core-libart-hostdex
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# We currently don't suport DEX_PREOPT for art
|
||||||
|
DEX_PREOPT_DEFAULT := nostripping
|
||||||
|
|
||||||
include $(SRC_TARGET_DIR)/product/runtime_common.mk
|
include $(SRC_TARGET_DIR)/product/runtime_common.mk
|
||||||
|
@@ -27,4 +27,9 @@ ifeq ($(WITH_HOST_DALVIK),true)
|
|||||||
core-hostdex
|
core-hostdex
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# If runtime_libart has disabled, do not override
|
||||||
|
ifndef DEX_PREOPT_DEFAULT
|
||||||
|
DEX_PREOPT_DEFAULT := true
|
||||||
|
endif
|
||||||
|
|
||||||
include $(SRC_TARGET_DIR)/product/runtime_common.mk
|
include $(SRC_TARGET_DIR)/product/runtime_common.mk
|
||||||
|
Reference in New Issue
Block a user