summaryrefslogtreecommitdiffstats
path: root/core/base_rules.mk
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2010-09-22 16:57:01 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-22 16:57:01 -0700
commit9f28f0d76e31c9cce0aecb06091cf0e40b44fd0e (patch)
tree1d0a3d3fab77e516c03f0d001e848e7770e2db56 /core/base_rules.mk
parent554402f76d8720dc3784b133d95f4aba2da4aa91 (diff)
parente7874c430895b9a4e631c89f1e7729da9264d167 (diff)
downloadbuild-9f28f0d76e31c9cce0aecb06091cf0e40b44fd0e.zip
build-9f28f0d76e31c9cce0aecb06091cf0e40b44fd0e.tar.gz
build-9f28f0d76e31c9cce0aecb06091cf0e40b44fd0e.tar.bz2
am e7874c43: Integrate dexpreopt into the build system.
Merge commit 'e7874c430895b9a4e631c89f1e7729da9264d167' into gingerbread-plus-aosp * commit 'e7874c430895b9a4e631c89f1e7729da9264d167': Integrate dexpreopt into the build system.
Diffstat (limited to 'core/base_rules.mk')
-rw-r--r--core/base_rules.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/base_rules.mk b/core/base_rules.mk
index 2fb6f5c..6f2b301 100644
--- a/core/base_rules.mk
+++ b/core/base_rules.mk
@@ -492,6 +492,16 @@ $(LOCAL_INSTALLED_MODULE): $(LOCAL_BUILT_MODULE)
$(copy-file-to-target-with-cp)
endif
+ifeq ($(LOCAL_DEX_PREOPT),true)
+installed_odex := $(basename $(LOCAL_INSTALLED_MODULE)).odex
+built_odex := $(basename $(LOCAL_BUILT_MODULE)).odex
+$(installed_odex) : $(built_odex) | $(ACP)
+ @echo "Install: $@"
+ $(copy-file-to-target)
+
+$(LOCAL_INSTALLED_MODULE): $(installed_odex)
+endif
+
endif # !LOCAL_UNINSTALLABLE_MODULE