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 | cf3a0b5 | 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) |
Colin Cross | fdbe7d1 | 2018-02-09 11:24:14 -0800 | [diff] [blame] | 39 | $$(gen): $(call java-lib-header-files,$1) $(HOST_OUT_EXECUTABLES)/sdkparcelables |
Colin Cross | 77ebd08 | 2017-12-15 17:30:33 -0800 | [diff] [blame] | 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 | cf3a0b5 | 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 | cf3a0b5 | 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 | |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 75 | # Find all files in specific directories (relative to frameworks/base) |
| 76 | # to document and check apis |
| 77 | files_to_check_apis := \ |
| 78 | $(call find-other-java-files, \ |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 79 | $(non_base_dirs) \ |
| 80 | ) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 81 | |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 82 | # Find all files in specific packages that were used to compile |
| 83 | # framework.jar to document and check apis |
| 84 | files_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 Cross | bd200ce | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 93 | files_to_check_apis_generated := \ |
| 94 | $(filter $(OUT_DIR)/%,\ |
| 95 | $(SOONG_FRAMEWORK_SRCS)) |
George Mount | f6be993 | 2015-12-03 07:39:55 -0800 | [diff] [blame] | 96 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 97 | # These are relative to frameworks/base |
| 98 | # FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 99 | files_to_document := \ |
| 100 | $(files_to_check_apis) \ |
| 101 | $(call find-other-java-files,\ |
Paul Duffin | 187a48d | 2017-12-13 14:34:31 +0000 | [diff] [blame] | 102 | test-base/src \ |
Paul Duffin | 9f6282d | 2017-12-15 15:49:08 +0000 | [diff] [blame] | 103 | test-mock/src \ |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 104 | test-runner/src) |
George Mount | f6be993 | 2015-12-03 07:39:55 -0800 | [diff] [blame] | 105 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 106 | # These are relative to frameworks/base |
| 107 | html_dirs := \ |
| 108 | $(FRAMEWORKS_BASE_SUBDIRS) \ |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 109 | $(non_base_dirs) \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 110 | |
| 111 | # Common sources for doc check and api check |
| 112 | common_src_files := \ |
| 113 | $(call find-other-html-files, $(html_dirs)) \ |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 114 | $(addprefix ../../, $(libcore_to_document)) \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 115 | |
| 116 | # These are relative to frameworks/base |
| 117 | framework_docs_LOCAL_SRC_FILES := \ |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 118 | $(files_to_document) \ |
| 119 | $(common_src_files) \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 120 | |
| 121 | # These are relative to frameworks/base |
| 122 | framework_docs_LOCAL_API_CHECK_SRC_FILES := \ |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 123 | $(files_to_check_apis) \ |
| 124 | $(common_src_files) \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 125 | |
| 126 | # This is used by ide.mk as the list of source files that are |
| 127 | # always included. |
| 128 | INTERNAL_SDK_SOURCE_DIRS := $(addprefix $(LOCAL_PATH)/,$(dirs_to_document)) |
| 129 | |
| 130 | framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \ |
| 131 | $(FRAMEWORKS_BASE_JAVA_SRC_DIRS) |
| 132 | |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 133 | framework_docs_LOCAL_SRCJARS := $(SOONG_FRAMEWORK_SRCJARS) |
| 134 | |
Colin Cross | bd200ce | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 135 | framework_docs_LOCAL_GENERATED_SOURCES := \ |
| 136 | $(libcore_to_document_generated) \ |
| 137 | $(files_to_check_apis_generated) \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 138 | |
| 139 | framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES := \ |
Piotr Jastrzebski | cfa292e | 2015-02-17 16:58:52 +0000 | [diff] [blame] | 140 | core-oj \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 141 | core-libart \ |
| 142 | conscrypt \ |
| 143 | bouncycastle \ |
| 144 | okhttp \ |
| 145 | ext \ |
| 146 | framework \ |
Paul Duffin | c08090f | 2017-06-29 14:58:43 +0100 | [diff] [blame] | 147 | voip-common \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 148 | |
Alan Viverette | 9ca513e | 2017-04-05 10:21:58 -0400 | [diff] [blame] | 149 | # Platform docs can refer to Support Library APIs, but we don't actually build |
| 150 | # 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] | 151 | framework_docs_LOCAL_JAVA_LIBRARIES := \ |
| 152 | $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) \ |
| 153 | $(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES) |
| 154 | |
| 155 | framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 156 | framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html |
| 157 | # The since flag (-since N.xml API_LEVEL) is used to add API Level information |
| 158 | # to the reference documentation. Must be in order of oldest to newest. |
| 159 | # |
| 160 | # Conscrypt (com.android.org.conscrypt) is an implementation detail and should |
| 161 | # not be referenced in the documentation. |
| 162 | framework_docs_LOCAL_DROIDDOC_OPTIONS := \ |
Jeff Sharkey | 0f3f60b | 2017-04-24 18:06:20 -0600 | [diff] [blame] | 163 | -android \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 164 | -knowntags ./frameworks/base/docs/knowntags.txt \ |
Narayan Kamath | 2c4f284 | 2015-07-27 14:02:11 +0100 | [diff] [blame] | 165 | -knowntags ./libcore/known_oj_tags.txt \ |
Jeff Sharkey | bfc4fcd | 2017-06-05 17:38:17 -0600 | [diff] [blame] | 166 | -manifest ./frameworks/base/core/res/AndroidManifest.xml \ |
Tobias Thierer | dda16e8 | 2018-03-05 22:55:32 +0000 | [diff] [blame] | 167 | -hidePackage com.android.internal \ |
| 168 | -hidePackage com.android.internal.util \ |
Neil Fuller | 57157fb | 2017-11-24 15:58:38 +0000 | [diff] [blame] | 169 | -hidePackage com.android.okhttp \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 170 | -hidePackage com.android.org.conscrypt \ |
Anton Hansson | 6a9e726 | 2018-04-19 16:23:53 +0100 | [diff] [blame] | 171 | -hidePackage com.android.server |
| 172 | |
| 173 | # Convert an sdk level to a "since" argument. |
| 174 | since-arg = -since $(wildcard $(HISTORICAL_SDK_VERSIONS_ROOT)/$(1)/public/api/android.*) $(1) |
| 175 | |
| 176 | finalized_sdks := $(patsubst $(HISTORICAL_SDK_VERSIONS_ROOT)/%/public/api/android.xml,%,\ |
| 177 | $(wildcard $(HISTORICAL_SDK_VERSIONS_ROOT)/*/public/api/android.xml)) |
| 178 | finalized_sdks += $(patsubst $(HISTORICAL_SDK_VERSIONS_ROOT)/%/public/api/android.txt,%,\ |
| 179 | $(wildcard $(HISTORICAL_SDK_VERSIONS_ROOT)/*/public/api/android.txt)) |
| 180 | finalized_sdks := $(call numerically_sort,$(finalized_sdks)) |
| 181 | |
| 182 | framework_docs_LOCAL_DROIDDOC_OPTIONS += $(foreach sdk,$(finalized_sdks),$(call since-arg,$(sdk))) |
| 183 | ifneq ($(PLATFORM_VERSION_CODENAME),REL) |
| 184 | framework_docs_LOCAL_DROIDDOC_OPTIONS += \ |
| 185 | -since ./frameworks/base/api/current.txt $(PLATFORM_VERSION_CODENAME) |
| 186 | endif |
| 187 | framework_docs_LOCAL_DROIDDOC_OPTIONS += \ |
Jeff Sharkey | c204c22 | 2017-11-27 15:02:10 -0700 | [diff] [blame] | 188 | -werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 \ |
Anton Hansson | 6a9e726 | 2018-04-19 16:23:53 +0100 | [diff] [blame] | 189 | -overview $(LOCAL_PATH)/core/java/overview.html |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 190 | |
| 191 | framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR:= \ |
| 192 | $(call intermediates-dir-for,JAVA_LIBRARIES,framework,,COMMON) |
| 193 | |
| 194 | framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= \ |
Alan Viverette | 9ca513e | 2017-04-05 10:21:58 -0400 | [diff] [blame] | 195 | $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 196 | |
| 197 | framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES := \ |
Narayan Kamath | c21739a | 2015-07-14 13:39:23 +0100 | [diff] [blame] | 198 | frameworks/base/docs/knowntags.txt \ |
Colin Cross | 72d359f | 2017-10-27 10:46:53 -0700 | [diff] [blame] | 199 | $(libcore_to_document_generated) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 200 | |
| 201 | samples_dir := development/samples/browseable |
| 202 | |
| 203 | # Whitelist of valid groups, used for default TOC grouping. Each sample must |
| 204 | # belong to one (and only one) group. Assign samples to groups by setting |
| 205 | # a sample.group var to one of these groups in the sample's _index.jd. |
| 206 | sample_groups := -samplegroup Admin \ |
| 207 | -samplegroup Background \ |
| 208 | -samplegroup Connectivity \ |
| 209 | -samplegroup Content \ |
| 210 | -samplegroup Input \ |
| 211 | -samplegroup Media \ |
| 212 | -samplegroup Notification \ |
| 213 | -samplegroup RenderScript \ |
| 214 | -samplegroup Security \ |
| 215 | -samplegroup Sensors \ |
Trevor Johns | 4cbe359 | 2015-05-27 14:50:51 -0700 | [diff] [blame] | 216 | -samplegroup System \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 217 | -samplegroup Testing \ |
| 218 | -samplegroup UI \ |
| 219 | -samplegroup Views \ |
| 220 | -samplegroup Wearable |
| 221 | |
| 222 | ## SDK version identifiers used in the published docs |
| 223 | # major[.minor] version for current SDK. (full releases only) |
smain@google.com | dde8deb | 2016-08-29 18:36:50 -0700 | [diff] [blame] | 224 | framework_docs_SDK_VERSION:=7.0 |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 225 | # release version (ie "Release x") (full releases only) |
| 226 | framework_docs_SDK_REL_ID:=1 |
| 227 | |
| 228 | framework_docs_LOCAL_DROIDDOC_OPTIONS += \ |
Billy Lamberta | 75dbc8f | 2017-03-03 13:09:15 -0800 | [diff] [blame] | 229 | -hdf dac true \ |
Scott Main | f8cdfc8 | 2017-03-21 13:43:31 -0700 | [diff] [blame] | 230 | -hdf sdk.codename O \ |
| 231 | -hdf sdk.preview.version 1 \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 232 | -hdf sdk.version $(framework_docs_SDK_VERSION) \ |
| 233 | -hdf sdk.rel.id $(framework_docs_SDK_REL_ID) \ |
Scott Main | f8cdfc8 | 2017-03-21 13:43:31 -0700 | [diff] [blame] | 234 | -hdf sdk.preview 0 \ |
| 235 | -resourcesdir $(LOCAL_PATH)/docs/html/reference/images/ \ |
| 236 | -resourcesoutdir reference/android/images/ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 237 | |
Alan Viverette | 9ca513e | 2017-04-05 10:21:58 -0400 | [diff] [blame] | 238 | # Federate Support Library references against local API file. |
| 239 | framework_docs_LOCAL_DROIDDOC_OPTIONS += \ |
| 240 | -federate SupportLib https://developer.android.com \ |
| 241 | -federationapi SupportLib prebuilts/sdk/current/support-api.txt |
| 242 | |
Alan Viverette | 67b51d4 | 2018-03-28 17:10:20 -0400 | [diff] [blame] | 243 | # Federate AndroidX references against local API file. |
| 244 | framework_docs_LOCAL_DROIDDOC_OPTIONS += \ |
| 245 | -federate AndroidX https://developer.android.com \ |
| 246 | -federationapi AndroidX prebuilts/sdk/current/androidx-api.txt |
| 247 | |
Anton Hansson | cfa700d | 2018-04-23 17:34:18 +0100 | [diff] [blame] | 248 | # Get the highest numbered api txt for the given api level. |
| 249 | # $(1): the api level (e.g. public, system) |
| 250 | define highest_sdk_txt |
| 251 | $(HISTORICAL_SDK_VERSIONS_ROOT)/$(lastword $(call numerically_sort, \ |
| 252 | $(patsubst \ |
| 253 | $(HISTORICAL_SDK_VERSIONS_ROOT)/%,\ |
| 254 | %,\ |
| 255 | $(wildcard $(HISTORICAL_SDK_VERSIONS_ROOT)/*/$(1)/api/android.txt)\ |
| 256 | ) \ |
| 257 | )) |
| 258 | endef |
| 259 | |
Jeff Sharkey | d2bf31c | 2017-11-29 13:14:27 -0700 | [diff] [blame] | 260 | # ==== Public API diff =========================== |
Alan Viverette | 6b7354c | 2017-07-13 17:10:14 -0400 | [diff] [blame] | 261 | include $(CLEAR_VARS) |
| 262 | |
| 263 | LOCAL_SRC_FILES := $(framework_docs_LOCAL_API_CHECK_SRC_FILES) |
Colin Cross | bd200ce | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 264 | LOCAL_GENERATED_SOURCES := $(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 265 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Alan Viverette | 6b7354c | 2017-07-13 17:10:14 -0400 | [diff] [blame] | 266 | LOCAL_JAVA_LIBRARIES := $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) |
| 267 | LOCAL_MODULE_CLASS := $(framework_docs_LOCAL_MODULE_CLASS) |
| 268 | LOCAL_ADDITIONAL_JAVA_DIR := $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR) |
| 269 | LOCAL_ADDITIONAL_DEPENDENCIES := \ |
| 270 | $(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) \ |
| 271 | $(INTERNAL_PLATFORM_API_FILE) |
| 272 | |
| 273 | LOCAL_MODULE := offline-sdk-referenceonly |
| 274 | |
Anton Hansson | cfa700d | 2018-04-23 17:34:18 +0100 | [diff] [blame] | 275 | # Basename, because apidiff adds .txt internally. |
| 276 | LOCAL_APIDIFF_OLDAPI := $(basename $(call highest_sdk_txt,public)) |
Alan Viverette | 6b7354c | 2017-07-13 17:10:14 -0400 | [diff] [blame] | 277 | LOCAL_APIDIFF_NEWAPI := $(LOCAL_PATH)/../../$(basename $(INTERNAL_PLATFORM_API_FILE)) |
| 278 | |
| 279 | include $(BUILD_APIDIFF) |
| 280 | |
Jeff Sharkey | c8dc254 | 2017-12-08 14:52:37 -0700 | [diff] [blame] | 281 | # Hack to get diffs included in docs output |
| 282 | out_zip := $(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip |
| 283 | $(out_zip): $(full_target) |
| 284 | |
Jeff Sharkey | d2bf31c | 2017-11-29 13:14:27 -0700 | [diff] [blame] | 285 | # ==== System API diff =========================== |
| 286 | include $(CLEAR_VARS) |
| 287 | |
| 288 | LOCAL_SRC_FILES := $(framework_docs_LOCAL_API_CHECK_SRC_FILES) |
Colin Cross | bd200ce | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 289 | LOCAL_GENERATED_SOURCES := $(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 290 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Jeff Sharkey | d2bf31c | 2017-11-29 13:14:27 -0700 | [diff] [blame] | 291 | LOCAL_JAVA_LIBRARIES := $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) |
| 292 | LOCAL_MODULE_CLASS := $(framework_docs_LOCAL_MODULE_CLASS) |
| 293 | LOCAL_ADDITIONAL_JAVA_DIR := $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR) |
| 294 | LOCAL_ADDITIONAL_DEPENDENCIES := \ |
| 295 | $(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) \ |
| 296 | $(INTERNAL_PLATFORM_SYSTEM_API_FILE) |
| 297 | |
| 298 | LOCAL_MODULE := offline-system-sdk-referenceonly |
| 299 | |
Anton Hansson | cfa700d | 2018-04-23 17:34:18 +0100 | [diff] [blame] | 300 | # Basename, because apidiff adds .txt internally. |
| 301 | LOCAL_APIDIFF_OLDAPI := $(basename $(call highest_sdk_txt,system)) |
Jeff Sharkey | d2bf31c | 2017-11-29 13:14:27 -0700 | [diff] [blame] | 302 | LOCAL_APIDIFF_NEWAPI := $(LOCAL_PATH)/../../$(basename $(INTERNAL_PLATFORM_SYSTEM_API_FILE)) |
| 303 | |
| 304 | include $(BUILD_APIDIFF) |
| 305 | |
Jeff Sharkey | c8dc254 | 2017-12-08 14:52:37 -0700 | [diff] [blame] | 306 | # Hack to get diffs included in docs output |
| 307 | out_zip := $(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip |
| 308 | $(out_zip): $(full_target) |
| 309 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 310 | $(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE)) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 311 | $(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_SYSTEM_API_FILE)) |
Michael Wright | b2b2c0e | 2015-11-06 15:21:13 +0000 | [diff] [blame] | 312 | $(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_TEST_API_FILE)) |
| 313 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 314 | # ==== check javadoc comments but don't generate docs ======== |
| 315 | include $(CLEAR_VARS) |
| 316 | |
| 317 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | bd200ce | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 318 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 319 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 320 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 321 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 322 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 323 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 324 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 325 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 326 | |
| 327 | LOCAL_MODULE := doc-comment-check |
| 328 | |
| 329 | LOCAL_DROIDDOC_OPTIONS:=\ |
| 330 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
smain@google.com | 534bfe1 | 2016-09-01 19:52:17 -0700 | [diff] [blame] | 331 | -referenceonly \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 332 | -parsecomments |
| 333 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 334 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 335 | |
| 336 | LOCAL_UNINSTALLABLE_MODULE := true |
| 337 | |
| 338 | include $(BUILD_DROIDDOC) |
| 339 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 340 | # Run this for checkbuild |
| 341 | checkbuild: doc-comment-check-docs |
| 342 | # Check comment when you are updating the API |
| 343 | update-api: doc-comment-check-docs |
| 344 | |
| 345 | # ==== static html in the sdk ================================== |
| 346 | include $(CLEAR_VARS) |
| 347 | |
| 348 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | bd200ce | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 349 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 350 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 351 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 352 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 353 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 354 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 355 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 356 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 357 | |
| 358 | LOCAL_MODULE := offline-sdk |
| 359 | |
| 360 | LOCAL_DROIDDOC_OPTIONS:=\ |
| 361 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
| 362 | -offlinemode \ |
| 363 | -title "Android SDK" \ |
| 364 | -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \ |
smain@google.com | 00de8c5 | 2016-03-07 18:38:08 -0800 | [diff] [blame] | 365 | -sdkvalues $(OUT_DOCS) \ |
smain@google.com | 8562ab5 | 2016-06-14 17:11:57 -0700 | [diff] [blame] | 366 | -hdf android.whichdoc offline |
| 367 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 368 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
smain@google.com | 8562ab5 | 2016-06-14 17:11:57 -0700 | [diff] [blame] | 369 | |
| 370 | include $(BUILD_DROIDDOC) |
| 371 | |
| 372 | static_doc_index_redirect := $(out_dir)/index.html |
| 373 | $(static_doc_index_redirect): \ |
| 374 | $(LOCAL_PATH)/docs/docs-preview-index.html | $(ACP) |
| 375 | $(hide) mkdir -p $(dir $@) |
| 376 | $(hide) $(ACP) $< $@ |
| 377 | |
| 378 | $(full_target): $(static_doc_index_redirect) |
smain@google.com | 8562ab5 | 2016-06-14 17:11:57 -0700 | [diff] [blame] | 379 | |
| 380 | |
Jeff Sharkey | d2bf31c | 2017-11-29 13:14:27 -0700 | [diff] [blame] | 381 | # ==== Public API static reference docs ================================== |
smain@google.com | 8562ab5 | 2016-06-14 17:11:57 -0700 | [diff] [blame] | 382 | include $(CLEAR_VARS) |
| 383 | |
| 384 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | bd200ce | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 385 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 386 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
smain@google.com | 8562ab5 | 2016-06-14 17:11:57 -0700 | [diff] [blame] | 387 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 388 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 389 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 390 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 391 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 392 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 393 | |
| 394 | LOCAL_MODULE := offline-sdk-referenceonly |
| 395 | |
| 396 | LOCAL_DROIDDOC_OPTIONS:=\ |
| 397 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
| 398 | -offlinemode \ |
| 399 | -title "Android SDK" \ |
| 400 | -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \ |
| 401 | -sdkvalues $(OUT_DOCS) \ |
smain@google.com | 00de8c5 | 2016-03-07 18:38:08 -0800 | [diff] [blame] | 402 | -hdf android.whichdoc offline \ |
Scott Main | f8cdfc8 | 2017-03-21 13:43:31 -0700 | [diff] [blame] | 403 | -referenceonly |
smain@google.com | 00de8c5 | 2016-03-07 18:38:08 -0800 | [diff] [blame] | 404 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 405 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
smain@google.com | 00de8c5 | 2016-03-07 18:38:08 -0800 | [diff] [blame] | 406 | |
| 407 | include $(BUILD_DROIDDOC) |
| 408 | |
| 409 | static_doc_index_redirect := $(out_dir)/index.html |
smain@google.com | 151833a | 2016-08-31 08:42:09 -0700 | [diff] [blame] | 410 | $(static_doc_index_redirect): $(LOCAL_PATH)/docs/docs-documentation-redirect.html |
Dan Willemsen | 98ff0b7 | 2016-03-23 00:42:44 -0700 | [diff] [blame] | 411 | $(copy-file-to-target) |
smain@google.com | 00de8c5 | 2016-03-07 18:38:08 -0800 | [diff] [blame] | 412 | |
smain@google.com | 2f2365d | 2016-09-21 14:05:50 -0700 | [diff] [blame] | 413 | static_doc_properties := $(out_dir)/source.properties |
| 414 | $(static_doc_properties): \ |
| 415 | $(LOCAL_PATH)/docs/source.properties | $(ACP) |
| 416 | $(hide) mkdir -p $(dir $@) |
| 417 | $(hide) $(ACP) $< $@ |
| 418 | |
smain@google.com | 00de8c5 | 2016-03-07 18:38:08 -0800 | [diff] [blame] | 419 | $(full_target): $(static_doc_index_redirect) |
smain@google.com | 2f2365d | 2016-09-21 14:05:50 -0700 | [diff] [blame] | 420 | $(full_target): $(static_doc_properties) |
smain@google.com | 00de8c5 | 2016-03-07 18:38:08 -0800 | [diff] [blame] | 421 | |
smain@google.com | 7aca8be | 2016-03-10 14:13:30 -0800 | [diff] [blame] | 422 | |
Jeff Sharkey | d2bf31c | 2017-11-29 13:14:27 -0700 | [diff] [blame] | 423 | # ==== System API static reference docs ================================== |
| 424 | include $(CLEAR_VARS) |
| 425 | |
| 426 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | bd200ce | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 427 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 428 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Jeff Sharkey | d2bf31c | 2017-11-29 13:14:27 -0700 | [diff] [blame] | 429 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 430 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 431 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 432 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 433 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 434 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 435 | |
| 436 | LOCAL_MODULE := offline-system-sdk-referenceonly |
| 437 | |
| 438 | LOCAL_DROIDDOC_OPTIONS:=\ |
| 439 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
| 440 | -hide 101 -hide 104 -hide 108 \ |
| 441 | -showAnnotation android.annotation.SystemApi \ |
| 442 | -offlinemode \ |
| 443 | -title "Android System SDK" \ |
| 444 | -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \ |
| 445 | -sdkvalues $(OUT_DOCS) \ |
| 446 | -hdf android.whichdoc offline \ |
| 447 | -referenceonly |
| 448 | |
| 449 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
| 450 | |
| 451 | include $(BUILD_DROIDDOC) |
| 452 | |
| 453 | static_doc_index_redirect := $(out_dir)/index.html |
| 454 | $(static_doc_index_redirect): $(LOCAL_PATH)/docs/docs-documentation-redirect.html |
| 455 | $(copy-file-to-target) |
| 456 | |
| 457 | static_doc_properties := $(out_dir)/source.properties |
| 458 | $(static_doc_properties): \ |
| 459 | $(LOCAL_PATH)/docs/source.properties | $(ACP) |
| 460 | $(hide) mkdir -p $(dir $@) |
| 461 | $(hide) $(ACP) $< $@ |
| 462 | |
| 463 | $(full_target): $(static_doc_index_redirect) |
| 464 | $(full_target): $(static_doc_properties) |
| 465 | $(full_target): $(framework_built) |
| 466 | |
| 467 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 468 | # ==== docs for the web (on the androiddevdocs app engine server) ======================= |
| 469 | include $(CLEAR_VARS) |
| 470 | |
| 471 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | bd200ce | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 472 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 473 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 474 | LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES) |
| 475 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 476 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 477 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 478 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 479 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 480 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 481 | LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl / |
| 482 | |
| 483 | LOCAL_MODULE := online-sdk |
| 484 | |
| 485 | LOCAL_DROIDDOC_OPTIONS:= \ |
| 486 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
| 487 | -toroot / \ |
| 488 | -hdf android.whichdoc online \ |
| 489 | $(sample_groups) \ |
| 490 | -hdf android.hasSamples true \ |
| 491 | -samplesdir $(samples_dir) |
| 492 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 493 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 494 | |
| 495 | include $(BUILD_DROIDDOC) |
| 496 | |
| 497 | # ==== docs for the web (on the androiddevdocs app engine server) ======================= |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 498 | include $(CLEAR_VARS) |
| 499 | |
| 500 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | bd200ce | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 501 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 502 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 503 | LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES) |
| 504 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 505 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 506 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 507 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 508 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 509 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 510 | LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl / |
| 511 | |
| 512 | LOCAL_MODULE := online-system-api-sdk |
| 513 | |
| 514 | LOCAL_DROIDDOC_OPTIONS:= \ |
| 515 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
smain@google.com | 534bfe1 | 2016-09-01 19:52:17 -0700 | [diff] [blame] | 516 | -referenceonly \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 517 | -showAnnotation android.annotation.SystemApi \ |
| 518 | -title "Android SDK - Including system APIs." \ |
| 519 | -toroot / \ |
Gina Dimino | 98ad888 | 2016-05-31 17:25:48 -0700 | [diff] [blame] | 520 | -hide 101 \ |
| 521 | -hide 104 \ |
| 522 | -hide 108 \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 523 | -hdf android.whichdoc online \ |
| 524 | $(sample_groups) \ |
| 525 | -hdf android.hasSamples true \ |
| 526 | -samplesdir $(samples_dir) |
| 527 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 528 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
Jeff Sharkey | 05461c0 | 2017-05-09 19:01:09 -0600 | [diff] [blame] | 529 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 530 | LOCAL_UNINSTALLABLE_MODULE := true |
| 531 | |
| 532 | include $(BUILD_DROIDDOC) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 533 | |
| 534 | # ==== docs for the web (on the devsite app engine server) ======================= |
| 535 | include $(CLEAR_VARS) |
| 536 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | bd200ce | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 537 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 538 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 539 | LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES) |
| 540 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 541 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 542 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 543 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 544 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 545 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 546 | # 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] | 547 | LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl / |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 548 | |
| 549 | LOCAL_MODULE := ds |
| 550 | |
| 551 | LOCAL_DROIDDOC_OPTIONS:= \ |
| 552 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 553 | -toroot / \ |
| 554 | -hdf android.whichdoc online \ |
Dirk Dougherty | b042ab1 | 2016-06-14 16:26:28 -0700 | [diff] [blame] | 555 | -devsite \ |
Scott Main | 4f9b48c | 2017-12-19 13:43:45 -0800 | [diff] [blame] | 556 | -yamlV2 \ |
Dirk Dougherty | 3852c1f | 2016-04-10 02:05:09 -0700 | [diff] [blame] | 557 | $(sample_groups) \ |
Dirk Dougherty | 3852c1f | 2016-04-10 02:05:09 -0700 | [diff] [blame] | 558 | -hdf android.hasSamples true \ |
| 559 | -samplesdir $(samples_dir) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 560 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 561 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 562 | |
| 563 | include $(BUILD_DROIDDOC) |
| 564 | |
Dirk Dougherty | b042ab1 | 2016-06-14 16:26:28 -0700 | [diff] [blame] | 565 | # ==== docs for the web (on the devsite app engine server) ======================= |
| 566 | include $(CLEAR_VARS) |
| 567 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | bd200ce | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 568 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 569 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Dirk Dougherty | b042ab1 | 2016-06-14 16:26:28 -0700 | [diff] [blame] | 570 | LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES) |
| 571 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 572 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 573 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 574 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 575 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 576 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 577 | # specify a second html input dir and an output path relative to OUT_DIR) |
| 578 | LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl / |
| 579 | |
| 580 | LOCAL_MODULE := ds-static |
| 581 | |
| 582 | LOCAL_DROIDDOC_OPTIONS:= \ |
| 583 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
| 584 | -hdf android.whichdoc online \ |
| 585 | -staticonly \ |
| 586 | -toroot / \ |
| 587 | -devsite \ |
| 588 | -ignoreJdLinks |
| 589 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 590 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
Dirk Dougherty | b042ab1 | 2016-06-14 16:26:28 -0700 | [diff] [blame] | 591 | |
| 592 | include $(BUILD_DROIDDOC) |
| 593 | |
Dirk Dougherty | 7d47b55 | 2016-09-13 16:44:25 -0700 | [diff] [blame] | 594 | # ==== generates full navtree for resolving @links in ds postprocessing ==== |
| 595 | include $(CLEAR_VARS) |
| 596 | |
| 597 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | bd200ce | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 598 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 599 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Dirk Dougherty | 7d47b55 | 2016-09-13 16:44:25 -0700 | [diff] [blame] | 600 | LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES) |
| 601 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 602 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 603 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 604 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 605 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 606 | |
| 607 | LOCAL_MODULE := ds-ref-navtree |
| 608 | |
| 609 | LOCAL_DROIDDOC_OPTIONS:= \ |
| 610 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
| 611 | -hdf android.whichdoc online \ |
| 612 | -toroot / \ |
| 613 | -atLinksNavtree \ |
| 614 | -navtreeonly |
| 615 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 616 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
Dirk Dougherty | 7d47b55 | 2016-09-13 16:44:25 -0700 | [diff] [blame] | 617 | |
| 618 | include $(BUILD_DROIDDOC) |
| 619 | |
Dirk Dougherty | 31ae1c51 | 2015-11-07 13:18:02 -0800 | [diff] [blame] | 620 | # ==== site updates for docs (on the androiddevdocs app engine server) ======================= |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 621 | include $(CLEAR_VARS) |
Dirk Dougherty | 31ae1c51 | 2015-11-07 13:18:02 -0800 | [diff] [blame] | 622 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 623 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | bd200ce | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 624 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 625 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 626 | LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES) |
| 627 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 628 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 629 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
Dirk Dougherty | 31ae1c51 | 2015-11-07 13:18:02 -0800 | [diff] [blame] | 630 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 631 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 632 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
Dirk Dougherty | 31ae1c51 | 2015-11-07 13:18:02 -0800 | [diff] [blame] | 633 | LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl / |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 634 | |
Dirk Dougherty | 31ae1c51 | 2015-11-07 13:18:02 -0800 | [diff] [blame] | 635 | LOCAL_MODULE := online-sdk-dev |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 636 | |
| 637 | LOCAL_DROIDDOC_OPTIONS:= \ |
| 638 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
| 639 | -toroot / \ |
| 640 | -hdf android.whichdoc online \ |
| 641 | $(sample_groups) \ |
| 642 | -hdf android.hasSamples true \ |
| 643 | -samplesdir $(samples_dir) |
| 644 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 645 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 646 | |
| 647 | include $(BUILD_DROIDDOC) |
| 648 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 649 | # ==== docs that have all of the stuff that's @hidden ======================= |
| 650 | include $(CLEAR_VARS) |
| 651 | |
| 652 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
Colin Cross | bd200ce | 2017-12-04 13:45:19 -0800 | [diff] [blame] | 653 | LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES) |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 654 | LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS) |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 655 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 656 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 657 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 658 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 659 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 660 | LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) |
| 661 | |
| 662 | LOCAL_MODULE := hidden |
| 663 | LOCAL_DROIDDOC_OPTIONS:=\ |
| 664 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
smain@google.com | 534bfe1 | 2016-09-01 19:52:17 -0700 | [diff] [blame] | 665 | -referenceonly \ |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 666 | -title "Android SDK - Including hidden APIs." |
| 667 | # -hidden |
| 668 | |
Scott Main | 15b8517 | 2017-02-21 14:30:58 -0800 | [diff] [blame] | 669 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 670 | |
| 671 | include $(BUILD_DROIDDOC) |
| 672 | |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 673 | # ==== java proto host library ============================== |
| 674 | include $(CLEAR_VARS) |
| 675 | LOCAL_MODULE := platformprotos |
| 676 | LOCAL_PROTOC_OPTIMIZE_TYPE := full |
| 677 | LOCAL_PROTOC_FLAGS := \ |
| 678 | -Iexternal/protobuf/src |
| 679 | LOCAL_SOURCE_FILES_ALL_GENERATED := true |
| 680 | LOCAL_SRC_FILES := \ |
Mike Ma | da3a295 | 2017-11-13 12:06:45 -0800 | [diff] [blame] | 681 | cmds/am/proto/instrumentation_data.proto \ |
Primiano Tucci | e4d4491 | 2018-01-10 12:14:50 +0000 | [diff] [blame] | 682 | cmds/statsd/src/perfetto/perfetto_config.proto \ |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 683 | $(call all-proto-files-under, core/proto) \ |
Chenjie Yu | 15176cd | 2017-11-22 12:36:41 -0800 | [diff] [blame] | 684 | $(call all-proto-files-under, libs/incident/proto) \ |
| 685 | $(call all-proto-files-under, cmds/statsd/src) |
Andreas Gampe | 3e429f3 | 2018-02-15 15:12:38 -0800 | [diff] [blame] | 686 | # b/72714520 |
| 687 | LOCAL_ERROR_PRONE_FLAGS := -Xep:MissingOverride:OFF |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 688 | include $(BUILD_HOST_JAVA_LIBRARY) |
| 689 | |
Steven Timotius | 7ece042 | 2017-08-03 13:37:26 -0700 | [diff] [blame] | 690 | # ==== java proto device library (for test only) ============================== |
| 691 | include $(CLEAR_VARS) |
| 692 | LOCAL_MODULE := platformprotosnano |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 693 | LOCAL_MODULE_TAGS := tests |
Steven Timotius | 7ece042 | 2017-08-03 13:37:26 -0700 | [diff] [blame] | 694 | LOCAL_PROTOC_OPTIMIZE_TYPE := nano |
| 695 | LOCAL_PROTOC_FLAGS := \ |
| 696 | -Iexternal/protobuf/src |
| 697 | LOCAL_PROTO_JAVA_OUTPUT_PARAMS := \ |
| 698 | store_unknown_fields = true |
Jiyong Park | f004839 | 2018-02-12 21:57:59 +0900 | [diff] [blame] | 699 | LOCAL_SDK_VERSION := current |
Steven Timotius | 7ece042 | 2017-08-03 13:37:26 -0700 | [diff] [blame] | 700 | LOCAL_SRC_FILES := \ |
Yi Jin | 437aa6e | 2018-01-10 11:34:26 -0800 | [diff] [blame] | 701 | $(call all-proto-files-under, core/proto) \ |
| 702 | $(call all-proto-files-under, libs/incident/proto/android/os) |
Steven Timotius | 7ece042 | 2017-08-03 13:37:26 -0700 | [diff] [blame] | 703 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 704 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 705 | |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 706 | # ==== java proto device library (for test only) ============================== |
| 707 | include $(CLEAR_VARS) |
| 708 | LOCAL_MODULE := platformprotoslite |
| 709 | LOCAL_MODULE_TAGS := tests |
| 710 | LOCAL_PROTOC_OPTIMIZE_TYPE := lite |
| 711 | LOCAL_PROTOC_FLAGS := \ |
| 712 | -Iexternal/protobuf/src |
| 713 | LOCAL_SRC_FILES := \ |
Yi Jin | 437aa6e | 2018-01-10 11:34:26 -0800 | [diff] [blame] | 714 | $(call all-proto-files-under, core/proto) \ |
| 715 | $(call all-proto-files-under, libs/incident/proto/android/os) |
Andreas Gampe | 93b64c9 | 2018-01-30 18:50:34 -0800 | [diff] [blame] | 716 | # Protos have lots of MissingOverride and similar. |
| 717 | LOCAL_ERROR_PRONE_FLAGS := -XepDisableAllChecks |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 718 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 719 | |
David Brazdil | 0649c8d | 2018-01-22 22:23:13 +0000 | [diff] [blame] | 720 | # ==== hiddenapi lists ======================================= |
| 721 | |
David Brazdil | 36bbf12 | 2018-03-28 11:28:39 +0100 | [diff] [blame] | 722 | # Copy light and dark greylist over into the build folder. |
David Brazdil | f16ac00 | 2018-01-26 11:13:35 +0000 | [diff] [blame] | 723 | # This is for ART buildbots which need to mock these lists and have alternative |
| 724 | # rules for building them. Other rules in the build system should depend on the |
| 725 | # files in the build folder. |
| 726 | |
David Brazdil | 0585533 | 2018-04-25 11:15:07 +0100 | [diff] [blame] | 727 | # Merge light greylist from multiple files: |
| 728 | # (1) manual light greylist |
| 729 | # (2) list of usages from vendor apps |
| 730 | # (3) list of removed APIs |
| 731 | # @removed does not imply private in Doclava. We must take the subset also |
| 732 | # in PRIVATE_API. |
| 733 | # (4) list of serialization APIs |
| 734 | # Automatically adds all methods which match the signatures in |
| 735 | # REGEX_SERIALIZATION. These are greylisted in order to allow applications |
| 736 | # to write their own serializers. |
David Brazdil | 357170b1 | 2018-03-26 16:02:23 +0100 | [diff] [blame] | 737 | $(INTERNAL_PLATFORM_HIDDENAPI_LIGHT_GREYLIST): REGEX_SERIALIZATION := \ |
| 738 | "readObject\(Ljava/io/ObjectInputStream;\)V" \ |
| 739 | "readObjectNoData\(\)V" \ |
| 740 | "readResolve\(\)Ljava/lang/Object;" \ |
| 741 | "serialVersionUID:J" \ |
| 742 | "serialPersistentFields:\[Ljava/io/ObjectStreamField;" \ |
| 743 | "writeObject\(Ljava/io/ObjectOutputStream;\)V" \ |
| 744 | "writeReplace\(\)Ljava/lang/Object;" |
| 745 | $(INTERNAL_PLATFORM_HIDDENAPI_LIGHT_GREYLIST): PRIVATE_API := $(INTERNAL_PLATFORM_PRIVATE_DEX_API_FILE) |
David Brazdil | 0585533 | 2018-04-25 11:15:07 +0100 | [diff] [blame] | 746 | $(INTERNAL_PLATFORM_HIDDENAPI_LIGHT_GREYLIST): REMOVED_API := $(INTERNAL_PLATFORM_REMOVED_DEX_API_FILE) |
David Brazdil | 873d1d3 | 2018-03-13 09:41:23 +0000 | [diff] [blame] | 747 | $(INTERNAL_PLATFORM_HIDDENAPI_LIGHT_GREYLIST): frameworks/base/config/hiddenapi-light-greylist.txt \ |
David Brazdil | 357170b1 | 2018-03-26 16:02:23 +0100 | [diff] [blame] | 748 | frameworks/base/config/hiddenapi-vendor-list.txt \ |
David Brazdil | 0585533 | 2018-04-25 11:15:07 +0100 | [diff] [blame] | 749 | $(INTERNAL_PLATFORM_PRIVATE_DEX_API_FILE) \ |
| 750 | $(INTERNAL_PLATFORM_REMOVED_DEX_API_FILE) |
David Brazdil | 357170b1 | 2018-03-26 16:02:23 +0100 | [diff] [blame] | 751 | sort frameworks/base/config/hiddenapi-light-greylist.txt \ |
| 752 | frameworks/base/config/hiddenapi-vendor-list.txt \ |
| 753 | <(grep -E "\->("$(subst $(space),"|",$(REGEX_SERIALIZATION))")$$" $(PRIVATE_API)) \ |
David Brazdil | 0585533 | 2018-04-25 11:15:07 +0100 | [diff] [blame] | 754 | <(comm -12 <(sort $(REMOVED_API)) <(sort $(PRIVATE_API))) \ |
David Brazdil | 357170b1 | 2018-03-26 16:02:23 +0100 | [diff] [blame] | 755 | > $@ |
David Brazdil | f16ac00 | 2018-01-26 11:13:35 +0000 | [diff] [blame] | 756 | |
David Brazdil | 36bbf12 | 2018-03-28 11:28:39 +0100 | [diff] [blame] | 757 | $(eval $(call copy-one-file,frameworks/base/config/hiddenapi-dark-greylist.txt,\ |
| 758 | $(INTERNAL_PLATFORM_HIDDENAPI_DARK_GREYLIST))) |
| 759 | |
Nicolas Geoffray | 90fa8ef | 2018-02-08 17:27:15 +0000 | [diff] [blame] | 760 | # Generate dark greylist as private API minus (blacklist plus light greylist). |
David Brazdil | 0649c8d | 2018-01-22 22:23:13 +0000 | [diff] [blame] | 761 | |
David Brazdil | 36bbf12 | 2018-03-28 11:28:39 +0100 | [diff] [blame] | 762 | $(INTERNAL_PLATFORM_HIDDENAPI_BLACKLIST): PRIVATE_API := $(INTERNAL_PLATFORM_PRIVATE_DEX_API_FILE) |
| 763 | $(INTERNAL_PLATFORM_HIDDENAPI_BLACKLIST): LIGHT_GREYLIST := $(INTERNAL_PLATFORM_HIDDENAPI_LIGHT_GREYLIST) |
| 764 | $(INTERNAL_PLATFORM_HIDDENAPI_BLACKLIST): DARK_GREYLIST := $(INTERNAL_PLATFORM_HIDDENAPI_DARK_GREYLIST) |
| 765 | $(INTERNAL_PLATFORM_HIDDENAPI_BLACKLIST): $(INTERNAL_PLATFORM_PRIVATE_DEX_API_FILE) \ |
| 766 | $(INTERNAL_PLATFORM_HIDDENAPI_LIGHT_GREYLIST) \ |
| 767 | $(INTERNAL_PLATFORM_HIDDENAPI_DARK_GREYLIST) |
| 768 | if [ ! -z "`comm -12 <(sort $(LIGHT_GREYLIST)) <(sort $(DARK_GREYLIST))`" ]; then \ |
| 769 | echo "There should be no overlap between $(LIGHT_GREYLIST) and $(DARK_GREYLIST)" 1>&2; \ |
| 770 | comm -12 <(sort $(LIGHT_GREYLIST)) <(sort $(DARK_GREYLIST)) 1>&2; \ |
David Brazdil | 0649c8d | 2018-01-22 22:23:13 +0000 | [diff] [blame] | 771 | exit 1; \ |
David Brazdil | b43351f | 2018-01-31 14:43:36 +0000 | [diff] [blame] | 772 | elif [ ! -z "`comm -13 <(sort $(PRIVATE_API)) <(sort $(LIGHT_GREYLIST))`" ]; then \ |
| 773 | echo "$(LIGHT_GREYLIST) must be a subset of $(PRIVATE_API)" 1>&2; \ |
David Brazdil | 36bbf12 | 2018-03-28 11:28:39 +0100 | [diff] [blame] | 774 | comm -13 <(sort $(PRIVATE_API)) <(sort $(LIGHT_GREYLIST)) 1>&2; \ |
| 775 | exit 2; \ |
| 776 | elif [ ! -z "`comm -13 <(sort $(PRIVATE_API)) <(sort $(DARK_GREYLIST))`" ]; then \ |
| 777 | echo "$(DARK_GREYLIST) must be a subset of $(PRIVATE_API)" 1>&2; \ |
| 778 | comm -13 <(sort $(PRIVATE_API)) <(sort $(DARK_GREYLIST)) 1>&2; \ |
David Brazdil | 0649c8d | 2018-01-22 22:23:13 +0000 | [diff] [blame] | 779 | exit 3; \ |
| 780 | fi |
David Brazdil | 36bbf12 | 2018-03-28 11:28:39 +0100 | [diff] [blame] | 781 | comm -23 <(sort $(PRIVATE_API)) <(sort $(LIGHT_GREYLIST) $(DARK_GREYLIST)) > $@ |
David Brazdil | 0649c8d | 2018-01-22 22:23:13 +0000 | [diff] [blame] | 782 | |
Bart Sears | a8cc058 | 2015-05-07 03:23:20 +0000 | [diff] [blame] | 783 | # Include subdirectory makefiles |
| 784 | # ============================================================ |
| 785 | |
| 786 | # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework |
| 787 | # team really wants is to build the stuff defined by this makefile. |
| 788 | ifeq (,$(ONE_SHOT_MAKEFILE)) |
| 789 | include $(call first-makefiles-under,$(LOCAL_PATH)) |
| 790 | endif |
| 791 | |
Holly Jiuyu Sun | bbc8580 | 2017-12-21 18:44:59 -0800 | [diff] [blame] | 792 | endif # ANDROID_BUILD_EMBEDDED |
| 793 | |