1 # Copyright 2006 The Android Open Source Project 2 # 3 LOCAL_PATH := $(call my-dir) 4 5 # This tool is prebuilt if we're doing an app-only build. 6 ifeq ($(TARGET_BUILD_APPS)$(filter true,$(TARGET_BUILD_PDK)),) 7 8 dx_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 # ============================================================ 14 include $(CLEAR_VARS) 15 16 LOCAL_SRC_FILES := $(dx_src_files) 17 LOCAL_JAR_MANIFEST := ../etc/manifest.txt 18 LOCAL_MODULE_TAGS := optional 19 LOCAL_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. 23 LOCAL_JAVACFLAGS:= -source 6 -target 6 24 25 include $(BUILD_HOST_JAVA_LIBRARY) 26 27 INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE) 28 29 endif # No TARGET_BUILD_APPS or TARGET_BUILD_PDK 30 31 # the documentation 32 # ============================================================ 33 include $(CLEAR_VARS) 34 35 LOCAL_SRC_FILES := $(dx_src_files) $(call all-subdir-html-files) 36 LOCAL_MODULE_TAGS := optional 37 LOCAL_MODULE:= dx 38 LOCAL_DROIDDOC_OPTIONS := -hidden 39 LOCAL_MODULE_CLASS := JAVA_LIBRARIES 40 LOCAL_IS_HOST_MODULE := true 41 42 include $(BUILD_DROIDDOC) 43 44 dx_src_files := 45