Home | History | Annotate | Download | only in libcore
      1 # -*- mode: makefile -*-
      2 # List of libcore directories to include in documentation.
      3 # Shared between libcore and frameworks/base.
      4 # Exports: libcore_to_document as a list of .java files relative to libcore/.
      5 
      6 ifndef libcore_docs_include_once
      7 
      8 include libcore/openjdk_java_files.mk
      9 include libcore/non_openjdk_java_files.mk
     10 
     11 
     12 # List of libcore javadoc source files
     13 _libcore_files := $(openjdk_javadoc_files) $(non_openjdk_javadoc_files)
     14 _libcore_files := $(addprefix libcore/, $(_libcore_files))
     15 
     16 _icu_files := \
     17  $(call find-files-in-subdirs, external/icu, \
     18    "*.java", \
     19    android_icu4j/src/main/java/android/icu/lang \
     20    android_icu4j/src/main/java/android/icu/math \
     21    android_icu4j/src/main/java/android/icu/text \
     22    android_icu4j/src/main/java/android/icu/util \
     23    )
     24 _icu_files := $(addprefix external/icu/, $(_icu_files))
     25 
     26 # List of libcore-related javadoc source files
     27 #
     28 # NOTE: Because libcore-related source spans modules (not just libcore!), files names here are
     29 # returned that are relative to the build root / $(TOPDIR) and not libcore.
     30 # BUILD_DROIDDOC requires file names that are relative the *current* LOCAL_DIR so users must account
     31 # for this.
     32 libcore_to_document := $(_libcore_files) $(_icu_files)
     33 
     34 libcore_docs_include_once := 1
     35 endif # libcore_docs_include_once
     36