1 # Copyright 2006 The Android Open Source Project 2 # 3 LOCAL_PATH := $(call my-dir) 4 5 # We use copy-file-to-new-target so that the installed 6 # script files' timestamps are at least as new as the 7 # .jar files they wrap. 8 9 # This tool is prebuilt if we're doing an app-only build. 10 ifeq ($(TARGET_BUILD_APPS),) 11 12 # the dx script 13 # ============================================================ 14 include $(CLEAR_VARS) 15 LOCAL_IS_HOST_MODULE := true 16 LOCAL_MODULE_CLASS := EXECUTABLES 17 LOCAL_MODULE_TAGS := optional 18 LOCAL_MODULE := dx 19 20 include $(BUILD_SYSTEM)/base_rules.mk 21 22 $(LOCAL_BUILT_MODULE): $(HOST_OUT_JAVA_LIBRARIES)/dx$(COMMON_JAVA_PACKAGE_SUFFIX) 23 $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/etc/dx | $(ACP) 24 @echo "Copy: $(PRIVATE_MODULE) ($@)" 25 $(copy-file-to-new-target) 26 $(hide) chmod 755 $@ 27 28 INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE) 29 30 endif # TARGET_BUILD_APPS 31 32 # the dexmerger script 33 # ============================================================ 34 include $(CLEAR_VARS) 35 LOCAL_IS_HOST_MODULE := true 36 LOCAL_MODULE_CLASS := EXECUTABLES 37 LOCAL_MODULE_TAGS := optional 38 LOCAL_MODULE := dexmerger 39 40 include $(BUILD_SYSTEM)/base_rules.mk 41 42 $(LOCAL_BUILT_MODULE): $(HOST_OUT_JAVA_LIBRARIES)/dx$(COMMON_JAVA_PACKAGE_SUFFIX) 43 $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/etc/dexmerger | $(ACP) 44 @echo "Copy: $(PRIVATE_MODULE) ($@)" 45 $(copy-file-to-new-target) 46 $(hide) chmod 755 $@ 47 48 INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE) 49 50 # the jasmin script 51 # ============================================================ 52 include $(CLEAR_VARS) 53 LOCAL_IS_HOST_MODULE := true 54 LOCAL_MODULE_CLASS := EXECUTABLES 55 LOCAL_MODULE_TAGS := optional 56 LOCAL_MODULE := jasmin 57 58 include $(BUILD_SYSTEM)/base_rules.mk 59 60 $(LOCAL_BUILT_MODULE): $(HOST_OUT_JAVA_LIBRARIES)/jasmin.jar 61 $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/etc/jasmin | $(ACP) 62 @echo "Copy: $(PRIVATE_MODULE) ($@)" 63 $(copy-file-to-new-target) 64 $(hide) chmod 755 $@ 65 66 INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE) 67 68 # the jasmin lib 69 # ============================================================ 70 include $(CLEAR_VARS) 71 LOCAL_IS_HOST_MODULE := true 72 LOCAL_MODULE_CLASS := JAVA_LIBRARIES 73 LOCAL_MODULE_TAGS := optional 74 LOCAL_MODULE := jasmin.jar 75 76 include $(BUILD_SYSTEM)/base_rules.mk 77 78 $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/etc/jasmin.jar | $(ACP) 79 @echo "Copy: $(PRIVATE_MODULE) ($@)" 80 $(copy-file-to-target) 81 $(hide) chmod 644 $@ 82 83 INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE) 84 85 # the other stuff 86 # ============================================================ 87 subdirs := $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \ 88 junit-tests \ 89 src \ 90 )) 91 92 include $(subdirs) 93