1# Copyright 2006 The Android Open Source Project 2# 3LOCAL_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. 10ifeq ($(TARGET_BUILD_APPS),) 11 12# the dx script 13# ============================================================ 14include $(CLEAR_VARS) 15LOCAL_IS_HOST_MODULE := true 16LOCAL_MODULE_CLASS := EXECUTABLES 17LOCAL_MODULE_TAGS := optional 18LOCAL_MODULE := dx 19 20include $(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 28INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE) 29 30endif # TARGET_BUILD_APPS 31 32# the jasmin script 33# ============================================================ 34include $(CLEAR_VARS) 35LOCAL_IS_HOST_MODULE := true 36LOCAL_MODULE_CLASS := EXECUTABLES 37LOCAL_MODULE_TAGS := optional 38LOCAL_MODULE := jasmin 39 40include $(BUILD_SYSTEM)/base_rules.mk 41 42$(LOCAL_BUILT_MODULE): $(HOST_OUT_JAVA_LIBRARIES)/jasmin.jar 43$(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/etc/jasmin | $(ACP) 44 @echo "Copy: $(PRIVATE_MODULE) ($@)" 45 $(copy-file-to-new-target) 46 $(hide) chmod 755 $@ 47 48INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE) 49 50# the jasmin lib 51# ============================================================ 52include $(CLEAR_VARS) 53LOCAL_IS_HOST_MODULE := true 54LOCAL_MODULE_CLASS := JAVA_LIBRARIES 55LOCAL_MODULE_TAGS := optional 56LOCAL_MODULE := jasmin.jar 57 58include $(BUILD_SYSTEM)/base_rules.mk 59 60$(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/etc/jasmin.jar | $(ACP) 61 @echo "Copy: $(PRIVATE_MODULE) ($@)" 62 $(copy-file-to-target) 63 $(hide) chmod 644 $@ 64 65INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE) 66 67# the other stuff 68# ============================================================ 69subdirs := $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \ 70 junit-tests \ 71 src \ 72 )) 73 74include $(subdirs) 75