1# Copyright 2006 The Android Open Source Project
2#
3LOCAL_PATH := $(call my-dir)
4
5# This tool is prebuilt if we're doing an app-only build.
6ifeq ($(TARGET_BUILD_APPS)$(filter true,$(TARGET_BUILD_PDK)),)
7
8dx_src_files := \
9  $(call all-subdir-java-files) \
10  $(call all-java-files-under,../../../libcore/dex/src/main/java)
11
12# dx java library
13# ============================================================
14include $(CLEAR_VARS)
15
16LOCAL_SRC_FILES := $(dx_src_files)
17LOCAL_JAR_MANIFEST := ../etc/manifest.txt
18LOCAL_MODULE_TAGS := optional
19LOCAL_MODULE:= dx
20
21# Force java 6 target because we want java 6 runtimes to run dx, at least as long as the android SDK
22# requirement JDK 6.
23LOCAL_JAVACFLAGS:= -source 6 -target 6
24
25include $(BUILD_HOST_JAVA_LIBRARY)
26
27INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE)
28
29endif # No TARGET_BUILD_APPS or TARGET_BUILD_PDK
30
31# the documentation
32# ============================================================
33include $(CLEAR_VARS)
34
35LOCAL_SRC_FILES := $(dx_src_files) $(call all-subdir-html-files)
36LOCAL_MODULE_TAGS := optional
37LOCAL_MODULE:= dx
38LOCAL_DROIDDOC_OPTIONS := -hidden
39LOCAL_MODULE_CLASS := JAVA_LIBRARIES
40LOCAL_IS_HOST_MODULE := true
41
42include $(BUILD_DROIDDOC)
43
44dx_src_files :=
45