OSDN Git Service

Don't build dx if it's an app-only build.
[android-x86/dalvik.git] / dx / Android.mk
index 7ae0039..deb84c9 100644 (file)
@@ -6,6 +6,9 @@ LOCAL_PATH := $(call my-dir)
 # script files' timestamps are at least as new as the
 # .jar files they wrap.
 
+# This tool is prebuilt if we're doing an app-only build.
+ifeq ($(TARGET_BUILD_APPS),)
+
 # the dx script
 # ============================================================
 include $(CLEAR_VARS)
@@ -23,6 +26,8 @@ $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/etc/dx | $(ACP)
 
 INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE)
 
+endif # TARGET_BUILD_APPS
+
 # the jasmin script
 # ============================================================
 include $(CLEAR_VARS)