blob: 8ae0350a86e5ef91f1cd1963a90d5bf3bbfae0f8 [file] [log] [blame]
Bart Searsa8cc0582015-05-07 03:23:20 +00001#
2# Copyright (C) 2008 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16LOCAL_PATH := $(call my-dir)
17
Colin Crosscf3a0b52017-11-16 00:15:28 -080018# Load framework-specific path mappings used later in the build.
19include $(LOCAL_PATH)/pathmap.mk
Bart Searsa8cc0582015-05-07 03:23:20 +000020
21# Build the master framework library.
22# The framework contains too many method references (>64K) for poor old DEX.
23# So we first build the framework as a monolithic static library then split it
24# up into smaller pieces.
25# ============================================================
26
27# embedded builds use nothing in frameworks/base
28ifneq ($(ANDROID_BUILD_EMBEDDED),true)
29
Bart Searsa8cc0582015-05-07 03:23:20 +000030# Copy AIDL files to be preprocessed and included in the SDK,
31# specified relative to the root of the build tree.
32# ============================================================
33include $(CLEAR_VARS)
34
Colin Cross77ebd082017-12-15 17:30:33 -080035aidl_parcelables :=
36define stubs-to-aidl-parcelables
37 gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/$1.aidl
38 aidl_parcelables += $$(gen)
39 $$(gen): $(call java-lib-header-files,$1) | $(HOST_OUT_EXECUTABLES)/sdkparcelables
40 @echo Extract SDK parcelables: $$@
41 rm -f $$@
42 $(HOST_OUT_EXECUTABLES)/sdkparcelables $$< $$@
43endef
44
45$(foreach stubs,android_stubs_current android_test_stubs_current android_system_stubs_current,\
46 $(eval $(call stubs-to-aidl-parcelables,$(stubs))))
47
Bart Searsa8cc0582015-05-07 03:23:20 +000048gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl
Colin Cross77ebd082017-12-15 17:30:33 -080049.KATI_RESTAT: $(gen)
50$(gen): $(aidl_parcelables)
51 @echo Combining SDK parcelables: $@
52 rm -f $@.tmp
53 cat $^ | sort -u > $@.tmp
54 $(call commit-change-for-toc,$@)
Bart Searsa8cc0582015-05-07 03:23:20 +000055
56# the documentation
57# ============================================================
58
59# TODO: deal with com/google/android/googleapps
60packages_to_document := \
Colin Crosscf3a0b52017-11-16 00:15:28 -080061 android \
62 javax/microedition/khronos \
63 org/apache/http/conn \
64 org/apache/http/params \
Bart Searsa8cc0582015-05-07 03:23:20 +000065
66# include definition of libcore_to_document
67include libcore/Docs.mk
68
Bart Searsa8cc0582015-05-07 03:23:20 +000069non_base_dirs := \
Colin Crosscf3a0b52017-11-16 00:15:28 -080070 ../opt/telephony/src/java/android/telephony \
71 ../opt/telephony/src/java/android/telephony/gsm \
72 ../opt/net/voip/src/java/android/net/rtp \
73 ../opt/net/voip/src/java/android/net/sip \
Bart Searsa8cc0582015-05-07 03:23:20 +000074
Colin Crosscf3a0b52017-11-16 00:15:28 -080075# Find all files in specific directories (relative to frameworks/base)
76# to document and check apis
77files_to_check_apis := \
78 $(call find-other-java-files, \
Colin Crosscf3a0b52017-11-16 00:15:28 -080079 $(non_base_dirs) \
80 )
Bart Searsa8cc0582015-05-07 03:23:20 +000081
Colin Crosscf3a0b52017-11-16 00:15:28 -080082# Find all files in specific packages that were used to compile
83# framework.jar to document and check apis
84files_to_check_apis += \
85 $(addprefix ../../,\
86 $(filter \
87 $(foreach dir,$(FRAMEWORKS_BASE_JAVA_SRC_DIRS),\
88 $(foreach package,$(packages_to_document),\
89 $(dir)/$(package)/%.java)),\
90 $(SOONG_FRAMEWORK_SRCS)))
91
92# Find all generated files that were used to compile framework.jar
Colin Crossbd200ce2017-12-04 13:45:19 -080093files_to_check_apis_generated := \
94 $(filter $(OUT_DIR)/%,\
95 $(SOONG_FRAMEWORK_SRCS))
George Mountf6be9932015-12-03 07:39:55 -080096
Bart Searsa8cc0582015-05-07 03:23:20 +000097# These are relative to frameworks/base
98# FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
Colin Crosscf3a0b52017-11-16 00:15:28 -080099files_to_document := \
100 $(files_to_check_apis) \
101 $(call find-other-java-files,\
Paul Duffin187a48d2017-12-13 14:34:31 +0000102 test-base/src \
Paul Duffin9f6282d2017-12-15 15:49:08 +0000103 test-mock/src \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800104 test-runner/src)
George Mountf6be9932015-12-03 07:39:55 -0800105
Bart Searsa8cc0582015-05-07 03:23:20 +0000106# These are relative to frameworks/base
107html_dirs := \
108 $(FRAMEWORKS_BASE_SUBDIRS) \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800109 $(non_base_dirs) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000110
111# Common sources for doc check and api check
112common_src_files := \
113 $(call find-other-html-files, $(html_dirs)) \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800114 $(addprefix ../../, $(libcore_to_document)) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000115
116# These are relative to frameworks/base
117framework_docs_LOCAL_SRC_FILES := \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800118 $(files_to_document) \
119 $(common_src_files) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000120
121# These are relative to frameworks/base
122framework_docs_LOCAL_API_CHECK_SRC_FILES := \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800123 $(files_to_check_apis) \
124 $(common_src_files) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000125
126# This is used by ide.mk as the list of source files that are
127# always included.
128INTERNAL_SDK_SOURCE_DIRS := $(addprefix $(LOCAL_PATH)/,$(dirs_to_document))
129
130framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
131 $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
132
Colin Crosscf3a0b52017-11-16 00:15:28 -0800133framework_docs_LOCAL_SRCJARS := $(SOONG_FRAMEWORK_SRCJARS)
134
Colin Crossbd200ce2017-12-04 13:45:19 -0800135framework_docs_LOCAL_GENERATED_SOURCES := \
136 $(libcore_to_document_generated) \
137 $(files_to_check_apis_generated) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000138
139framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES := \
Piotr Jastrzebskicfa292e2015-02-17 16:58:52 +0000140 core-oj \
Bart Searsa8cc0582015-05-07 03:23:20 +0000141 core-libart \
142 conscrypt \
143 bouncycastle \
144 okhttp \
145 ext \
Rayhaan Jaufeerally2e47a6e2015-08-03 13:54:28 +0100146 icu4j \
Bart Searsa8cc0582015-05-07 03:23:20 +0000147 framework \
Paul Duffinc08090f2017-06-29 14:58:43 +0100148 voip-common \
Bart Searsa8cc0582015-05-07 03:23:20 +0000149
Alan Viverette9ca513e2017-04-05 10:21:58 -0400150# Platform docs can refer to Support Library APIs, but we don't actually build
151# them as part of the docs target, so we need to include them on the classpath.
Bart Searsa8cc0582015-05-07 03:23:20 +0000152framework_docs_LOCAL_JAVA_LIBRARIES := \
153 $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) \
154 $(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES)
155
156framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
157framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
158# The since flag (-since N.xml API_LEVEL) is used to add API Level information
159# to the reference documentation. Must be in order of oldest to newest.
160#
161# Conscrypt (com.android.org.conscrypt) is an implementation detail and should
162# not be referenced in the documentation.
163framework_docs_LOCAL_DROIDDOC_OPTIONS := \
Jeff Sharkey0f3f60b2017-04-24 18:06:20 -0600164 -android \
Bart Searsa8cc0582015-05-07 03:23:20 +0000165 -knowntags ./frameworks/base/docs/knowntags.txt \
Narayan Kamath2c4f2842015-07-27 14:02:11 +0100166 -knowntags ./libcore/known_oj_tags.txt \
Jeff Sharkeybfc4fcd2017-06-05 17:38:17 -0600167 -manifest ./frameworks/base/core/res/AndroidManifest.xml \
Neil Fuller57157fb2017-11-24 15:58:38 +0000168 -hidePackage com.android.okhttp \
Bart Searsa8cc0582015-05-07 03:23:20 +0000169 -hidePackage com.android.org.conscrypt \
Neil Fuller371c08c2017-11-27 10:32:07 +0000170 -hidePackage com.android.server \
Bart Searsa8cc0582015-05-07 03:23:20 +0000171 -since $(SRC_API_DIR)/1.xml 1 \
172 -since $(SRC_API_DIR)/2.xml 2 \
173 -since $(SRC_API_DIR)/3.xml 3 \
174 -since $(SRC_API_DIR)/4.xml 4 \
175 -since $(SRC_API_DIR)/5.xml 5 \
176 -since $(SRC_API_DIR)/6.xml 6 \
177 -since $(SRC_API_DIR)/7.xml 7 \
178 -since $(SRC_API_DIR)/8.xml 8 \
179 -since $(SRC_API_DIR)/9.xml 9 \
180 -since $(SRC_API_DIR)/10.xml 10 \
181 -since $(SRC_API_DIR)/11.xml 11 \
182 -since $(SRC_API_DIR)/12.xml 12 \
183 -since $(SRC_API_DIR)/13.xml 13 \
184 -since $(SRC_API_DIR)/14.txt 14 \
185 -since $(SRC_API_DIR)/15.txt 15 \
186 -since $(SRC_API_DIR)/16.txt 16 \
187 -since $(SRC_API_DIR)/17.txt 17 \
188 -since $(SRC_API_DIR)/18.txt 18 \
189 -since $(SRC_API_DIR)/19.txt 19 \
190 -since $(SRC_API_DIR)/20.txt 20 \
191 -since $(SRC_API_DIR)/21.txt 21 \
192 -since $(SRC_API_DIR)/22.txt 22 \
Joe Fernandez1827e322015-08-12 19:45:22 -0700193 -since $(SRC_API_DIR)/23.txt 23 \
Dirk Dougherty5f60f7c2016-06-14 16:26:28 -0700194 -since $(SRC_API_DIR)/24.txt 24 \
Dirk Dougherty3376f582016-10-14 10:27:08 -0700195 -since $(SRC_API_DIR)/25.txt 25 \
Dirk Doughertyfdad0ba2017-06-09 14:43:32 -0700196 -since $(SRC_API_DIR)/26.txt 26 \
Andrew Solovaya6019b22017-10-06 14:27:20 -0700197 -since $(SRC_API_DIR)/27.txt 27 \
Jeff Sharkeyc204c222017-11-27 15:02:10 -0700198 -werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 \
Jeff Sharkey0f3f60b2017-04-24 18:06:20 -0600199 -overview $(LOCAL_PATH)/core/java/overview.html \
Bart Searsa8cc0582015-05-07 03:23:20 +0000200
201framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR:= \
202 $(call intermediates-dir-for,JAVA_LIBRARIES,framework,,COMMON)
203
204framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= \
Alan Viverette9ca513e2017-04-05 10:21:58 -0400205 $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
Bart Searsa8cc0582015-05-07 03:23:20 +0000206
207framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES := \
Narayan Kamathc21739a2015-07-14 13:39:23 +0100208 frameworks/base/docs/knowntags.txt \
Colin Cross72d359f2017-10-27 10:46:53 -0700209 $(libcore_to_document_generated)
Bart Searsa8cc0582015-05-07 03:23:20 +0000210
211samples_dir := development/samples/browseable
212
213# Whitelist of valid groups, used for default TOC grouping. Each sample must
214# belong to one (and only one) group. Assign samples to groups by setting
215# a sample.group var to one of these groups in the sample's _index.jd.
216sample_groups := -samplegroup Admin \
217 -samplegroup Background \
218 -samplegroup Connectivity \
219 -samplegroup Content \
220 -samplegroup Input \
221 -samplegroup Media \
222 -samplegroup Notification \
223 -samplegroup RenderScript \
224 -samplegroup Security \
225 -samplegroup Sensors \
Trevor Johns4cbe3592015-05-27 14:50:51 -0700226 -samplegroup System \
Bart Searsa8cc0582015-05-07 03:23:20 +0000227 -samplegroup Testing \
228 -samplegroup UI \
229 -samplegroup Views \
230 -samplegroup Wearable
231
232## SDK version identifiers used in the published docs
233 # major[.minor] version for current SDK. (full releases only)
smain@google.comdde8deb2016-08-29 18:36:50 -0700234framework_docs_SDK_VERSION:=7.0
Bart Searsa8cc0582015-05-07 03:23:20 +0000235 # release version (ie "Release x") (full releases only)
236framework_docs_SDK_REL_ID:=1
237
238framework_docs_LOCAL_DROIDDOC_OPTIONS += \
Billy Lamberta75dbc8f2017-03-03 13:09:15 -0800239 -hdf dac true \
Scott Mainf8cdfc82017-03-21 13:43:31 -0700240 -hdf sdk.codename O \
241 -hdf sdk.preview.version 1 \
Bart Searsa8cc0582015-05-07 03:23:20 +0000242 -hdf sdk.version $(framework_docs_SDK_VERSION) \
243 -hdf sdk.rel.id $(framework_docs_SDK_REL_ID) \
Scott Mainf8cdfc82017-03-21 13:43:31 -0700244 -hdf sdk.preview 0 \
245 -resourcesdir $(LOCAL_PATH)/docs/html/reference/images/ \
246 -resourcesoutdir reference/android/images/
Bart Searsa8cc0582015-05-07 03:23:20 +0000247
Alan Viverette9ca513e2017-04-05 10:21:58 -0400248# Federate Support Library references against local API file.
249framework_docs_LOCAL_DROIDDOC_OPTIONS += \
250 -federate SupportLib https://developer.android.com \
251 -federationapi SupportLib prebuilts/sdk/current/support-api.txt
252
Jeff Sharkeyd2bf31c2017-11-29 13:14:27 -0700253# ==== Public API diff ===========================
Alan Viverette6b7354c2017-07-13 17:10:14 -0400254include $(CLEAR_VARS)
255
256LOCAL_SRC_FILES := $(framework_docs_LOCAL_API_CHECK_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800257LOCAL_GENERATED_SOURCES := $(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800258LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Alan Viverette6b7354c2017-07-13 17:10:14 -0400259LOCAL_JAVA_LIBRARIES := $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
260LOCAL_MODULE_CLASS := $(framework_docs_LOCAL_MODULE_CLASS)
261LOCAL_ADDITIONAL_JAVA_DIR := $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
262LOCAL_ADDITIONAL_DEPENDENCIES := \
263 $(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) \
264 $(INTERNAL_PLATFORM_API_FILE)
265
266LOCAL_MODULE := offline-sdk-referenceonly
267
268last_released_sdk_version := $(lastword $(call numerically_sort, \
269 $(filter-out current, \
270 $(patsubst $(SRC_API_DIR)/%.txt,%, $(wildcard $(SRC_API_DIR)/*.txt)) \
271 )\
272 ))
273
274LOCAL_APIDIFF_OLDAPI := $(LOCAL_PATH)/../../$(SRC_API_DIR)/$(last_released_sdk_version)
275LOCAL_APIDIFF_NEWAPI := $(LOCAL_PATH)/../../$(basename $(INTERNAL_PLATFORM_API_FILE))
276
277include $(BUILD_APIDIFF)
278
Jeff Sharkeyc8dc2542017-12-08 14:52:37 -0700279# Hack to get diffs included in docs output
280out_zip := $(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip
281$(out_zip): $(full_target)
282
Jeff Sharkeyd2bf31c2017-11-29 13:14:27 -0700283# ==== System API diff ===========================
284include $(CLEAR_VARS)
285
286LOCAL_SRC_FILES := $(framework_docs_LOCAL_API_CHECK_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800287LOCAL_GENERATED_SOURCES := $(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800288LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Jeff Sharkeyd2bf31c2017-11-29 13:14:27 -0700289LOCAL_JAVA_LIBRARIES := $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
290LOCAL_MODULE_CLASS := $(framework_docs_LOCAL_MODULE_CLASS)
291LOCAL_ADDITIONAL_JAVA_DIR := $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
292LOCAL_ADDITIONAL_DEPENDENCIES := \
293 $(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) \
294 $(INTERNAL_PLATFORM_SYSTEM_API_FILE)
295
296LOCAL_MODULE := offline-system-sdk-referenceonly
297
298last_released_sdk_version := $(lastword $(call numerically_sort, \
299 $(filter-out current, \
300 $(patsubst $(SRC_SYSTEM_API_DIR)/%.txt,%, $(wildcard $(SRC_SYSTEM_API_DIR)/*.txt)) \
301 )\
302 ))
303
304LOCAL_APIDIFF_OLDAPI := $(LOCAL_PATH)/../../$(SRC_SYSTEM_API_DIR)/$(last_released_sdk_version)
305LOCAL_APIDIFF_NEWAPI := $(LOCAL_PATH)/../../$(basename $(INTERNAL_PLATFORM_SYSTEM_API_FILE))
306
307include $(BUILD_APIDIFF)
308
Jeff Sharkeyc8dc2542017-12-08 14:52:37 -0700309# Hack to get diffs included in docs output
310out_zip := $(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip
311$(out_zip): $(full_target)
312
Bart Searsa8cc0582015-05-07 03:23:20 +0000313# ==== the api stubs and current.xml ===========================
314include $(CLEAR_VARS)
315
316LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800317LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800318LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000319LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
320LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
321LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
322LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
323LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
324LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
325
326LOCAL_MODULE := api-stubs
327
Ying Wang0f92a2e2015-07-16 14:20:22 -0700328LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_stubs_current_intermediates/src
329
Bart Searsa8cc0582015-05-07 03:23:20 +0000330LOCAL_DROIDDOC_OPTIONS:=\
331 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700332 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000333 -api $(INTERNAL_PLATFORM_API_FILE) \
334 -removedApi $(INTERNAL_PLATFORM_REMOVED_API_FILE) \
335 -nodocs
336
Scott Main15b85172017-02-21 14:30:58 -0800337LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000338
339LOCAL_UNINSTALLABLE_MODULE := true
340
341include $(BUILD_DROIDDOC)
342
Bart Searsa8cc0582015-05-07 03:23:20 +0000343$(INTERNAL_PLATFORM_API_FILE): $(full_target)
344$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE))
345
346# ==== the system api stubs ===================================
347include $(CLEAR_VARS)
348
349LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800350LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800351LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000352LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
353LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
354LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
355LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
356LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
357LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
358
359LOCAL_MODULE := system-api-stubs
360
Ying Wang0f92a2e2015-07-16 14:20:22 -0700361LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_system_stubs_current_intermediates/src
362
Bart Searsa8cc0582015-05-07 03:23:20 +0000363LOCAL_DROIDDOC_OPTIONS:=\
364 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700365 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000366 -showAnnotation android.annotation.SystemApi \
367 -api $(INTERNAL_PLATFORM_SYSTEM_API_FILE) \
368 -removedApi $(INTERNAL_PLATFORM_SYSTEM_REMOVED_API_FILE) \
Jeff Sharkey05461c02017-05-09 19:01:09 -0600369 -exactApi $(INTERNAL_PLATFORM_SYSTEM_EXACT_API_FILE) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000370 -nodocs
371
Scott Main15b85172017-02-21 14:30:58 -0800372LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000373
374LOCAL_UNINSTALLABLE_MODULE := true
375
376include $(BUILD_DROIDDOC)
377
Bart Searsa8cc0582015-05-07 03:23:20 +0000378$(INTERNAL_PLATFORM_SYSTEM_API_FILE): $(full_target)
379$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_SYSTEM_API_FILE))
380
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000381# ==== the test api stubs ===================================
382include $(CLEAR_VARS)
383
384LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800385LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800386LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000387LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
388LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
389LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
390LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
391LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
392LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
393
394LOCAL_MODULE := test-api-stubs
395
396LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src
397
398LOCAL_DROIDDOC_OPTIONS:=\
399 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700400 -referenceonly \
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000401 -stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src \
402 -showAnnotation android.annotation.TestApi \
403 -api $(INTERNAL_PLATFORM_TEST_API_FILE) \
404 -removedApi $(INTERNAL_PLATFORM_TEST_REMOVED_API_FILE) \
Jeff Sharkey05461c02017-05-09 19:01:09 -0600405 -exactApi $(INTERNAL_PLATFORM_TEST_EXACT_API_FILE) \
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000406 -nodocs
407
Scott Main15b85172017-02-21 14:30:58 -0800408LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000409
410LOCAL_UNINSTALLABLE_MODULE := true
411
412include $(BUILD_DROIDDOC)
413
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000414$(INTERNAL_PLATFORM_TEST_API_FILE): $(full_target)
415$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_TEST_API_FILE))
416
Bart Searsa8cc0582015-05-07 03:23:20 +0000417# ==== check javadoc comments but don't generate docs ========
418include $(CLEAR_VARS)
419
420LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800421LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800422LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000423LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
424LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
425LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
426LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
427LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
428LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
429
430LOCAL_MODULE := doc-comment-check
431
432LOCAL_DROIDDOC_OPTIONS:=\
433 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700434 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000435 -parsecomments
436
Scott Main15b85172017-02-21 14:30:58 -0800437LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000438
439LOCAL_UNINSTALLABLE_MODULE := true
440
441include $(BUILD_DROIDDOC)
442
Bart Searsa8cc0582015-05-07 03:23:20 +0000443# Run this for checkbuild
444checkbuild: doc-comment-check-docs
445# Check comment when you are updating the API
446update-api: doc-comment-check-docs
447
448# ==== static html in the sdk ==================================
449include $(CLEAR_VARS)
450
451LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800452LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800453LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000454LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
455LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
456LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
457LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
458LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
459LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
460
461LOCAL_MODULE := offline-sdk
462
463LOCAL_DROIDDOC_OPTIONS:=\
464 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
465 -offlinemode \
466 -title "Android SDK" \
467 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
smain@google.com00de8c52016-03-07 18:38:08 -0800468 -sdkvalues $(OUT_DOCS) \
smain@google.com8562ab52016-06-14 17:11:57 -0700469 -hdf android.whichdoc offline
470
Scott Main15b85172017-02-21 14:30:58 -0800471LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
smain@google.com8562ab52016-06-14 17:11:57 -0700472
473include $(BUILD_DROIDDOC)
474
475static_doc_index_redirect := $(out_dir)/index.html
476$(static_doc_index_redirect): \
477 $(LOCAL_PATH)/docs/docs-preview-index.html | $(ACP)
478 $(hide) mkdir -p $(dir $@)
479 $(hide) $(ACP) $< $@
480
481$(full_target): $(static_doc_index_redirect)
smain@google.com8562ab52016-06-14 17:11:57 -0700482
483
Jeff Sharkeyd2bf31c2017-11-29 13:14:27 -0700484# ==== Public API static reference docs ==================================
smain@google.com8562ab52016-06-14 17:11:57 -0700485include $(CLEAR_VARS)
486
487LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800488LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800489LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
smain@google.com8562ab52016-06-14 17:11:57 -0700490LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
491LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
492LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
493LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
494LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
495LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
496
497LOCAL_MODULE := offline-sdk-referenceonly
498
499LOCAL_DROIDDOC_OPTIONS:=\
500 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
501 -offlinemode \
502 -title "Android SDK" \
503 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
504 -sdkvalues $(OUT_DOCS) \
smain@google.com00de8c52016-03-07 18:38:08 -0800505 -hdf android.whichdoc offline \
Scott Mainf8cdfc82017-03-21 13:43:31 -0700506 -referenceonly
smain@google.com00de8c52016-03-07 18:38:08 -0800507
Scott Main15b85172017-02-21 14:30:58 -0800508LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
smain@google.com00de8c52016-03-07 18:38:08 -0800509
510include $(BUILD_DROIDDOC)
511
512static_doc_index_redirect := $(out_dir)/index.html
smain@google.com151833a2016-08-31 08:42:09 -0700513$(static_doc_index_redirect): $(LOCAL_PATH)/docs/docs-documentation-redirect.html
Dan Willemsen98ff0b72016-03-23 00:42:44 -0700514 $(copy-file-to-target)
smain@google.com00de8c52016-03-07 18:38:08 -0800515
smain@google.com2f2365d2016-09-21 14:05:50 -0700516static_doc_properties := $(out_dir)/source.properties
517$(static_doc_properties): \
518 $(LOCAL_PATH)/docs/source.properties | $(ACP)
519 $(hide) mkdir -p $(dir $@)
520 $(hide) $(ACP) $< $@
521
smain@google.com00de8c52016-03-07 18:38:08 -0800522$(full_target): $(static_doc_index_redirect)
smain@google.com2f2365d2016-09-21 14:05:50 -0700523$(full_target): $(static_doc_properties)
smain@google.com00de8c52016-03-07 18:38:08 -0800524
smain@google.com7aca8be2016-03-10 14:13:30 -0800525
Jeff Sharkeyd2bf31c2017-11-29 13:14:27 -0700526# ==== System API static reference docs ==================================
527include $(CLEAR_VARS)
528
529LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800530LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800531LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Jeff Sharkeyd2bf31c2017-11-29 13:14:27 -0700532LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
533LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
534LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
535LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
536LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
537LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
538
539LOCAL_MODULE := offline-system-sdk-referenceonly
540
541LOCAL_DROIDDOC_OPTIONS:=\
542 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
543 -hide 101 -hide 104 -hide 108 \
544 -showAnnotation android.annotation.SystemApi \
545 -offlinemode \
546 -title "Android System SDK" \
547 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
548 -sdkvalues $(OUT_DOCS) \
549 -hdf android.whichdoc offline \
550 -referenceonly
551
552LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
553
554include $(BUILD_DROIDDOC)
555
556static_doc_index_redirect := $(out_dir)/index.html
557$(static_doc_index_redirect): $(LOCAL_PATH)/docs/docs-documentation-redirect.html
558 $(copy-file-to-target)
559
560static_doc_properties := $(out_dir)/source.properties
561$(static_doc_properties): \
562 $(LOCAL_PATH)/docs/source.properties | $(ACP)
563 $(hide) mkdir -p $(dir $@)
564 $(hide) $(ACP) $< $@
565
566$(full_target): $(static_doc_index_redirect)
567$(full_target): $(static_doc_properties)
568$(full_target): $(framework_built)
569
570
Bart Searsa8cc0582015-05-07 03:23:20 +0000571# ==== docs for the web (on the androiddevdocs app engine server) =======================
572include $(CLEAR_VARS)
573
574LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800575LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800576LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000577LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
578LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
579LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
580LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
581LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
582LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
583LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
584LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
585
586LOCAL_MODULE := online-sdk
587
588LOCAL_DROIDDOC_OPTIONS:= \
589 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
590 -toroot / \
591 -hdf android.whichdoc online \
592 $(sample_groups) \
593 -hdf android.hasSamples true \
594 -samplesdir $(samples_dir)
595
Scott Main15b85172017-02-21 14:30:58 -0800596LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000597
598include $(BUILD_DROIDDOC)
599
600# ==== docs for the web (on the androiddevdocs app engine server) =======================
Bart Searsa8cc0582015-05-07 03:23:20 +0000601include $(CLEAR_VARS)
602
603LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800604LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800605LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000606LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
607LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
608LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
609LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
610LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
611LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
612LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
613LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
614
615LOCAL_MODULE := online-system-api-sdk
616
617LOCAL_DROIDDOC_OPTIONS:= \
618 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700619 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000620 -showAnnotation android.annotation.SystemApi \
621 -title "Android SDK - Including system APIs." \
622 -toroot / \
Gina Dimino98ad8882016-05-31 17:25:48 -0700623 -hide 101 \
624 -hide 104 \
625 -hide 108 \
Bart Searsa8cc0582015-05-07 03:23:20 +0000626 -hdf android.whichdoc online \
627 $(sample_groups) \
628 -hdf android.hasSamples true \
629 -samplesdir $(samples_dir)
630
Scott Main15b85172017-02-21 14:30:58 -0800631LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Jeff Sharkey05461c02017-05-09 19:01:09 -0600632
Bart Searsa8cc0582015-05-07 03:23:20 +0000633LOCAL_UNINSTALLABLE_MODULE := true
634
635include $(BUILD_DROIDDOC)
Bart Searsa8cc0582015-05-07 03:23:20 +0000636
637# ==== docs for the web (on the devsite app engine server) =======================
638include $(CLEAR_VARS)
639LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800640LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800641LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000642LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
643LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
644LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
645LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
646LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
647LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
648LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
649# specify a second html input dir and an output path relative to OUT_DIR)
Dirk Dougherty3852c1f2016-04-10 02:05:09 -0700650LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
Bart Searsa8cc0582015-05-07 03:23:20 +0000651
652LOCAL_MODULE := ds
653
654LOCAL_DROIDDOC_OPTIONS:= \
655 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000656 -toroot / \
657 -hdf android.whichdoc online \
Dirk Doughertyb042ab12016-06-14 16:26:28 -0700658 -devsite \
Dirk Dougherty3852c1f2016-04-10 02:05:09 -0700659 $(sample_groups) \
Dirk Dougherty3852c1f2016-04-10 02:05:09 -0700660 -hdf android.hasSamples true \
661 -samplesdir $(samples_dir)
Bart Searsa8cc0582015-05-07 03:23:20 +0000662
Scott Main15b85172017-02-21 14:30:58 -0800663LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000664
665include $(BUILD_DROIDDOC)
666
Dirk Doughertyb042ab12016-06-14 16:26:28 -0700667# ==== docs for the web (on the devsite app engine server) =======================
668include $(CLEAR_VARS)
669LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800670LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800671LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Dirk Doughertyb042ab12016-06-14 16:26:28 -0700672LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
673LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
674LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
675LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
676LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
677LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
678LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
679# specify a second html input dir and an output path relative to OUT_DIR)
680LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
681
682LOCAL_MODULE := ds-static
683
684LOCAL_DROIDDOC_OPTIONS:= \
685 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
686 -hdf android.whichdoc online \
687 -staticonly \
688 -toroot / \
689 -devsite \
690 -ignoreJdLinks
691
Scott Main15b85172017-02-21 14:30:58 -0800692LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Dirk Doughertyb042ab12016-06-14 16:26:28 -0700693
694include $(BUILD_DROIDDOC)
695
Dirk Dougherty7d47b552016-09-13 16:44:25 -0700696# ==== generates full navtree for resolving @links in ds postprocessing ====
697include $(CLEAR_VARS)
698
699LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800700LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800701LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Dirk Dougherty7d47b552016-09-13 16:44:25 -0700702LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
703LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
704LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
705LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
706LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
707LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
708
709LOCAL_MODULE := ds-ref-navtree
710
711LOCAL_DROIDDOC_OPTIONS:= \
712 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
713 -hdf android.whichdoc online \
714 -toroot / \
715 -atLinksNavtree \
716 -navtreeonly
717
Scott Main15b85172017-02-21 14:30:58 -0800718LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Dirk Dougherty7d47b552016-09-13 16:44:25 -0700719
720include $(BUILD_DROIDDOC)
721
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800722# ==== site updates for docs (on the androiddevdocs app engine server) =======================
Bart Searsa8cc0582015-05-07 03:23:20 +0000723include $(CLEAR_VARS)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800724
Bart Searsa8cc0582015-05-07 03:23:20 +0000725LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800726LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800727LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000728LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
729LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
730LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
731LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800732LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
Bart Searsa8cc0582015-05-07 03:23:20 +0000733LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
734LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800735LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
Bart Searsa8cc0582015-05-07 03:23:20 +0000736
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800737LOCAL_MODULE := online-sdk-dev
Bart Searsa8cc0582015-05-07 03:23:20 +0000738
739LOCAL_DROIDDOC_OPTIONS:= \
740 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
741 -toroot / \
742 -hdf android.whichdoc online \
743 $(sample_groups) \
744 -hdf android.hasSamples true \
745 -samplesdir $(samples_dir)
746
Scott Main15b85172017-02-21 14:30:58 -0800747LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000748
749include $(BUILD_DROIDDOC)
750
Bart Searsa8cc0582015-05-07 03:23:20 +0000751# ==== docs that have all of the stuff that's @hidden =======================
752include $(CLEAR_VARS)
753
754LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800755LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800756LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000757LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
758LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
759LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
760LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
761LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
762LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
763
764LOCAL_MODULE := hidden
765LOCAL_DROIDDOC_OPTIONS:=\
766 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700767 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000768 -title "Android SDK - Including hidden APIs."
769# -hidden
770
Scott Main15b85172017-02-21 14:30:58 -0800771LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000772
773include $(BUILD_DROIDDOC)
774
Joe Onorato1754d742016-11-21 17:51:35 -0800775# ==== java proto host library ==============================
776include $(CLEAR_VARS)
777LOCAL_MODULE := platformprotos
778LOCAL_PROTOC_OPTIMIZE_TYPE := full
779LOCAL_PROTOC_FLAGS := \
780 -Iexternal/protobuf/src
781LOCAL_SOURCE_FILES_ALL_GENERATED := true
782LOCAL_SRC_FILES := \
Mike Mada3a2952017-11-13 12:06:45 -0800783 cmds/am/proto/instrumentation_data.proto \
Joe Onorato1754d742016-11-21 17:51:35 -0800784 $(call all-proto-files-under, core/proto) \
Chenjie Yu15176cd2017-11-22 12:36:41 -0800785 $(call all-proto-files-under, libs/incident/proto) \
786 $(call all-proto-files-under, cmds/statsd/src)
Joe Onorato1754d742016-11-21 17:51:35 -0800787include $(BUILD_HOST_JAVA_LIBRARY)
788
Steven Timotius7ece0422017-08-03 13:37:26 -0700789# ==== java proto device library (for test only) ==============================
790include $(CLEAR_VARS)
791LOCAL_MODULE := platformprotosnano
Joe Onorato62c220b2017-11-18 20:32:56 -0800792LOCAL_MODULE_TAGS := tests
Steven Timotius7ece0422017-08-03 13:37:26 -0700793LOCAL_PROTOC_OPTIMIZE_TYPE := nano
794LOCAL_PROTOC_FLAGS := \
795 -Iexternal/protobuf/src
796LOCAL_PROTO_JAVA_OUTPUT_PARAMS := \
797 store_unknown_fields = true
798LOCAL_JAVA_LIBRARIES := core-oj core-libart
799LOCAL_SRC_FILES := \
Yi Jin437aa6e2018-01-10 11:34:26 -0800800 $(call all-proto-files-under, core/proto) \
801 $(call all-proto-files-under, libs/incident/proto/android/os)
Steven Timotius7ece0422017-08-03 13:37:26 -0700802include $(BUILD_STATIC_JAVA_LIBRARY)
803
Bart Searsa8cc0582015-05-07 03:23:20 +0000804
Joe Onorato62c220b2017-11-18 20:32:56 -0800805# ==== java proto device library (for test only) ==============================
806include $(CLEAR_VARS)
807LOCAL_MODULE := platformprotoslite
808LOCAL_MODULE_TAGS := tests
809LOCAL_PROTOC_OPTIMIZE_TYPE := lite
810LOCAL_PROTOC_FLAGS := \
811 -Iexternal/protobuf/src
812LOCAL_SRC_FILES := \
Yi Jin437aa6e2018-01-10 11:34:26 -0800813 $(call all-proto-files-under, core/proto) \
814 $(call all-proto-files-under, libs/incident/proto/android/os)
Joe Onorato62c220b2017-11-18 20:32:56 -0800815include $(BUILD_STATIC_JAVA_LIBRARY)
816
Bart Searsa8cc0582015-05-07 03:23:20 +0000817# Include subdirectory makefiles
818# ============================================================
819
820# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
821# team really wants is to build the stuff defined by this makefile.
822ifeq (,$(ONE_SHOT_MAKEFILE))
823include $(call first-makefiles-under,$(LOCAL_PATH))
824endif
825
Holly Jiuyu Sunbbc85802017-12-21 18:44:59 -0800826endif # ANDROID_BUILD_EMBEDDED
827