OSDN Git Service

Check $(built_dex) to determine if we can run dex-preopt.
authorYing Wang <wangying@google.com>
Wed, 8 Oct 2014 21:48:07 +0000 (14:48 -0700)
committerYing Wang <wangying@google.com>
Wed, 8 Oct 2014 22:23:24 +0000 (15:23 -0700)
Change-Id: Icfed37f50671ec041f2cfdcec9175cb094b572fc

core/dex_preopt_odex_install.mk

index 28282ec..741f9a3 100644 (file)
@@ -25,7 +25,7 @@ endif
 ifdef LOCAL_UNINSTALLABLE_MODULE
 LOCAL_DEX_PREOPT :=
 endif
-ifeq (,$(strip $(all_java_sources)$(full_static_java_libs)$(my_prebuilt_src_file))) # contains no java code
+ifeq (,$(strip $(built_dex)$(my_prebuilt_src_file))) # contains no java code
 LOCAL_DEX_PREOPT :=
 endif
 # if module oat file requested in data, disable LOCAL_DEX_PREOPT, will default location to dalvik-cache