Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 1 | # |
| 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 | # |
| 16 | LOCAL_PATH := $(call my-dir) |
| 17 | |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 18 | # Load framework-specific path mappings used later in the build. |
| 19 | include $(LOCAL_PATH)/pathmap.mk |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 20 | |
| 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 |
| 28 | ifneq ($(ANDROID_BUILD_EMBEDDED),true) |
| 29 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 30 | # Copy AIDL files to be preprocessed and included in the SDK, |
| 31 | # specified relative to the root of the build tree. |
| 32 | # ============================================================ |
| 33 | include $(CLEAR_VARS) |
| 34 | |
Colin Cross | 77ebd08 | 2017-12-15 17:30:33 -0800 | [diff] [blame] | 35 | aidl_parcelables := |
| 36 | define 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 $$< $$@ |
| 43 | endef |
| 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 Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 48 | gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl |
Colin Cross | 77ebd08 | 2017-12-15 17:30:33 -0800 | [diff] [blame] | 49 | .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 Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 55 | |
| 56 | # the documentation |
| 57 | # ============================================================ |
| 58 | |
| 59 | # TODO: deal with com/google/android/googleapps |
| 60 | packages_to_document := \ |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 61 | android \ |
| 62 | javax/microedition/khronos \ |
| 63 | org/apache/http/conn \ |
| 64 | org/apache/http/params \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 65 | |
| 66 | # include definition of libcore_to_document |
| 67 | include libcore/Docs.mk |
| 68 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 69 | non_base_dirs := \ |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 70 | ../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 Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 74 | |
Paul Duffin | c08090f | 2017-06-29 14:58:43 +0100 | [diff] [blame] | 75 | framework_base_android_test_mock_src_files := \ |
Paul Duffin | 69516f4 | 2017-11-15 11:39:14 +0000 | [diff] [blame] | 76 | $(call all-java-files-under, test-mock/src/android/test/mock) |
Paul Duffin | c08090f | 2017-06-29 14:58:43 +0100 | [diff] [blame] | 77 | |
| 78 | framework_base_android_test_runner_excluding_mock_src_files := \ |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 79 | $(filter-out $(framework_base_android_test_mock_src_files), $(call all-java-files-under, test-runner/src)) |
Paul Duffin | c08090f | 2017-06-29 14:58:43 +0100 | [diff] [blame] | 80 | |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 81 | # Find all files in specific directories (relative to frameworks/base) |
| 82 | # to document and check apis |
| 83 | files_to_check_apis := \ |
| 84 | $(call find-other-java-files, \ |
Paul Duffin | 2141827 | 2017-11-16 15:47:05 +0000 | [diff] [blame^] | 85 | test-base/src \ |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 86 | $(non_base_dirs) \ |
| 87 | ) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 88 | |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 89 | # Find all files in specific packages that were used to compile |
| 90 | # framework.jar to document and check apis |
| 91 | files_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 Cross | 0c76095 | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 100 | files_to_check_apis_generated := \ |
| 101 | $(filter $(OUT_DIR)/%,\ |
| 102 | $(SOONG_FRAMEWORK_SRCS)) |
George Mount | f6be993 | 2015-12-03 07:39:55 -0800 | [diff] [blame] | 103 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 104 | # These are relative to frameworks/base |
| 105 | # FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 106 | files_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 Mount | f6be993 | 2015-12-03 07:39:55 -0800 | [diff] [blame] | 111 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 112 | # These are relative to frameworks/base |
| 113 | html_dirs := \ |
| 114 | $(FRAMEWORKS_BASE_SUBDIRS) \ |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 115 | $(non_base_dirs) \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 116 | |
| 117 | # Common sources for doc check and api check |
| 118 | common_src_files := \ |
| 119 | $(call find-other-html-files, $(html_dirs)) \ |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 120 | $(addprefix ../../, $(libcore_to_document)) \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 121 | |
| 122 | # These are relative to frameworks/base |
| 123 | framework_docs_LOCAL_SRC_FILES := \ |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 124 | $(files_to_document) \ |
| 125 | $(common_src_files) \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 126 | |
| 127 | # These are relative to frameworks/base |
| 128 | framework_docs_LOCAL_API_CHECK_SRC_FILES := \ |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 129 | $(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 Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 133 | |
| 134 | # This is used by ide.mk as the list of source files that are |
| 135 | # always included. |
| 136 | INTERNAL_SDK_SOURCE_DIRS := $(addprefix $(LOCAL_PATH)/,$(dirs_to_document)) |
| 137 | |
| 138 | framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \ |
| 139 | $(FRAMEWORKS_BASE_JAVA_SRC_DIRS) |
| 140 | |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 141 | framework_docs_LOCAL_SRCJARS := $(SOONG_FRAMEWORK_SRCJARS) |
| 142 | |
Colin Cross | 0c76095 | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 143 | framework_docs_LOCAL_GENERATED_SOURCES := \ |
| 144 | $(libcore_to_document_generated) \ |
| 145 | $(files_to_check_apis_generated) \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 146 | |
| 147 | framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES := \ |
Piotr Jastrzebski | cfa292e | 2015-02-17 16:58:52 +0000 | [diff] [blame] | 148 | core-oj \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 149 | core-libart \ |
| 150 | conscrypt \ |
| 151 | bouncycastle \ |
| 152 | okhttp \ |
| 153 | ext \ |
Rayhaan Jaufeerally | 2e47a6e | 2015-08-03 13:54:28 +0100 | [diff] [blame] | 154 | icu4j \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 155 | framework \ |
Paul Duffin | c08090f | 2017-06-29 14:58:43 +0100 | [diff] [blame] | 156 | voip-common \ |
| 157 | android.test.mock \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 158 | |
Alan Viverette | 2d362a5 | 2017-04-05 10:21:58 -0400 | [diff] [blame] | 159 | # 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 Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 161 | framework_docs_LOCAL_JAVA_LIBRARIES := \ |
| 162 | $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) \ |
| 163 | $(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES) |
| 164 | |
| 165 | framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 166 | framework_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. |
| 172 | framework_docs_LOCAL_DROIDDOC_OPTIONS := \ |
Jeff Sharkey | 0f3f60b | 2017-04-24 18:06:20 -0600 | [diff] [blame] | 173 | -android \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 174 | -knowntags ./frameworks/base/docs/knowntags.txt \ |
Narayan Kamath | 2c4f284 | 2015-07-27 14:02:11 +0100 | [diff] [blame] | 175 | -knowntags ./libcore/known_oj_tags.txt \ |
Jeff Sharkey | bfc4fcd | 2017-06-05 17:38:17 -0600 | [diff] [blame] | 176 | -manifest ./frameworks/base/core/res/AndroidManifest.xml \ |
Jeff Sharkey | bc4f48b | 2017-12-06 21:02:11 -0700 | [diff] [blame] | 177 | -hidePackage com.android.okhttp \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 178 | -hidePackage com.android.org.conscrypt \ |
Jeff Sharkey | bc4f48b | 2017-12-06 21:02:11 -0700 | [diff] [blame] | 179 | -hidePackage com.android.server \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 180 | -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 Fernandez | 1827e32 | 2015-08-12 19:45:22 -0700 | [diff] [blame] | 202 | -since $(SRC_API_DIR)/23.txt 23 \ |
Dirk Dougherty | 5f60f7c | 2016-06-14 16:26:28 -0700 | [diff] [blame] | 203 | -since $(SRC_API_DIR)/24.txt 24 \ |
Dirk Dougherty | 3376f58 | 2016-10-14 10:27:08 -0700 | [diff] [blame] | 204 | -since $(SRC_API_DIR)/25.txt 25 \ |
Dirk Dougherty | fdad0ba | 2017-06-09 14:43:32 -0700 | [diff] [blame] | 205 | -since $(SRC_API_DIR)/26.txt 26 \ |
Andrew Solovay | a6019b2 | 2017-10-06 14:27:20 -0700 | [diff] [blame] | 206 | -since $(SRC_API_DIR)/27.txt 27 \ |
Jeff Sharkey | 2337aec | 2017-12-06 21:12:23 -0700 | [diff] [blame] | 207 | -werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 \ |
Jeff Sharkey | 0f3f60b | 2017-04-24 18:06:20 -0600 | [diff] [blame] | 208 | -overview $(LOCAL_PATH)/core/java/overview.html \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 209 | |
| 210 | framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR:= \ |
| 211 | $(call intermediates-dir-for,JAVA_LIBRARIES,framework,,COMMON) |
| 212 | |
| 213 | framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= \ |
Alan Viverette | 2d362a5 | 2017-04-05 10:21:58 -0400 | [diff] [blame] | 214 | $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 215 | |
| 216 | framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES := \ |
Narayan Kamath | c21739a | 2015-07-14 13:39:23 +0100 | [diff] [blame] | 217 | frameworks/base/docs/knowntags.txt \ |
Colin Cross | 72d359f | 2017-10-27 10:46:53 -0700 | [diff] [blame] | 218 | $(libcore_to_document_generated) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 219 | |
| 220 | samples_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. |
| 225 | sample_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 Johns | 4cbe359 | 2015-05-27 14:50:51 -0700 | [diff] [blame] | 235 | -samplegroup System \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 236 | -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.com | dde8deb | 2016-08-29 18:36:50 -0700 | [diff] [blame] | 243 | framework_docs_SDK_VERSION:=7.0 |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 244 | # release version (ie "Release x") (full releases only) |
| 245 | framework_docs_SDK_REL_ID:=1 |
| 246 | |
| 247 | framework_docs_LOCAL_DROIDDOC_OPTIONS += \ |
Billy Lamberta | 75dbc8f | 2017-03-03 13:09:15 -0800 | [diff] [blame] | 248 | -hdf dac true \ |
Scott Main | f8cdfc8 | 2017-03-21 13:43:31 -0700 | [diff] [blame] | 249 | -hdf sdk.codename O \ |
| 250 | -hdf sdk.preview.version 1 \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 251 | -hdf sdk.version $(framework_docs_SDK_VERSION) \ |
| 252 | -hdf sdk.rel.id $(framework_docs_SDK_REL_ID) \ |
Scott Main | f8cdfc8 | 2017-03-21 13:43:31 -0700 | [diff] [blame] | 253 | -hdf sdk.preview 0 \ |
| 254 | -resourcesdir $(LOCAL_PATH)/docs/html/reference/images/ \ |
| 255 | -resourcesoutdir reference/android/images/ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 256 | |
Alan Viverette | 2d362a5 | 2017-04-05 10:21:58 -0400 | [diff] [blame] | 257 | # Federate Support Library references against local API file. |
| 258 | framework_docs_LOCAL_DROIDDOC_OPTIONS += \ |
| 259 | -federate SupportLib https://developer.android.com \ |
| 260 | -federationapi SupportLib prebuilts/sdk/current/support-api.txt |
| 261 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 262 | # ==== the api stubs and current.xml =========================== |
| 263 | include $(CLEAR_VARS) |
| 264 | |
| 265 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES) |
Colin Cross | 0c76095 | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 266 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 267 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 268 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) |
| 269 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 270 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 271 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 272 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR) |
| 273 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 274 | |
| 275 | LOCAL_MODULE := api-stubs |
| 276 | |
Ying Wang | 0f92a2e | 2015-07-16 14:20:22 -0700 | [diff] [blame] | 277 | LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_stubs_current_intermediates/src |
| 278 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 279 | LOCAL_DROIDDOC_OPTIONS:=\ |
| 280 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
smain@google.com | 534bfe1 | 2016-09-01 19:52:17 -0700 | [diff] [blame] | 281 | -referenceonly \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 282 | -api $(INTERNAL_PLATFORM_API_FILE) \ |
| 283 | -removedApi $(INTERNAL_PLATFORM_REMOVED_API_FILE) \ |
| 284 | -nodocs |
| 285 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 286 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 287 | |
| 288 | LOCAL_UNINSTALLABLE_MODULE := true |
| 289 | |
| 290 | include $(BUILD_DROIDDOC) |
| 291 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 292 | $(INTERNAL_PLATFORM_API_FILE): $(full_target) |
| 293 | $(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE)) |
| 294 | |
| 295 | # ==== the system api stubs =================================== |
| 296 | include $(CLEAR_VARS) |
| 297 | |
| 298 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES) |
Colin Cross | 0c76095 | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 299 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 300 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 301 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) |
| 302 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 303 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 304 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 305 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR) |
| 306 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 307 | |
| 308 | LOCAL_MODULE := system-api-stubs |
| 309 | |
Ying Wang | 0f92a2e | 2015-07-16 14:20:22 -0700 | [diff] [blame] | 310 | LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_system_stubs_current_intermediates/src |
| 311 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 312 | LOCAL_DROIDDOC_OPTIONS:=\ |
| 313 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
smain@google.com | 534bfe1 | 2016-09-01 19:52:17 -0700 | [diff] [blame] | 314 | -referenceonly \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 315 | -showAnnotation android.annotation.SystemApi \ |
| 316 | -api $(INTERNAL_PLATFORM_SYSTEM_API_FILE) \ |
| 317 | -removedApi $(INTERNAL_PLATFORM_SYSTEM_REMOVED_API_FILE) \ |
Jeff Sharkey | 05461c0 | 2017-05-09 19:01:09 -0600 | [diff] [blame] | 318 | -exactApi $(INTERNAL_PLATFORM_SYSTEM_EXACT_API_FILE) \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 319 | -nodocs |
| 320 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 321 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 322 | |
| 323 | LOCAL_UNINSTALLABLE_MODULE := true |
| 324 | |
| 325 | include $(BUILD_DROIDDOC) |
| 326 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 327 | $(INTERNAL_PLATFORM_SYSTEM_API_FILE): $(full_target) |
| 328 | $(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_SYSTEM_API_FILE)) |
| 329 | |
Michael Wright | b2b2c0e | 2015-11-06 15:21:13 +0000 | [diff] [blame] | 330 | # ==== the test api stubs =================================== |
| 331 | include $(CLEAR_VARS) |
| 332 | |
| 333 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES) |
Colin Cross | 0c76095 | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 334 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 335 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Michael Wright | b2b2c0e | 2015-11-06 15:21:13 +0000 | [diff] [blame] | 336 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) |
| 337 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 338 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 339 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 340 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR) |
| 341 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 342 | |
| 343 | LOCAL_MODULE := test-api-stubs |
| 344 | |
| 345 | LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src |
| 346 | |
| 347 | LOCAL_DROIDDOC_OPTIONS:=\ |
| 348 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
smain@google.com | 534bfe1 | 2016-09-01 19:52:17 -0700 | [diff] [blame] | 349 | -referenceonly \ |
Michael Wright | b2b2c0e | 2015-11-06 15:21:13 +0000 | [diff] [blame] | 350 | -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 Sharkey | 05461c0 | 2017-05-09 19:01:09 -0600 | [diff] [blame] | 354 | -exactApi $(INTERNAL_PLATFORM_TEST_EXACT_API_FILE) \ |
Michael Wright | b2b2c0e | 2015-11-06 15:21:13 +0000 | [diff] [blame] | 355 | -nodocs |
| 356 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 357 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
Michael Wright | b2b2c0e | 2015-11-06 15:21:13 +0000 | [diff] [blame] | 358 | |
| 359 | LOCAL_UNINSTALLABLE_MODULE := true |
| 360 | |
| 361 | include $(BUILD_DROIDDOC) |
| 362 | |
Michael Wright | b2b2c0e | 2015-11-06 15:21:13 +0000 | [diff] [blame] | 363 | $(INTERNAL_PLATFORM_TEST_API_FILE): $(full_target) |
| 364 | $(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_TEST_API_FILE)) |
| 365 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 366 | # ==== check javadoc comments but don't generate docs ======== |
| 367 | include $(CLEAR_VARS) |
| 368 | |
| 369 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | 0c76095 | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 370 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 371 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 372 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 373 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 374 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 375 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 376 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 377 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 378 | |
| 379 | LOCAL_MODULE := doc-comment-check |
| 380 | |
| 381 | LOCAL_DROIDDOC_OPTIONS:=\ |
| 382 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
smain@google.com | 534bfe1 | 2016-09-01 19:52:17 -0700 | [diff] [blame] | 383 | -referenceonly \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 384 | -parsecomments |
| 385 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 386 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 387 | |
| 388 | LOCAL_UNINSTALLABLE_MODULE := true |
| 389 | |
| 390 | include $(BUILD_DROIDDOC) |
| 391 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 392 | # Run this for checkbuild |
| 393 | checkbuild: doc-comment-check-docs |
| 394 | # Check comment when you are updating the API |
| 395 | update-api: doc-comment-check-docs |
| 396 | |
| 397 | # ==== static html in the sdk ================================== |
| 398 | include $(CLEAR_VARS) |
| 399 | |
| 400 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | 0c76095 | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 401 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 402 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 403 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 404 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 405 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 406 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 407 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 408 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 409 | |
| 410 | LOCAL_MODULE := offline-sdk |
| 411 | |
| 412 | LOCAL_DROIDDOC_OPTIONS:=\ |
| 413 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
| 414 | -offlinemode \ |
| 415 | -title "Android SDK" \ |
| 416 | -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \ |
smain@google.com | 00de8c5 | 2016-03-07 18:38:08 -0800 | [diff] [blame] | 417 | -sdkvalues $(OUT_DOCS) \ |
smain@google.com | 8562ab5 | 2016-06-14 17:11:57 -0700 | [diff] [blame] | 418 | -hdf android.whichdoc offline |
| 419 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 420 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
smain@google.com | 8562ab5 | 2016-06-14 17:11:57 -0700 | [diff] [blame] | 421 | |
| 422 | include $(BUILD_DROIDDOC) |
| 423 | |
| 424 | static_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.com | 8562ab5 | 2016-06-14 17:11:57 -0700 | [diff] [blame] | 431 | |
| 432 | |
| 433 | # ==== static html in the sdk ================================== |
| 434 | include $(CLEAR_VARS) |
| 435 | |
| 436 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | 0c76095 | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 437 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 438 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
smain@google.com | 8562ab5 | 2016-06-14 17:11:57 -0700 | [diff] [blame] | 439 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 440 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 441 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 442 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 443 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 444 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 445 | |
| 446 | LOCAL_MODULE := offline-sdk-referenceonly |
| 447 | |
| 448 | LOCAL_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.com | 00de8c5 | 2016-03-07 18:38:08 -0800 | [diff] [blame] | 454 | -hdf android.whichdoc offline \ |
Scott Main | f8cdfc8 | 2017-03-21 13:43:31 -0700 | [diff] [blame] | 455 | -referenceonly |
smain@google.com | 00de8c5 | 2016-03-07 18:38:08 -0800 | [diff] [blame] | 456 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 457 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
smain@google.com | 00de8c5 | 2016-03-07 18:38:08 -0800 | [diff] [blame] | 458 | |
| 459 | include $(BUILD_DROIDDOC) |
| 460 | |
| 461 | static_doc_index_redirect := $(out_dir)/index.html |
smain@google.com | 151833a | 2016-08-31 08:42:09 -0700 | [diff] [blame] | 462 | $(static_doc_index_redirect): $(LOCAL_PATH)/docs/docs-documentation-redirect.html |
Dan Willemsen | 98ff0b7 | 2016-03-23 00:42:44 -0700 | [diff] [blame] | 463 | $(copy-file-to-target) |
smain@google.com | 00de8c5 | 2016-03-07 18:38:08 -0800 | [diff] [blame] | 464 | |
smain@google.com | 2f2365d | 2016-09-21 14:05:50 -0700 | [diff] [blame] | 465 | static_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.com | 00de8c5 | 2016-03-07 18:38:08 -0800 | [diff] [blame] | 471 | $(full_target): $(static_doc_index_redirect) |
smain@google.com | 2f2365d | 2016-09-21 14:05:50 -0700 | [diff] [blame] | 472 | $(full_target): $(static_doc_properties) |
smain@google.com | 00de8c5 | 2016-03-07 18:38:08 -0800 | [diff] [blame] | 473 | |
smain@google.com | 7aca8be | 2016-03-10 14:13:30 -0800 | [diff] [blame] | 474 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 475 | # ==== docs for the web (on the androiddevdocs app engine server) ======================= |
| 476 | include $(CLEAR_VARS) |
| 477 | |
| 478 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | 0c76095 | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 479 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 480 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 481 | LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES) |
| 482 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 483 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 484 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 485 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 486 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 487 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 488 | LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl / |
| 489 | |
| 490 | LOCAL_MODULE := online-sdk |
| 491 | |
| 492 | LOCAL_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 Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 500 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 501 | |
| 502 | include $(BUILD_DROIDDOC) |
| 503 | |
| 504 | # ==== docs for the web (on the androiddevdocs app engine server) ======================= |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 505 | include $(CLEAR_VARS) |
| 506 | |
| 507 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | 0c76095 | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 508 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 509 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 510 | LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES) |
| 511 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 512 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 513 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 514 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 515 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 516 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 517 | LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl / |
| 518 | |
| 519 | LOCAL_MODULE := online-system-api-sdk |
| 520 | |
| 521 | LOCAL_DROIDDOC_OPTIONS:= \ |
| 522 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
smain@google.com | 534bfe1 | 2016-09-01 19:52:17 -0700 | [diff] [blame] | 523 | -referenceonly \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 524 | -showAnnotation android.annotation.SystemApi \ |
| 525 | -title "Android SDK - Including system APIs." \ |
| 526 | -toroot / \ |
Gina Dimino | 98ad888 | 2016-05-31 17:25:48 -0700 | [diff] [blame] | 527 | -hide 101 \ |
| 528 | -hide 104 \ |
| 529 | -hide 108 \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 530 | -hdf android.whichdoc online \ |
| 531 | $(sample_groups) \ |
| 532 | -hdf android.hasSamples true \ |
| 533 | -samplesdir $(samples_dir) |
| 534 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 535 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
Jeff Sharkey | 05461c0 | 2017-05-09 19:01:09 -0600 | [diff] [blame] | 536 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 537 | LOCAL_UNINSTALLABLE_MODULE := true |
| 538 | |
| 539 | include $(BUILD_DROIDDOC) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 540 | |
| 541 | # ==== docs for the web (on the devsite app engine server) ======================= |
| 542 | include $(CLEAR_VARS) |
| 543 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | 0c76095 | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 544 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 545 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 546 | LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES) |
| 547 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 548 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 549 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 550 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 551 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 552 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 553 | # specify a second html input dir and an output path relative to OUT_DIR) |
Dirk Dougherty | 3852c1f | 2016-04-10 02:05:09 -0700 | [diff] [blame] | 554 | LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl / |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 555 | |
| 556 | LOCAL_MODULE := ds |
| 557 | |
| 558 | LOCAL_DROIDDOC_OPTIONS:= \ |
| 559 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 560 | -toroot / \ |
| 561 | -hdf android.whichdoc online \ |
Dirk Dougherty | b042ab1 | 2016-06-14 16:26:28 -0700 | [diff] [blame] | 562 | -devsite \ |
Dirk Dougherty | 3852c1f | 2016-04-10 02:05:09 -0700 | [diff] [blame] | 563 | $(sample_groups) \ |
Dirk Dougherty | 3852c1f | 2016-04-10 02:05:09 -0700 | [diff] [blame] | 564 | -hdf android.hasSamples true \ |
| 565 | -samplesdir $(samples_dir) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 566 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 567 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 568 | |
| 569 | include $(BUILD_DROIDDOC) |
| 570 | |
Dirk Dougherty | b042ab1 | 2016-06-14 16:26:28 -0700 | [diff] [blame] | 571 | # ==== docs for the web (on the devsite app engine server) ======================= |
| 572 | include $(CLEAR_VARS) |
| 573 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | 0c76095 | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 574 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 575 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Dirk Dougherty | b042ab1 | 2016-06-14 16:26:28 -0700 | [diff] [blame] | 576 | LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES) |
| 577 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 578 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 579 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 580 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 581 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 582 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 583 | # specify a second html input dir and an output path relative to OUT_DIR) |
| 584 | LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl / |
| 585 | |
| 586 | LOCAL_MODULE := ds-static |
| 587 | |
| 588 | LOCAL_DROIDDOC_OPTIONS:= \ |
| 589 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
| 590 | -hdf android.whichdoc online \ |
| 591 | -staticonly \ |
| 592 | -toroot / \ |
| 593 | -devsite \ |
| 594 | -ignoreJdLinks |
| 595 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 596 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
Dirk Dougherty | b042ab1 | 2016-06-14 16:26:28 -0700 | [diff] [blame] | 597 | |
| 598 | include $(BUILD_DROIDDOC) |
| 599 | |
Dirk Dougherty | 7d47b55 | 2016-09-13 16:44:25 -0700 | [diff] [blame] | 600 | # ==== generates full navtree for resolving @links in ds postprocessing ==== |
| 601 | include $(CLEAR_VARS) |
| 602 | |
| 603 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | 0c76095 | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 604 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 605 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Dirk Dougherty | 7d47b55 | 2016-09-13 16:44:25 -0700 | [diff] [blame] | 606 | LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES) |
| 607 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 608 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 609 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 610 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 611 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 612 | |
| 613 | LOCAL_MODULE := ds-ref-navtree |
| 614 | |
| 615 | LOCAL_DROIDDOC_OPTIONS:= \ |
| 616 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
| 617 | -hdf android.whichdoc online \ |
| 618 | -toroot / \ |
| 619 | -atLinksNavtree \ |
| 620 | -navtreeonly |
| 621 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 622 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
Dirk Dougherty | 7d47b55 | 2016-09-13 16:44:25 -0700 | [diff] [blame] | 623 | |
| 624 | include $(BUILD_DROIDDOC) |
| 625 | |
Dirk Dougherty | 31ae1c51 | 2015-11-07 13:18:02 -0800 | [diff] [blame] | 626 | # ==== site updates for docs (on the androiddevdocs app engine server) ======================= |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 627 | include $(CLEAR_VARS) |
Dirk Dougherty | 31ae1c51 | 2015-11-07 13:18:02 -0800 | [diff] [blame] | 628 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 629 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | 0c76095 | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 630 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 631 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 632 | LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES) |
| 633 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 634 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 635 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
Dirk Dougherty | 31ae1c51 | 2015-11-07 13:18:02 -0800 | [diff] [blame] | 636 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 637 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 638 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
Dirk Dougherty | 31ae1c51 | 2015-11-07 13:18:02 -0800 | [diff] [blame] | 639 | LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl / |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 640 | |
Dirk Dougherty | 31ae1c51 | 2015-11-07 13:18:02 -0800 | [diff] [blame] | 641 | LOCAL_MODULE := online-sdk-dev |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 642 | |
| 643 | LOCAL_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 Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 651 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 652 | |
| 653 | include $(BUILD_DROIDDOC) |
| 654 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 655 | # ==== docs that have all of the stuff that's @hidden ======================= |
| 656 | include $(CLEAR_VARS) |
| 657 | |
| 658 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | 0c76095 | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 659 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | 5f4dcf6 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 660 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 661 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 662 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 663 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 664 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 665 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 666 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 667 | |
| 668 | LOCAL_MODULE := hidden |
| 669 | LOCAL_DROIDDOC_OPTIONS:=\ |
| 670 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
smain@google.com | 534bfe1 | 2016-09-01 19:52:17 -0700 | [diff] [blame] | 671 | -referenceonly \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 672 | -title "Android SDK - Including hidden APIs." |
| 673 | # -hidden |
| 674 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 675 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 676 | |
| 677 | include $(BUILD_DROIDDOC) |
| 678 | |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 679 | # ==== java proto host library ============================== |
| 680 | include $(CLEAR_VARS) |
| 681 | LOCAL_MODULE := platformprotos |
| 682 | LOCAL_PROTOC_OPTIMIZE_TYPE := full |
| 683 | LOCAL_PROTOC_FLAGS := \ |
| 684 | -Iexternal/protobuf/src |
| 685 | LOCAL_SOURCE_FILES_ALL_GENERATED := true |
| 686 | LOCAL_SRC_FILES := \ |
| 687 | $(call all-proto-files-under, core/proto) \ |
| 688 | $(call all-proto-files-under, libs/incident/proto) |
| 689 | include $(BUILD_HOST_JAVA_LIBRARY) |
| 690 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 691 | |
| 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. |
| 697 | ifeq (,$(ONE_SHOT_MAKEFILE)) |
| 698 | include $(call first-makefiles-under,$(LOCAL_PATH)) |
| 699 | endif |
| 700 | |
yuemingw | 9361a13 | 2017-11-24 18:20:11 +0000 | [diff] [blame] | 701 | endif # ANDROID_BUILD_EMBEDDED |