blob: 7176ff581afb3189d22d5c11dcca1911a53303ec [file] [log] [blame]
# -*- mode: makefile -*-
# List of libcore directories to include in documentation.
# Shared between libcore and frameworks/base.
# Exports: libcore_to_document as a list of .java files relative to libcore/.
ifndef libcore_docs_include_once
# List of libcore javadoc source files
#
# Note dalvik/system is non-recursive to exclude dalvik.system.profiler
_libcore_files := \
$(call find-files-in-subdirs, libcore, \
"*.java", \
dalvik/src/main/java/dalvik/system/ -maxdepth 1) \
$(call find-files-in-subdirs, libcore, \
"*.java", \
dalvik/src/main/java/dalvik/annotation \
dalvik/src/main/java/dalvik/bytecode \
json/src/main/java \
libart/src/main/java/dalvik \
libart/src/main/java/java \
luni/src/main/java/android \
luni/src/main/java/java \
luni/src/main/java/javax \
luni/src/main/java/org/xml/sax \
luni/src/main/java/org/w3c \
xml/src/main/java/org/xmlpull/v1)
_libcore_files := $(addprefix libcore/, $(_libcore_files))
_icu_files := \
$(call find-files-in-subdirs, external/icu, \
"*.java", \
android_icu4j/src/main/java/android/icu/lang \
android_icu4j/src/main/java/android/icu/math \
android_icu4j/src/main/java/android/icu/text \
android_icu4j/src/main/java/android/icu/util \
)
_icu_files := $(addprefix external/icu/, $(_icu_files))
# List of libcore-related javadoc source files
#
# NOTE: Because libcore-related source spans modules (not just libcore!), files names here are
# returned that are relative to the build root / $(TOPDIR) and not libcore.
# BUILD_DROIDDOC requires file names that are relative the *current* LOCAL_DIR so users must account
# for this.
libcore_to_document := $(_libcore_files) $(_icu_files)
libcore_docs_include_once := 1
endif # libcore_docs_include_once