• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 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
50# the jasmin script
51# ============================================================
52include $(CLEAR_VARS)
53LOCAL_IS_HOST_MODULE := true
54LOCAL_MODULE_CLASS := EXECUTABLES
55LOCAL_MODULE_TAGS := optional
56LOCAL_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
73LOCAL_MODULE_TAGS := optional
74LOCAL_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, \
88		junit-tests \
89		src \
90	))
91
92include $(subdirs)
93