blob: 28abc8b60985b92da7744e2112a8afbaf64076a5 [file] [log] [blame]
Elliott Hughesc3d30bf2011-01-07 16:24:47 -08001# -*- mode: makefile -*-
Brian Carlstromdc3c1522011-01-05 17:48:05 -08002# List of libcore directories to include in documentation.
3# Shared between libcore and frameworks/base.
Ying Wang21ac42d2013-12-04 15:54:36 -08004# Exports: libcore_to_document as a list of .java files relative to libcore/.
Brian Carlstromdc3c1522011-01-05 17:48:05 -08005
Ying Wang21ac42d2013-12-04 15:54:36 -08006ifndef libcore_docs_include_once
Brian Carlstromcfa84a22011-03-24 13:55:02 -07007
8# List of libcore javadoc source files
Przemyslaw Szczepaniak70b617f2015-11-20 12:01:45 +00009_libcore_files := $(openjdk_javadoc_files) $(non_openjdk_javadoc_files)
Neil Fuller42597382015-10-07 11:00:01 +010010
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
Colin Crossfb7218e2017-10-27 17:50:42 +000021
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#
25ojluni_annotate_src := $(patsubst libcore/ojluni/src/main/java/%,%, $(annotated_ojluni_files))
26ojluni_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)
29ojluni_annotate_src:=
30ojluni_annotate_output:=
31
Neil Fuller42597382015-10-07 11:00:01 +010032# 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.
Colin Crossfb7218e2017-10-27 17:50:42 +000038# libcore_to_document_generated are files in $(TARGET_OUT_COMMON_INTERMEDIATES)
Neil Fuller42597382015-10-07 11:00:01 +010039libcore_to_document := $(_libcore_files) $(_icu_files)
Colin Crossfb7218e2017-10-27 17:50:42 +000040libcore_to_document_generated := $(_libcore_generated_files)
Ying Wang21ac42d2013-12-04 15:54:36 -080041
42libcore_docs_include_once := 1
43endif # libcore_docs_include_once