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 # List of libcore javadoc source files
      9 _libcore_files := $(openjdk_javadoc_files) $(non_openjdk_javadoc_files)
     10 
     11 _icu_files := \
     12  $(call find-files-in-subdirs, external/icu, \
     13    "*.java", \
     14    android_icu4j/src/main/java/android/icu/lang \
     15    android_icu4j/src/main/java/android/icu/math \
     16    android_icu4j/src/main/java/android/icu/text \
     17    android_icu4j/src/main/java/android/icu/util \
     18    )
     19 _icu_files := $(addprefix external/icu/, $(_icu_files))
     20 
     21 
     22 # Get list of targets annotated with annotations from jaif file
     23 # Remove un-annotated original source file and replace them with annotated targets
     24 #
     25 ojluni_annotate_src := $(patsubst libcore/ojluni/src/main/java/%,%, $(annotated_ojluni_files))
     26 ojluni_annotate_output := $(patsubst %,$(call intermediates-dir-for,JAVA_LIBRARIES,core-oj,,COMMON)/annotated/%, $(ojluni_annotate_src))
     27 _libcore_files := $(filter-out $(patsubst %, libcore/ojluni/src/main/java/%, $(ojluni_annotate_src)), $(_libcore_files))
     28 _libcore_generated_files := $(ojluni_annotate_output)
     29 ojluni_annotate_src:=
     30 ojluni_annotate_output:=
     31 
     32 # List of libcore-related javadoc source files
     33 #
     34 # NOTE: Because libcore-related source spans modules (not just libcore!), files names here are
     35 # returned that are relative to the build root / $(TOPDIR) and not libcore.
     36 # BUILD_DROIDDOC requires file names that are relative the *current* LOCAL_DIR so users must account
     37 # for this.
     38 # libcore_to_document_generated are files in $(TARGET_OUT_COMMON_INTERMEDIATES)
     39 libcore_to_document := $(_libcore_files) $(_icu_files)
     40 libcore_to_document_generated := $(_libcore_generated_files)
     41 
     42 libcore_docs_include_once := 1
     43 endif # libcore_docs_include_once
     44