blob: edf8ca3b493a276564cb097a247b7c878c14b81e [file] [log] [blame]
The Android Open Source Projectf6c38712009-03-03 19:28:47 -08001# 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
Ying Wang9a2b2f72010-06-11 13:54:13 -07009# This tool is prebuilt if we're doing an app-only build.
10ifeq ($(TARGET_BUILD_APPS),)
11
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080012# the dx script
13# ============================================================
14include $(CLEAR_VARS)
15LOCAL_IS_HOST_MODULE := true
16LOCAL_MODULE_CLASS := EXECUTABLES
Jesse Wilson42929e12010-09-16 15:56:25 -070017LOCAL_MODULE_TAGS := optional
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080018LOCAL_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
Ying Wang9a2b2f72010-06-11 13:54:13 -070030endif # TARGET_BUILD_APPS
31
yrousseled939802012-10-26 16:33:53 +020032# the dexmerger script
33# ============================================================
34include $(CLEAR_VARS)
35LOCAL_IS_HOST_MODULE := true
36LOCAL_MODULE_CLASS := EXECUTABLES
37LOCAL_MODULE_TAGS := optional
38LOCAL_MODULE := dexmerger
39
40include $(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
48INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE)
49
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080050# the jasmin script
51# ============================================================
52include $(CLEAR_VARS)
53LOCAL_IS_HOST_MODULE := true
54LOCAL_MODULE_CLASS := EXECUTABLES
Jesse Wilson42929e12010-09-16 15:56:25 -070055LOCAL_MODULE_TAGS := optional
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080056LOCAL_MODULE := jasmin
57
58include $(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
66INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE)
67
68# the jasmin lib
69# ============================================================
70include $(CLEAR_VARS)
71LOCAL_IS_HOST_MODULE := true
72LOCAL_MODULE_CLASS := JAVA_LIBRARIES
Jesse Wilson42929e12010-09-16 15:56:25 -070073LOCAL_MODULE_TAGS := optional
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080074LOCAL_MODULE := jasmin.jar
75
76include $(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
83INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE)
84
85# the other stuff
86# ============================================================
87subdirs := $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \
Jesse Wilson4cd7b392011-12-09 14:33:21 -050088 junit-tests \
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080089 src \
90 ))
91
92include $(subdirs)