summaryrefslogtreecommitdiffstats
path: root/core/base_rules.mk
diff options
context:
space:
mode:
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 97bcbaa..b4f3aa9 100644
--- a/core/base_rules.mk
+++ b/core/base_rules.mk
@@ -494,6 +494,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