The Android Open Source Project | f6c3871 | 2009-03-03 19:28:47 -0800 | [diff] [blame] | 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 | |
Ying Wang | 9a2b2f7 | 2010-06-11 13:54:13 -0700 | [diff] [blame] | 9 | # This tool is prebuilt if we're doing an app-only build. |
| 10 | ifeq ($(TARGET_BUILD_APPS),) |
| 11 | |
The Android Open Source Project | f6c3871 | 2009-03-03 19:28:47 -0800 | [diff] [blame] | 12 | # the dx script |
| 13 | # ============================================================ |
| 14 | include $(CLEAR_VARS) |
| 15 | LOCAL_IS_HOST_MODULE := true |
| 16 | LOCAL_MODULE_CLASS := EXECUTABLES |
Jesse Wilson | 42929e1 | 2010-09-16 15:56:25 -0700 | [diff] [blame] | 17 | LOCAL_MODULE_TAGS := optional |
The Android Open Source Project | f6c3871 | 2009-03-03 19:28:47 -0800 | [diff] [blame] | 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 | |
Ying Wang | 9a2b2f7 | 2010-06-11 13:54:13 -0700 | [diff] [blame] | 30 | endif # TARGET_BUILD_APPS |
| 31 | |
yroussel | ed93980 | 2012-10-26 16:33:53 +0200 | [diff] [blame] | 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 | |
The Android Open Source Project | f6c3871 | 2009-03-03 19:28:47 -0800 | [diff] [blame] | 50 | # the jasmin script |
| 51 | # ============================================================ |
| 52 | include $(CLEAR_VARS) |
| 53 | LOCAL_IS_HOST_MODULE := true |
| 54 | LOCAL_MODULE_CLASS := EXECUTABLES |
Jesse Wilson | 42929e1 | 2010-09-16 15:56:25 -0700 | [diff] [blame] | 55 | LOCAL_MODULE_TAGS := optional |
The Android Open Source Project | f6c3871 | 2009-03-03 19:28:47 -0800 | [diff] [blame] | 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 |
Jesse Wilson | 42929e1 | 2010-09-16 15:56:25 -0700 | [diff] [blame] | 73 | LOCAL_MODULE_TAGS := optional |
The Android Open Source Project | f6c3871 | 2009-03-03 19:28:47 -0800 | [diff] [blame] | 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, \ |
Jesse Wilson | 4cd7b39 | 2011-12-09 14:33:21 -0500 | [diff] [blame] | 88 | junit-tests \ |
The Android Open Source Project | f6c3871 | 2009-03-03 19:28:47 -0800 | [diff] [blame] | 89 | src \ |
| 90 | )) |
| 91 | |
| 92 | include $(subdirs) |