OSDN Git Service

am cd401135: am ff9aa9bf: am 9a2b2f76: Don\'t build dx if it\'s an app-only build.
authorYing Wang <wangying@google.com>
Tue, 15 Jun 2010 22:48:43 +0000 (15:48 -0700)
committerAndroid Git Automerger <android-git-automerger@android.com>
Tue, 15 Jun 2010 22:48:43 +0000 (15:48 -0700)
Merge commit 'cd401135df4c66b6bfe2bfd3c2af125d103c098a'

* commit 'cd401135df4c66b6bfe2bfd3c2af125d103c098a':
  Don't build dx if it's an app-only build.

dx/Android.mk
dx/src/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)
index ef3d32d..7ab32b2 100644 (file)
@@ -2,6 +2,8 @@
 #
 LOCAL_PATH := $(call my-dir)
 
+# This tool is prebuilt if we're doing an app-only build.
+ifeq ($(TARGET_BUILD_APPS),)
 
 # dx java library
 # ============================================================
@@ -16,6 +18,8 @@ include $(BUILD_HOST_JAVA_LIBRARY)
 
 INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE)
 
+endif # TARGET_BUILD_APPS
+
 # the documentation
 # ============================================================
 include $(CLEAR_VARS)
@@ -28,4 +32,3 @@ LOCAL_MODULE_CLASS := JAVA_LIBRARIES
 LOCAL_IS_HOST_MODULE := true
 
 include $(BUILD_DROIDDOC)
-