summaryrefslogtreecommitdiffstats
path: root/core/product_config.mk
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2013-11-14 23:44:56 -0800
committerYing Wang <wangying@google.com>2013-12-17 14:44:00 -0800
commitced4bff58e76a16ebce3a35ed24aadc8490ca39b (patch)
tree3fd4911a8f7fbd01f2813f4edf28664124c5d939 /core/product_config.mk
parent657eadd4b78b91185ca2042ffb7f92be84e6c1c4 (diff)
downloadbuild-ced4bff58e76a16ebce3a35ed24aadc8490ca39b.zip
build-ced4bff58e76a16ebce3a35ed24aadc8490ca39b.tar.gz
build-ced4bff58e76a16ebce3a35ed24aadc8490ca39b.tar.bz2
Add DEXPREOPT support for ART
Change-Id: I24d0d7b2a23a769f5d69bd4dc14be22e1475b759
Diffstat (limited to 'core/product_config.mk')
-rw-r--r--core/product_config.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/product_config.mk b/core/product_config.mk
index e4b68cf..a2be30b 100644
--- a/core/product_config.mk
+++ b/core/product_config.mk
@@ -266,6 +266,17 @@ $(call clear-var-list, $(_product_var_list))
# Now we can assign to PRODUCT_RUNTIMES
PRODUCT_RUNTIMES := $(product_runtimes)
product_runtimes :=
+
+PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PROPERTY_OVERRIDES += persist.sys.dalvik.vm.lib=$(DALVIK_VM_LIB)
+
+ifeq ($(words $(PRODUCT_RUNTIMES)),1)
+ # If we only have one runtime, we can strip classes.dex by default during dex_preopt
+ DEX_PREOPT_DEFAULT := true
+else
+ # If we have more than one, we leave the classes.dex alone for post-boot analysis
+ DEX_PREOPT_DEFAULT := nostripping
+endif
+
#############################################################################
# A list of module names of BOOTCLASSPATH (jar files)