blob: cf6aa2a0c2989bac7bb18eafb31ca6f648e7d8c3 [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 Cross5f4dcf62017-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 Cross5f4dcf62017-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 Cross5f4dcf62017-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
Paul Duffinc08090f2017-06-29 14:58:43 +010075framework_base_android_test_mock_src_files := \
Paul Duffin69516f42017-11-15 11:39:14 +000076 $(call all-java-files-under, test-mock/src/android/test/mock)
Paul Duffinc08090f2017-06-29 14:58:43 +010077
78framework_base_android_test_runner_excluding_mock_src_files := \
Colin Cross5f4dcf62017-11-16 00:15:28 -080079 $(filter-out $(framework_base_android_test_mock_src_files), $(call all-java-files-under, test-runner/src))
Paul Duffinc08090f2017-06-29 14:58:43 +010080
Colin Cross5f4dcf62017-11-16 00:15:28 -080081# Find all files in specific directories (relative to frameworks/base)
82# to document and check apis
83files_to_check_apis := \
84 $(call find-other-java-files, \
Paul Duffin21418272017-11-16 15:47:05 +000085 test-base/src \
Colin Cross5f4dcf62017-11-16 00:15:28 -080086 $(non_base_dirs) \
87 )
Bart Searsa8cc0582015-05-07 03:23:20 +000088
Colin Cross5f4dcf62017-11-16 00:15:28 -080089# Find all files in specific packages that were used to compile
90# framework.jar to document and check apis
91files_to_check_apis += \
92 $(addprefix ../../,\
93 $(filter \
94 $(foreach dir,$(FRAMEWORKS_BASE_JAVA_SRC_DIRS),\
95 $(foreach package,$(packages_to_document),\
96 $(dir)/$(package)/%.java)),\
97 $(SOONG_FRAMEWORK_SRCS)))
98
99# Find all generated files that were used to compile framework.jar
Colin Cross0c760952017-12-04 13:45:19 -0800100files_to_check_apis_generated := \
101 $(filter $(OUT_DIR)/%,\
102 $(SOONG_FRAMEWORK_SRCS))
George Mountf6be9932015-12-03 07:39:55 -0800103
Bart Searsa8cc0582015-05-07 03:23:20 +0000104# These are relative to frameworks/base
105# FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
Colin Cross5f4dcf62017-11-16 00:15:28 -0800106files_to_document := \
107 $(files_to_check_apis) \
108 $(call find-other-java-files,\
109 $(addprefix ../../, $(FRAMEWORKS_DATA_BINDING_JAVA_SRC_DIRS)) \
110 test-runner/src)
George Mountf6be9932015-12-03 07:39:55 -0800111
Bart Searsa8cc0582015-05-07 03:23:20 +0000112# These are relative to frameworks/base
113html_dirs := \
114 $(FRAMEWORKS_BASE_SUBDIRS) \
Colin Cross5f4dcf62017-11-16 00:15:28 -0800115 $(non_base_dirs) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000116
117# Common sources for doc check and api check
118common_src_files := \
119 $(call find-other-html-files, $(html_dirs)) \
Colin Cross5f4dcf62017-11-16 00:15:28 -0800120 $(addprefix ../../, $(libcore_to_document)) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000121
122# These are relative to frameworks/base
123framework_docs_LOCAL_SRC_FILES := \
Colin Cross5f4dcf62017-11-16 00:15:28 -0800124 $(files_to_document) \
125 $(common_src_files) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000126
127# These are relative to frameworks/base
128framework_docs_LOCAL_API_CHECK_SRC_FILES := \
Colin Cross5f4dcf62017-11-16 00:15:28 -0800129 $(framework_base_android_test_mock_src_files) \
130 $(framework_base_android_test_runner_excluding_mock_src_files) \
131 $(files_to_check_apis) \
132 $(common_src_files) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000133
134# This is used by ide.mk as the list of source files that are
135# always included.
136INTERNAL_SDK_SOURCE_DIRS := $(addprefix $(LOCAL_PATH)/,$(dirs_to_document))
137
138framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
139 $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
140
Colin Cross5f4dcf62017-11-16 00:15:28 -0800141framework_docs_LOCAL_SRCJARS := $(SOONG_FRAMEWORK_SRCJARS)
142
Colin Cross0c760952017-12-04 13:45:19 -0800143framework_docs_LOCAL_GENERATED_SOURCES := \
144 $(libcore_to_document_generated) \
145 $(files_to_check_apis_generated) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000146
147framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES := \
Piotr Jastrzebskicfa292e2015-02-17 16:58:52 +0000148 core-oj \
Bart Searsa8cc0582015-05-07 03:23:20 +0000149 core-libart \
150 conscrypt \
151 bouncycastle \
152 okhttp \
153 ext \
Rayhaan Jaufeerally2e47a6e2015-08-03 13:54:28 +0100154 icu4j \
Bart Searsa8cc0582015-05-07 03:23:20 +0000155 framework \
Paul Duffinc08090f2017-06-29 14:58:43 +0100156 voip-common \
157 android.test.mock \
Bart Searsa8cc0582015-05-07 03:23:20 +0000158
Alan Viverette2d362a52017-04-05 10:21:58 -0400159# Platform docs can refer to Support Library APIs, but we don't actually build
160# them as part of the docs target, so we need to include them on the classpath.
Bart Searsa8cc0582015-05-07 03:23:20 +0000161framework_docs_LOCAL_JAVA_LIBRARIES := \
162 $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) \
163 $(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES)
164
165framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
166framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
167# The since flag (-since N.xml API_LEVEL) is used to add API Level information
168# to the reference documentation. Must be in order of oldest to newest.
169#
170# Conscrypt (com.android.org.conscrypt) is an implementation detail and should
171# not be referenced in the documentation.
172framework_docs_LOCAL_DROIDDOC_OPTIONS := \
Jeff Sharkey0f3f60b2017-04-24 18:06:20 -0600173 -android \
Bart Searsa8cc0582015-05-07 03:23:20 +0000174 -knowntags ./frameworks/base/docs/knowntags.txt \
Narayan Kamath2c4f2842015-07-27 14:02:11 +0100175 -knowntags ./libcore/known_oj_tags.txt \
Jeff Sharkeybfc4fcd2017-06-05 17:38:17 -0600176 -manifest ./frameworks/base/core/res/AndroidManifest.xml \
Jeff Sharkeybc4f48b2017-12-06 21:02:11 -0700177 -hidePackage com.android.okhttp \
Bart Searsa8cc0582015-05-07 03:23:20 +0000178 -hidePackage com.android.org.conscrypt \
Jeff Sharkeybc4f48b2017-12-06 21:02:11 -0700179 -hidePackage com.android.server \
Bart Searsa8cc0582015-05-07 03:23:20 +0000180 -since $(SRC_API_DIR)/1.xml 1 \
181 -since $(SRC_API_DIR)/2.xml 2 \
182 -since $(SRC_API_DIR)/3.xml 3 \
183 -since $(SRC_API_DIR)/4.xml 4 \
184 -since $(SRC_API_DIR)/5.xml 5 \
185 -since $(SRC_API_DIR)/6.xml 6 \
186 -since $(SRC_API_DIR)/7.xml 7 \
187 -since $(SRC_API_DIR)/8.xml 8 \
188 -since $(SRC_API_DIR)/9.xml 9 \
189 -since $(SRC_API_DIR)/10.xml 10 \
190 -since $(SRC_API_DIR)/11.xml 11 \
191 -since $(SRC_API_DIR)/12.xml 12 \
192 -since $(SRC_API_DIR)/13.xml 13 \
193 -since $(SRC_API_DIR)/14.txt 14 \
194 -since $(SRC_API_DIR)/15.txt 15 \
195 -since $(SRC_API_DIR)/16.txt 16 \
196 -since $(SRC_API_DIR)/17.txt 17 \
197 -since $(SRC_API_DIR)/18.txt 18 \
198 -since $(SRC_API_DIR)/19.txt 19 \
199 -since $(SRC_API_DIR)/20.txt 20 \
200 -since $(SRC_API_DIR)/21.txt 21 \
201 -since $(SRC_API_DIR)/22.txt 22 \
Joe Fernandez1827e322015-08-12 19:45:22 -0700202 -since $(SRC_API_DIR)/23.txt 23 \
Dirk Dougherty5f60f7c2016-06-14 16:26:28 -0700203 -since $(SRC_API_DIR)/24.txt 24 \
Dirk Dougherty3376f582016-10-14 10:27:08 -0700204 -since $(SRC_API_DIR)/25.txt 25 \
Dirk Doughertyfdad0ba2017-06-09 14:43:32 -0700205 -since $(SRC_API_DIR)/26.txt 26 \
Andrew Solovaya6019b22017-10-06 14:27:20 -0700206 -since $(SRC_API_DIR)/27.txt 27 \
Jeff Sharkey2337aec2017-12-06 21:12:23 -0700207 -werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 \
Jeff Sharkey0f3f60b2017-04-24 18:06:20 -0600208 -overview $(LOCAL_PATH)/core/java/overview.html \
Bart Searsa8cc0582015-05-07 03:23:20 +0000209
210framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR:= \
211 $(call intermediates-dir-for,JAVA_LIBRARIES,framework,,COMMON)
212
213framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= \
Alan Viverette2d362a52017-04-05 10:21:58 -0400214 $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
Bart Searsa8cc0582015-05-07 03:23:20 +0000215
216framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES := \
Narayan Kamathc21739a2015-07-14 13:39:23 +0100217 frameworks/base/docs/knowntags.txt \
Colin Cross72d359f2017-10-27 10:46:53 -0700218 $(libcore_to_document_generated)
Bart Searsa8cc0582015-05-07 03:23:20 +0000219
220samples_dir := development/samples/browseable
221
222# Whitelist of valid groups, used for default TOC grouping. Each sample must
223# belong to one (and only one) group. Assign samples to groups by setting
224# a sample.group var to one of these groups in the sample's _index.jd.
225sample_groups := -samplegroup Admin \
226 -samplegroup Background \
227 -samplegroup Connectivity \
228 -samplegroup Content \
229 -samplegroup Input \
230 -samplegroup Media \
231 -samplegroup Notification \
232 -samplegroup RenderScript \
233 -samplegroup Security \
234 -samplegroup Sensors \
Trevor Johns4cbe3592015-05-27 14:50:51 -0700235 -samplegroup System \
Bart Searsa8cc0582015-05-07 03:23:20 +0000236 -samplegroup Testing \
237 -samplegroup UI \
238 -samplegroup Views \
239 -samplegroup Wearable
240
241## SDK version identifiers used in the published docs
242 # major[.minor] version for current SDK. (full releases only)
smain@google.comdde8deb2016-08-29 18:36:50 -0700243framework_docs_SDK_VERSION:=7.0
Bart Searsa8cc0582015-05-07 03:23:20 +0000244 # release version (ie "Release x") (full releases only)
245framework_docs_SDK_REL_ID:=1
246
247framework_docs_LOCAL_DROIDDOC_OPTIONS += \
Billy Lamberta75dbc8f2017-03-03 13:09:15 -0800248 -hdf dac true \
Scott Mainf8cdfc82017-03-21 13:43:31 -0700249 -hdf sdk.codename O \
250 -hdf sdk.preview.version 1 \
Bart Searsa8cc0582015-05-07 03:23:20 +0000251 -hdf sdk.version $(framework_docs_SDK_VERSION) \
252 -hdf sdk.rel.id $(framework_docs_SDK_REL_ID) \
Scott Mainf8cdfc82017-03-21 13:43:31 -0700253 -hdf sdk.preview 0 \
254 -resourcesdir $(LOCAL_PATH)/docs/html/reference/images/ \
255 -resourcesoutdir reference/android/images/
Bart Searsa8cc0582015-05-07 03:23:20 +0000256
Alan Viverette2d362a52017-04-05 10:21:58 -0400257# Federate Support Library references against local API file.
258framework_docs_LOCAL_DROIDDOC_OPTIONS += \
259 -federate SupportLib https://developer.android.com \
260 -federationapi SupportLib prebuilts/sdk/current/support-api.txt
261
Bart Searsa8cc0582015-05-07 03:23:20 +0000262# ==== the api stubs and current.xml ===========================
263include $(CLEAR_VARS)
264
265LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
Colin Cross0c760952017-12-04 13:45:19 -0800266LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Cross5f4dcf62017-11-16 00:15:28 -0800267LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000268LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
269LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
270LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
271LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
272LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
273LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
274
275LOCAL_MODULE := api-stubs
276
Ying Wang0f92a2e2015-07-16 14:20:22 -0700277LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_stubs_current_intermediates/src
278
Bart Searsa8cc0582015-05-07 03:23:20 +0000279LOCAL_DROIDDOC_OPTIONS:=\
280 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700281 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000282 -api $(INTERNAL_PLATFORM_API_FILE) \
283 -removedApi $(INTERNAL_PLATFORM_REMOVED_API_FILE) \
284 -nodocs
285
Scott Main15b85172017-02-21 14:30:58 -0800286LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000287
288LOCAL_UNINSTALLABLE_MODULE := true
289
290include $(BUILD_DROIDDOC)
291
Bart Searsa8cc0582015-05-07 03:23:20 +0000292$(INTERNAL_PLATFORM_API_FILE): $(full_target)
293$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE))
294
295# ==== the system api stubs ===================================
296include $(CLEAR_VARS)
297
298LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
Colin Cross0c760952017-12-04 13:45:19 -0800299LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Cross5f4dcf62017-11-16 00:15:28 -0800300LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000301LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
302LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
303LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
304LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
305LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
306LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
307
308LOCAL_MODULE := system-api-stubs
309
Ying Wang0f92a2e2015-07-16 14:20:22 -0700310LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_system_stubs_current_intermediates/src
311
Bart Searsa8cc0582015-05-07 03:23:20 +0000312LOCAL_DROIDDOC_OPTIONS:=\
313 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700314 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000315 -showAnnotation android.annotation.SystemApi \
316 -api $(INTERNAL_PLATFORM_SYSTEM_API_FILE) \
317 -removedApi $(INTERNAL_PLATFORM_SYSTEM_REMOVED_API_FILE) \
Jeff Sharkey05461c02017-05-09 19:01:09 -0600318 -exactApi $(INTERNAL_PLATFORM_SYSTEM_EXACT_API_FILE) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000319 -nodocs
320
Scott Main15b85172017-02-21 14:30:58 -0800321LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000322
323LOCAL_UNINSTALLABLE_MODULE := true
324
325include $(BUILD_DROIDDOC)
326
Bart Searsa8cc0582015-05-07 03:23:20 +0000327$(INTERNAL_PLATFORM_SYSTEM_API_FILE): $(full_target)
328$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_SYSTEM_API_FILE))
329
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000330# ==== the test api stubs ===================================
331include $(CLEAR_VARS)
332
333LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
Colin Cross0c760952017-12-04 13:45:19 -0800334LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Cross5f4dcf62017-11-16 00:15:28 -0800335LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000336LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
337LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
338LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
339LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
340LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
341LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
342
343LOCAL_MODULE := test-api-stubs
344
345LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src
346
347LOCAL_DROIDDOC_OPTIONS:=\
348 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700349 -referenceonly \
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000350 -stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src \
351 -showAnnotation android.annotation.TestApi \
352 -api $(INTERNAL_PLATFORM_TEST_API_FILE) \
353 -removedApi $(INTERNAL_PLATFORM_TEST_REMOVED_API_FILE) \
Jeff Sharkey05461c02017-05-09 19:01:09 -0600354 -exactApi $(INTERNAL_PLATFORM_TEST_EXACT_API_FILE) \
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000355 -nodocs
356
Scott Main15b85172017-02-21 14:30:58 -0800357LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000358
359LOCAL_UNINSTALLABLE_MODULE := true
360
361include $(BUILD_DROIDDOC)
362
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000363$(INTERNAL_PLATFORM_TEST_API_FILE): $(full_target)
364$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_TEST_API_FILE))
365
Bart Searsa8cc0582015-05-07 03:23:20 +0000366# ==== check javadoc comments but don't generate docs ========
367include $(CLEAR_VARS)
368
369LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Cross0c760952017-12-04 13:45:19 -0800370LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Cross5f4dcf62017-11-16 00:15:28 -0800371LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000372LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
373LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
374LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
375LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
376LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
377LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
378
379LOCAL_MODULE := doc-comment-check
380
381LOCAL_DROIDDOC_OPTIONS:=\
382 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700383 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000384 -parsecomments
385
Scott Main15b85172017-02-21 14:30:58 -0800386LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000387
388LOCAL_UNINSTALLABLE_MODULE := true
389
390include $(BUILD_DROIDDOC)
391
Bart Searsa8cc0582015-05-07 03:23:20 +0000392# Run this for checkbuild
393checkbuild: doc-comment-check-docs
394# Check comment when you are updating the API
395update-api: doc-comment-check-docs
396
397# ==== static html in the sdk ==================================
398include $(CLEAR_VARS)
399
400LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Cross0c760952017-12-04 13:45:19 -0800401LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Cross5f4dcf62017-11-16 00:15:28 -0800402LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000403LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
404LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
405LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
406LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
407LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
408LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
409
410LOCAL_MODULE := offline-sdk
411
412LOCAL_DROIDDOC_OPTIONS:=\
413 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
414 -offlinemode \
415 -title "Android SDK" \
416 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
smain@google.com00de8c52016-03-07 18:38:08 -0800417 -sdkvalues $(OUT_DOCS) \
smain@google.com8562ab52016-06-14 17:11:57 -0700418 -hdf android.whichdoc offline
419
Scott Main15b85172017-02-21 14:30:58 -0800420LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
smain@google.com8562ab52016-06-14 17:11:57 -0700421
422include $(BUILD_DROIDDOC)
423
424static_doc_index_redirect := $(out_dir)/index.html
425$(static_doc_index_redirect): \
426 $(LOCAL_PATH)/docs/docs-preview-index.html | $(ACP)
427 $(hide) mkdir -p $(dir $@)
428 $(hide) $(ACP) $< $@
429
430$(full_target): $(static_doc_index_redirect)
smain@google.com8562ab52016-06-14 17:11:57 -0700431
432
433# ==== static html in the sdk ==================================
434include $(CLEAR_VARS)
435
436LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Cross0c760952017-12-04 13:45:19 -0800437LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Cross5f4dcf62017-11-16 00:15:28 -0800438LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
smain@google.com8562ab52016-06-14 17:11:57 -0700439LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
440LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
441LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
442LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
443LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
444LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
445
446LOCAL_MODULE := offline-sdk-referenceonly
447
448LOCAL_DROIDDOC_OPTIONS:=\
449 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
450 -offlinemode \
451 -title "Android SDK" \
452 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
453 -sdkvalues $(OUT_DOCS) \
smain@google.com00de8c52016-03-07 18:38:08 -0800454 -hdf android.whichdoc offline \
Scott Mainf8cdfc82017-03-21 13:43:31 -0700455 -referenceonly
smain@google.com00de8c52016-03-07 18:38:08 -0800456
Scott Main15b85172017-02-21 14:30:58 -0800457LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
smain@google.com00de8c52016-03-07 18:38:08 -0800458
459include $(BUILD_DROIDDOC)
460
461static_doc_index_redirect := $(out_dir)/index.html
smain@google.com151833a2016-08-31 08:42:09 -0700462$(static_doc_index_redirect): $(LOCAL_PATH)/docs/docs-documentation-redirect.html
Dan Willemsen98ff0b72016-03-23 00:42:44 -0700463 $(copy-file-to-target)
smain@google.com00de8c52016-03-07 18:38:08 -0800464
smain@google.com2f2365d2016-09-21 14:05:50 -0700465static_doc_properties := $(out_dir)/source.properties
466$(static_doc_properties): \
467 $(LOCAL_PATH)/docs/source.properties | $(ACP)
468 $(hide) mkdir -p $(dir $@)
469 $(hide) $(ACP) $< $@
470
smain@google.com00de8c52016-03-07 18:38:08 -0800471$(full_target): $(static_doc_index_redirect)
smain@google.com2f2365d2016-09-21 14:05:50 -0700472$(full_target): $(static_doc_properties)
smain@google.com00de8c52016-03-07 18:38:08 -0800473
smain@google.com7aca8be2016-03-10 14:13:30 -0800474
Bart Searsa8cc0582015-05-07 03:23:20 +0000475# ==== docs for the web (on the androiddevdocs app engine server) =======================
476include $(CLEAR_VARS)
477
478LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Cross0c760952017-12-04 13:45:19 -0800479LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Cross5f4dcf62017-11-16 00:15:28 -0800480LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000481LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
482LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
483LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
484LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
485LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
486LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
487LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
488LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
489
490LOCAL_MODULE := online-sdk
491
492LOCAL_DROIDDOC_OPTIONS:= \
493 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
494 -toroot / \
495 -hdf android.whichdoc online \
496 $(sample_groups) \
497 -hdf android.hasSamples true \
498 -samplesdir $(samples_dir)
499
Scott Main15b85172017-02-21 14:30:58 -0800500LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000501
502include $(BUILD_DROIDDOC)
503
504# ==== docs for the web (on the androiddevdocs app engine server) =======================
Bart Searsa8cc0582015-05-07 03:23:20 +0000505include $(CLEAR_VARS)
506
507LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Cross0c760952017-12-04 13:45:19 -0800508LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Cross5f4dcf62017-11-16 00:15:28 -0800509LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000510LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
511LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
512LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
513LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
514LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
515LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
516LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
517LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
518
519LOCAL_MODULE := online-system-api-sdk
520
521LOCAL_DROIDDOC_OPTIONS:= \
522 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700523 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000524 -showAnnotation android.annotation.SystemApi \
525 -title "Android SDK - Including system APIs." \
526 -toroot / \
Gina Dimino98ad8882016-05-31 17:25:48 -0700527 -hide 101 \
528 -hide 104 \
529 -hide 108 \
Bart Searsa8cc0582015-05-07 03:23:20 +0000530 -hdf android.whichdoc online \
531 $(sample_groups) \
532 -hdf android.hasSamples true \
533 -samplesdir $(samples_dir)
534
Scott Main15b85172017-02-21 14:30:58 -0800535LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Jeff Sharkey05461c02017-05-09 19:01:09 -0600536
Bart Searsa8cc0582015-05-07 03:23:20 +0000537LOCAL_UNINSTALLABLE_MODULE := true
538
539include $(BUILD_DROIDDOC)
Bart Searsa8cc0582015-05-07 03:23:20 +0000540
541# ==== docs for the web (on the devsite app engine server) =======================
542include $(CLEAR_VARS)
543LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Cross0c760952017-12-04 13:45:19 -0800544LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Cross5f4dcf62017-11-16 00:15:28 -0800545LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000546LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
547LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
548LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
549LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
550LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
551LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
552LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
553# specify a second html input dir and an output path relative to OUT_DIR)
Dirk Dougherty3852c1f2016-04-10 02:05:09 -0700554LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
Bart Searsa8cc0582015-05-07 03:23:20 +0000555
556LOCAL_MODULE := ds
557
558LOCAL_DROIDDOC_OPTIONS:= \
559 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000560 -toroot / \
561 -hdf android.whichdoc online \
Dirk Doughertyb042ab12016-06-14 16:26:28 -0700562 -devsite \
Dirk Dougherty3852c1f2016-04-10 02:05:09 -0700563 $(sample_groups) \
Dirk Dougherty3852c1f2016-04-10 02:05:09 -0700564 -hdf android.hasSamples true \
565 -samplesdir $(samples_dir)
Bart Searsa8cc0582015-05-07 03:23:20 +0000566
Scott Main15b85172017-02-21 14:30:58 -0800567LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000568
569include $(BUILD_DROIDDOC)
570
Dirk Doughertyb042ab12016-06-14 16:26:28 -0700571# ==== docs for the web (on the devsite app engine server) =======================
572include $(CLEAR_VARS)
573LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Cross0c760952017-12-04 13:45:19 -0800574LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Cross5f4dcf62017-11-16 00:15:28 -0800575LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Dirk Doughertyb042ab12016-06-14 16:26:28 -0700576LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
577LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
578LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
579LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
580LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
581LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
582LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
583# specify a second html input dir and an output path relative to OUT_DIR)
584LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
585
586LOCAL_MODULE := ds-static
587
588LOCAL_DROIDDOC_OPTIONS:= \
589 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
590 -hdf android.whichdoc online \
591 -staticonly \
592 -toroot / \
593 -devsite \
594 -ignoreJdLinks
595
Scott Main15b85172017-02-21 14:30:58 -0800596LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Dirk Doughertyb042ab12016-06-14 16:26:28 -0700597
598include $(BUILD_DROIDDOC)
599
Dirk Dougherty7d47b552016-09-13 16:44:25 -0700600# ==== generates full navtree for resolving @links in ds postprocessing ====
601include $(CLEAR_VARS)
602
603LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Cross0c760952017-12-04 13:45:19 -0800604LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Cross5f4dcf62017-11-16 00:15:28 -0800605LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Dirk Dougherty7d47b552016-09-13 16:44:25 -0700606LOCAL_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_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
611LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
612
613LOCAL_MODULE := ds-ref-navtree
614
615LOCAL_DROIDDOC_OPTIONS:= \
616 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
617 -hdf android.whichdoc online \
618 -toroot / \
619 -atLinksNavtree \
620 -navtreeonly
621
Scott Main15b85172017-02-21 14:30:58 -0800622LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Dirk Dougherty7d47b552016-09-13 16:44:25 -0700623
624include $(BUILD_DROIDDOC)
625
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800626# ==== site updates for docs (on the androiddevdocs app engine server) =======================
Bart Searsa8cc0582015-05-07 03:23:20 +0000627include $(CLEAR_VARS)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800628
Bart Searsa8cc0582015-05-07 03:23:20 +0000629LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Cross0c760952017-12-04 13:45:19 -0800630LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Cross5f4dcf62017-11-16 00:15:28 -0800631LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000632LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
633LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
634LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
635LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800636LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
Bart Searsa8cc0582015-05-07 03:23:20 +0000637LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
638LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800639LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
Bart Searsa8cc0582015-05-07 03:23:20 +0000640
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800641LOCAL_MODULE := online-sdk-dev
Bart Searsa8cc0582015-05-07 03:23:20 +0000642
643LOCAL_DROIDDOC_OPTIONS:= \
644 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
645 -toroot / \
646 -hdf android.whichdoc online \
647 $(sample_groups) \
648 -hdf android.hasSamples true \
649 -samplesdir $(samples_dir)
650
Scott Main15b85172017-02-21 14:30:58 -0800651LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000652
653include $(BUILD_DROIDDOC)
654
Bart Searsa8cc0582015-05-07 03:23:20 +0000655# ==== docs that have all of the stuff that's @hidden =======================
656include $(CLEAR_VARS)
657
658LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Cross0c760952017-12-04 13:45:19 -0800659LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Cross5f4dcf62017-11-16 00:15:28 -0800660LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000661LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
662LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
663LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
664LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
665LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
666LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
667
668LOCAL_MODULE := hidden
669LOCAL_DROIDDOC_OPTIONS:=\
670 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700671 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000672 -title "Android SDK - Including hidden APIs."
673# -hidden
674
Scott Main15b85172017-02-21 14:30:58 -0800675LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000676
677include $(BUILD_DROIDDOC)
678
Joe Onorato1754d742016-11-21 17:51:35 -0800679# ==== java proto host library ==============================
680include $(CLEAR_VARS)
681LOCAL_MODULE := platformprotos
682LOCAL_PROTOC_OPTIMIZE_TYPE := full
683LOCAL_PROTOC_FLAGS := \
684 -Iexternal/protobuf/src
685LOCAL_SOURCE_FILES_ALL_GENERATED := true
686LOCAL_SRC_FILES := \
687 $(call all-proto-files-under, core/proto) \
688 $(call all-proto-files-under, libs/incident/proto)
689include $(BUILD_HOST_JAVA_LIBRARY)
690
Bart Searsa8cc0582015-05-07 03:23:20 +0000691
692# Include subdirectory makefiles
693# ============================================================
694
695# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
696# team really wants is to build the stuff defined by this makefile.
697ifeq (,$(ONE_SHOT_MAKEFILE))
698include $(call first-makefiles-under,$(LOCAL_PATH))
699endif
700
yuemingw9361a132017-11-24 18:20:11 +0000701endif # ANDROID_BUILD_EMBEDDED