blob: ce504a5abdd30517f76f18aa007b641cd20a1d61 [file] [log] [blame]
Bart Searsa8cc0582015-05-07 03:23:20 +00001#
2# Copyright (C) 2008 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16LOCAL_PATH := $(call my-dir)
17
Colin Crosscf3a0b52017-11-16 00:15:28 -080018# Load framework-specific path mappings used later in the build.
19include $(LOCAL_PATH)/pathmap.mk
Bart Searsa8cc0582015-05-07 03:23:20 +000020
21# Build the master framework library.
22# The framework contains too many method references (>64K) for poor old DEX.
23# So we first build the framework as a monolithic static library then split it
24# up into smaller pieces.
25# ============================================================
26
27# embedded builds use nothing in frameworks/base
28ifneq ($(ANDROID_BUILD_EMBEDDED),true)
29
Bart Searsa8cc0582015-05-07 03:23:20 +000030# Copy AIDL files to be preprocessed and included in the SDK,
31# specified relative to the root of the build tree.
32# ============================================================
33include $(CLEAR_VARS)
34
35aidl_files := \
Robert Greenwalt4dded7a2016-12-05 16:33:32 -080036 frameworks/base/telephony/java/android/telephony/mbms/DownloadRequest.aidl \
Robert Greenwalt4dded7a2016-12-05 16:33:32 -080037 frameworks/base/telephony/java/android/telephony/mbms/FileInfo.aidl \
38 frameworks/base/telephony/java/android/telephony/mbms/FileServiceInfo.aidl \
39 frameworks/base/telephony/java/android/telephony/mbms/ServiceInfo.aidl \
Robert Greenwalt4dded7a2016-12-05 16:33:32 -080040 frameworks/base/telephony/java/android/telephony/mbms/StreamingServiceInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000041 frameworks/base/telephony/java/android/telephony/ServiceState.aidl \
42 frameworks/base/telephony/java/android/telephony/SubscriptionInfo.aidl \
43 frameworks/base/telephony/java/android/telephony/CellInfo.aidl \
44 frameworks/base/telephony/java/android/telephony/SignalStrength.aidl \
45 frameworks/base/telephony/java/android/telephony/IccOpenLogicalChannelResponse.aidl \
46 frameworks/base/telephony/java/android/telephony/NeighboringCellInfo.aidl \
Prerepa Viswanadham5c728992015-05-28 00:12:37 -070047 frameworks/base/telephony/java/android/telephony/ModemActivityInfo.aidl \
Jeff Davidson35cda392017-02-27 09:46:00 -080048 frameworks/base/telephony/java/android/telephony/UiccAccessRule.aidl \
Jack Yufc84bb52017-11-20 11:14:23 -080049 frameworks/base/telephony/java/android/telephony/data/DataProfile.aidl \
Jeff Davidson35cda392017-02-27 09:46:00 -080050 frameworks/base/telephony/java/android/telephony/euicc/DownloadableSubscription.aidl \
Jeff Davidson91c3d072017-04-12 12:17:11 -070051 frameworks/base/telephony/java/android/telephony/euicc/EuiccInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000052 frameworks/base/location/java/android/location/Location.aidl \
53 frameworks/base/location/java/android/location/Address.aidl \
54 frameworks/base/location/java/android/location/Criteria.aidl \
55 frameworks/base/media/java/android/media/MediaMetadata.aidl \
56 frameworks/base/media/java/android/media/MediaDescription.aidl \
57 frameworks/base/media/java/android/media/Rating.aidl \
58 frameworks/base/media/java/android/media/AudioAttributes.aidl \
59 frameworks/base/media/java/android/media/AudioFocusInfo.aidl \
60 frameworks/base/media/java/android/media/session/PlaybackState.aidl \
61 frameworks/base/media/java/android/media/session/MediaSession.aidl \
62 frameworks/base/media/java/android/media/tv/TvInputInfo.aidl \
63 frameworks/base/media/java/android/media/tv/TvTrackInfo.aidl \
64 frameworks/base/media/java/android/media/browse/MediaBrowser.aidl \
65 frameworks/base/wifi/java/android/net/wifi/ScanSettings.aidl \
Etan Cohen04133272016-10-26 11:22:06 -070066 frameworks/base/wifi/java/android/net/wifi/aware/ConfigRequest.aidl \
67 frameworks/base/wifi/java/android/net/wifi/aware/PublishConfig.aidl \
68 frameworks/base/wifi/java/android/net/wifi/aware/SubscribeConfig.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000069 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pInfo.aidl \
70 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pDeviceList.aidl \
71 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pConfig.aidl \
72 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pDevice.aidl \
73 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pGroup.aidl \
74 frameworks/base/wifi/java/android/net/wifi/p2p/nsd/WifiP2pServiceRequest.aidl \
75 frameworks/base/wifi/java/android/net/wifi/p2p/nsd/WifiP2pServiceInfo.aidl \
Etan Cohen17ba4722017-08-21 10:52:17 -070076 frameworks/base/wifi/java/android/net/wifi/rtt/RangingRequest.aidl \
77 frameworks/base/wifi/java/android/net/wifi/rtt/RangingResult.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000078 frameworks/base/wifi/java/android/net/wifi/WpsInfo.aidl \
79 frameworks/base/wifi/java/android/net/wifi/ScanResult.aidl \
Vinit Deshpandea772f0c2016-01-27 19:05:24 -080080 frameworks/base/wifi/java/android/net/wifi/PasspointManagementObjectDefinition.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000081 frameworks/base/wifi/java/android/net/wifi/WifiEnterpriseConfig.aidl \
82 frameworks/base/wifi/java/android/net/wifi/WifiConfiguration.aidl \
83 frameworks/base/wifi/java/android/net/wifi/WifiInfo.aidl \
84 frameworks/base/graphics/java/android/graphics/Region.aidl \
85 frameworks/base/graphics/java/android/graphics/Bitmap.aidl \
86 frameworks/base/graphics/java/android/graphics/Point.aidl \
87 frameworks/base/graphics/java/android/graphics/PointF.aidl \
88 frameworks/base/graphics/java/android/graphics/RectF.aidl \
89 frameworks/base/graphics/java/android/graphics/Rect.aidl \
Philip P. Moltmannbb9f6862015-12-01 14:44:24 -080090 frameworks/base/graphics/java/android/graphics/drawable/Icon.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000091 frameworks/base/core/java/android/accounts/AuthenticatorDescription.aidl \
92 frameworks/base/core/java/android/accounts/Account.aidl \
Michal Karpinskif77ee4f2016-10-12 16:40:06 +010093 frameworks/base/core/java/android/app/admin/ConnectEvent.aidl \
94 frameworks/base/core/java/android/app/admin/DnsEvent.aidl \
95 frameworks/base/core/java/android/app/admin/NetworkEvent.aidl \
Rubin Xud86d58c2015-05-05 16:57:37 +010096 frameworks/base/core/java/android/app/admin/SystemUpdatePolicy.aidl \
Andrew Scull5f9e6f32016-08-02 14:22:17 +010097 frameworks/base/core/java/android/app/admin/PasswordMetrics.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000098 frameworks/base/core/java/android/print/PrintDocumentInfo.aidl \
99 frameworks/base/core/java/android/print/PageRange.aidl \
100 frameworks/base/core/java/android/print/PrintAttributes.aidl \
101 frameworks/base/core/java/android/print/PrinterCapabilitiesInfo.aidl \
102 frameworks/base/core/java/android/print/PrinterId.aidl \
103 frameworks/base/core/java/android/print/PrintJobInfo.aidl \
104 frameworks/base/core/java/android/print/PrinterInfo.aidl \
105 frameworks/base/core/java/android/print/PrintJobId.aidl \
Philip P. Moltmann9dcb86a2016-03-14 14:31:12 -0700106 frameworks/base/core/java/android/printservice/recommendation/RecommendationInfo.aidl \
Tomasz Wasilczyk8cfb0e82017-07-12 13:59:20 -0700107 frameworks/base/core/java/android/hardware/radio/ProgramSelector.aidl \
Tomasz Wasilczyk347192e2017-04-04 11:13:44 -0700108 frameworks/base/core/java/android/hardware/radio/RadioManager.aidl \
Tomasz Wasilczykc9a1ac72017-05-17 21:29:28 -0700109 frameworks/base/core/java/android/hardware/radio/RadioMetadata.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000110 frameworks/base/core/java/android/hardware/usb/UsbDevice.aidl \
111 frameworks/base/core/java/android/hardware/usb/UsbInterface.aidl \
112 frameworks/base/core/java/android/hardware/usb/UsbEndpoint.aidl \
113 frameworks/base/core/java/android/hardware/usb/UsbAccessory.aidl \
114 frameworks/base/core/java/android/os/Messenger.aidl \
115 frameworks/base/core/java/android/os/PatternMatcher.aidl \
116 frameworks/base/core/java/android/os/Message.aidl \
117 frameworks/base/core/java/android/os/UserHandle.aidl \
118 frameworks/base/core/java/android/os/ParcelUuid.aidl \
119 frameworks/base/core/java/android/os/ParcelFileDescriptor.aidl \
120 frameworks/base/core/java/android/os/ResultReceiver.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000121 frameworks/base/core/java/android/os/WorkSource.aidl \
122 frameworks/base/core/java/android/os/DropBoxManager.aidl \
123 frameworks/base/core/java/android/os/Bundle.aidl \
Sudheer Shankacc6418f2016-10-13 12:03:44 -0700124 frameworks/base/core/java/android/os/Debug.aidl \
John Reckdea6a022017-05-25 17:09:33 -0700125 frameworks/base/core/java/android/os/SharedMemory.aidl \
Sudheer Shankafc46e9b2016-10-21 17:55:27 -0700126 frameworks/base/core/java/android/os/StrictMode.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000127 frameworks/base/core/java/android/accessibilityservice/AccessibilityServiceInfo.aidl \
128 frameworks/base/core/java/android/net/Network.aidl \
129 frameworks/base/core/java/android/net/RouteInfo.aidl \
130 frameworks/base/core/java/android/net/NetworkInfo.aidl \
131 frameworks/base/core/java/android/net/IpPrefix.aidl \
132 frameworks/base/core/java/android/net/NetworkCapabilities.aidl \
133 frameworks/base/core/java/android/net/DhcpInfo.aidl \
134 frameworks/base/core/java/android/net/ProxyInfo.aidl \
135 frameworks/base/core/java/android/net/LinkProperties.aidl \
136 frameworks/base/core/java/android/net/Uri.aidl \
137 frameworks/base/core/java/android/net/NetworkRequest.aidl \
138 frameworks/base/core/java/android/net/LinkAddress.aidl \
Svet Ganov53a441c2016-04-19 19:38:00 -0700139 frameworks/base/core/java/android/util/MemoryIntArray.aidl \
P.Y. Laligandb3b9eb32015-05-11 15:02:07 -0700140 frameworks/base/core/java/android/view/Display.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000141 frameworks/base/core/java/android/view/InputDevice.aidl \
142 frameworks/base/core/java/android/view/InputEvent.aidl \
Eino-Ville Talvala5d2d7782015-12-17 16:50:50 -0800143 frameworks/native/aidl/gui/android/view/Surface.aidl \
P.Y. Laligandb3b9eb32015-05-11 15:02:07 -0700144 frameworks/base/core/java/android/view/WindowContentFrameStats.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000145 frameworks/base/core/java/android/view/inputmethod/InputMethodSubtype.aidl \
146 frameworks/base/core/java/android/view/inputmethod/CursorAnchorInfo.aidl \
147 frameworks/base/core/java/android/view/inputmethod/CompletionInfo.aidl \
148 frameworks/base/core/java/android/view/inputmethod/ExtractedText.aidl \
149 frameworks/base/core/java/android/view/inputmethod/EditorInfo.aidl \
150 frameworks/base/core/java/android/view/inputmethod/InputMethodInfo.aidl \
151 frameworks/base/core/java/android/view/inputmethod/CorrectionInfo.aidl \
152 frameworks/base/core/java/android/view/inputmethod/InputBinding.aidl \
153 frameworks/base/core/java/android/view/inputmethod/ExtractedTextRequest.aidl \
154 frameworks/base/core/java/android/view/DragEvent.aidl \
155 frameworks/base/core/java/android/view/KeyEvent.aidl \
156 frameworks/base/core/java/android/view/WindowManager.aidl \
157 frameworks/base/core/java/android/view/WindowAnimationFrameStats.aidl \
158 frameworks/base/core/java/android/view/MotionEvent.aidl \
159 frameworks/base/core/java/android/view/accessibility/AccessibilityNodeInfo.aidl \
160 frameworks/base/core/java/android/view/accessibility/AccessibilityRecord.aidl \
161 frameworks/base/core/java/android/view/accessibility/AccessibilityWindowInfo.aidl \
162 frameworks/base/core/java/android/view/accessibility/AccessibilityEvent.aidl \
163 frameworks/base/core/java/android/view/textservice/SpellCheckerSubtype.aidl \
164 frameworks/base/core/java/android/view/textservice/TextInfo.aidl \
165 frameworks/base/core/java/android/view/textservice/SpellCheckerInfo.aidl \
166 frameworks/base/core/java/android/view/textservice/SentenceSuggestionsInfo.aidl \
167 frameworks/base/core/java/android/view/textservice/SuggestionsInfo.aidl \
168 frameworks/base/core/java/android/service/carrier/CarrierIdentifier.aidl \
169 frameworks/base/core/java/android/service/carrier/MessagePdu.aidl \
Jeff Davidson91c3d072017-04-12 12:17:11 -0700170 frameworks/base/core/java/android/service/euicc/GetDefaultDownloadableSubscriptionListResult.aidl \
Jeff Davidson35cda392017-02-27 09:46:00 -0800171 frameworks/base/core/java/android/service/euicc/GetDownloadableSubscriptionMetadataResult.aidl \
Jeff Davidsond02731f2017-04-09 14:31:09 -0700172 frameworks/base/core/java/android/service/euicc/GetEuiccProfileInfoListResult.aidl \
Julia Reynolds22f02b32016-12-01 15:05:13 -0500173 frameworks/base/core/java/android/service/notification/Adjustment.aidl \
174 frameworks/base/core/java/android/service/notification/Condition.aidl \
175 frameworks/base/core/java/android/service/notification/SnoozeCriterion.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000176 frameworks/base/core/java/android/service/notification/StatusBarNotification.aidl \
177 frameworks/base/core/java/android/service/chooser/ChooserTarget.aidl \
Kang Libbced1c2017-04-05 12:30:55 -0700178 frameworks/base/core/java/android/service/resolver/ResolverTarget.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000179 frameworks/base/core/java/android/speech/tts/Voice.aidl \
Daniel Nishicf9d19e2017-01-23 14:33:42 -0800180 frameworks/base/core/java/android/app/usage/CacheQuotaHint.aidl \
Jeff Sharkey8dedad32017-01-09 18:21:21 -0700181 frameworks/base/core/java/android/app/usage/ExternalStorageStats.aidl \
Jeff Sharkeye8cece92017-01-04 11:33:33 -0700182 frameworks/base/core/java/android/app/usage/StorageStats.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000183 frameworks/base/core/java/android/app/usage/UsageEvents.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000184 frameworks/base/core/java/android/app/Notification.aidl \
185 frameworks/base/core/java/android/app/NotificationManager.aidl \
186 frameworks/base/core/java/android/app/WallpaperInfo.aidl \
187 frameworks/base/core/java/android/app/AppOpsManager.aidl \
188 frameworks/base/core/java/android/app/ActivityManager.aidl \
189 frameworks/base/core/java/android/app/PendingIntent.aidl \
190 frameworks/base/core/java/android/app/AlarmManager.aidl \
191 frameworks/base/core/java/android/app/SearchableInfo.aidl \
192 frameworks/base/core/java/android/app/VoiceInteractor.aidl \
Dianne Hackborn69c6adc2015-06-02 10:52:59 -0700193 frameworks/base/core/java/android/app/assist/AssistContent.aidl \
194 frameworks/base/core/java/android/app/assist/AssistStructure.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000195 frameworks/base/core/java/android/app/job/JobParameters.aidl \
196 frameworks/base/core/java/android/app/job/JobInfo.aidl \
197 frameworks/base/core/java/android/appwidget/AppWidgetProviderInfo.aidl \
198 frameworks/base/core/java/android/content/ClipDescription.aidl \
199 frameworks/base/core/java/android/content/IntentFilter.aidl \
200 frameworks/base/core/java/android/content/Intent.aidl \
201 frameworks/base/core/java/android/content/res/Configuration.aidl \
202 frameworks/base/core/java/android/content/res/ObbInfo.aidl \
203 frameworks/base/core/java/android/content/RestrictionEntry.aidl \
204 frameworks/base/core/java/android/content/ClipData.aidl \
205 frameworks/base/core/java/android/content/SyncAdapterType.aidl \
206 frameworks/base/core/java/android/content/SyncRequest.aidl \
207 frameworks/base/core/java/android/content/PeriodicSync.aidl \
208 frameworks/base/core/java/android/content/SyncResult.aidl \
209 frameworks/base/core/java/android/content/pm/FeatureInfo.aidl \
210 frameworks/base/core/java/android/content/pm/InstrumentationInfo.aidl \
211 frameworks/base/core/java/android/content/pm/PackageInstaller.aidl \
212 frameworks/base/core/java/android/content/pm/ServiceInfo.aidl \
213 frameworks/base/core/java/android/content/pm/Signature.aidl \
214 frameworks/base/core/java/android/content/pm/ApplicationInfo.aidl \
215 frameworks/base/core/java/android/content/pm/PermissionInfo.aidl \
216 frameworks/base/core/java/android/content/pm/ActivityInfo.aidl \
Sudheer Shankafc46e9b2016-10-21 17:55:27 -0700217 frameworks/base/core/java/android/content/pm/ConfigurationInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000218 frameworks/base/core/java/android/content/pm/PackageInfo.aidl \
219 frameworks/base/core/java/android/content/pm/ResolveInfo.aidl \
220 frameworks/base/core/java/android/content/pm/ProviderInfo.aidl \
221 frameworks/base/core/java/android/content/pm/PackageStats.aidl \
222 frameworks/base/core/java/android/content/pm/PermissionGroupInfo.aidl \
Makoto Onuki6f7362d92016-03-04 13:39:41 -0800223 frameworks/base/core/java/android/content/pm/ShortcutInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000224 frameworks/base/core/java/android/content/pm/LabeledIntent.aidl \
225 frameworks/base/core/java/android/content/ComponentName.aidl \
226 frameworks/base/core/java/android/content/SyncStats.aidl \
227 frameworks/base/core/java/android/content/ContentValues.aidl \
228 frameworks/base/core/java/android/content/SyncInfo.aidl \
229 frameworks/base/core/java/android/content/IntentSender.aidl \
230 frameworks/base/core/java/android/widget/RemoteViews.aidl \
231 frameworks/base/core/java/android/text/style/SuggestionSpan.aidl \
232 frameworks/base/core/java/android/nfc/Tag.aidl \
233 frameworks/base/core/java/android/nfc/NdefRecord.aidl \
234 frameworks/base/core/java/android/nfc/NdefMessage.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000235 frameworks/base/core/java/android/database/CursorWindow.aidl \
Jason Monkbbadff82015-11-06 15:47:26 -0500236 frameworks/base/core/java/android/service/quicksettings/Tile.aidl \
Samuel Tan239951a2016-01-05 17:29:43 -0800237 frameworks/native/aidl/binder/android/os/PersistableBundle.aidl \
Jakub Pawlowski06ae9c62017-08-08 04:27:20 -0700238 system/bt/binder/android/bluetooth/BluetoothHealthAppConfiguration.aidl \
239 system/bt/binder/android/bluetooth/le/AdvertiseSettings.aidl \
240 system/bt/binder/android/bluetooth/le/ScanSettings.aidl \
241 system/bt/binder/android/bluetooth/le/AdvertiseData.aidl \
242 system/bt/binder/android/bluetooth/le/ScanFilter.aidl \
243 system/bt/binder/android/bluetooth/le/ScanResult.aidl \
244 system/bt/binder/android/bluetooth/BluetoothDevice.aidl \
Robin Lee10606942016-03-30 18:52:40 +0100245 system/netd/server/binder/android/net/UidRange.aidl \
Robert Greenwalt37409c52016-06-02 13:43:27 -0700246 frameworks/base/telephony/java/android/telephony/PcoData.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000247
248gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl
249$(gen): PRIVATE_SRC_FILES := $(aidl_files)
250ALL_SDK_FILES += $(gen)
251$(gen): $(aidl_files) | $(AIDL)
252 @echo Aidl Preprocess: $@
253 $(hide) $(AIDL) --preprocess $@ $(PRIVATE_SRC_FILES)
254
255# the documentation
256# ============================================================
257
258# TODO: deal with com/google/android/googleapps
259packages_to_document := \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800260 android \
261 javax/microedition/khronos \
262 org/apache/http/conn \
263 org/apache/http/params \
Bart Searsa8cc0582015-05-07 03:23:20 +0000264
265# include definition of libcore_to_document
266include libcore/Docs.mk
267
Bart Searsa8cc0582015-05-07 03:23:20 +0000268non_base_dirs := \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800269 ../opt/telephony/src/java/android/telephony \
270 ../opt/telephony/src/java/android/telephony/gsm \
271 ../opt/net/voip/src/java/android/net/rtp \
272 ../opt/net/voip/src/java/android/net/sip \
Bart Searsa8cc0582015-05-07 03:23:20 +0000273
Paul Duffinc08090f2017-06-29 14:58:43 +0100274framework_base_android_test_mock_src_files := \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800275 $(call all-java-files-under, test-mock/src/android/test/mock)
Paul Duffinc08090f2017-06-29 14:58:43 +0100276
277framework_base_android_test_runner_excluding_mock_src_files := \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800278 $(filter-out $(framework_base_android_test_mock_src_files), $(call all-java-files-under, test-runner/src))
Paul Duffinc08090f2017-06-29 14:58:43 +0100279
Colin Crosscf3a0b52017-11-16 00:15:28 -0800280# Find all files in specific directories (relative to frameworks/base)
281# to document and check apis
282files_to_check_apis := \
283 $(call find-other-java-files, \
284 test-base/src \
285 $(non_base_dirs) \
286 )
Bart Searsa8cc0582015-05-07 03:23:20 +0000287
Colin Crosscf3a0b52017-11-16 00:15:28 -0800288# Find all files in specific packages that were used to compile
289# framework.jar to document and check apis
290files_to_check_apis += \
291 $(addprefix ../../,\
292 $(filter \
293 $(foreach dir,$(FRAMEWORKS_BASE_JAVA_SRC_DIRS),\
294 $(foreach package,$(packages_to_document),\
295 $(dir)/$(package)/%.java)),\
296 $(SOONG_FRAMEWORK_SRCS)))
297
298# Find all generated files that were used to compile framework.jar
Colin Crossbd200ce2017-12-04 13:45:19 -0800299files_to_check_apis_generated := \
300 $(filter $(OUT_DIR)/%,\
301 $(SOONG_FRAMEWORK_SRCS))
George Mountf6be9932015-12-03 07:39:55 -0800302
Bart Searsa8cc0582015-05-07 03:23:20 +0000303# These are relative to frameworks/base
304# FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
Colin Crosscf3a0b52017-11-16 00:15:28 -0800305files_to_document := \
306 $(files_to_check_apis) \
307 $(call find-other-java-files,\
308 $(addprefix ../../, $(FRAMEWORKS_DATA_BINDING_JAVA_SRC_DIRS)) \
309 test-runner/src)
George Mountf6be9932015-12-03 07:39:55 -0800310
Bart Searsa8cc0582015-05-07 03:23:20 +0000311# These are relative to frameworks/base
312html_dirs := \
313 $(FRAMEWORKS_BASE_SUBDIRS) \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800314 $(non_base_dirs) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000315
316# Common sources for doc check and api check
317common_src_files := \
318 $(call find-other-html-files, $(html_dirs)) \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800319 $(addprefix ../../, $(libcore_to_document)) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000320
321# These are relative to frameworks/base
322framework_docs_LOCAL_SRC_FILES := \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800323 $(files_to_document) \
324 $(common_src_files) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000325
326# These are relative to frameworks/base
327framework_docs_LOCAL_API_CHECK_SRC_FILES := \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800328 $(framework_base_android_test_mock_src_files) \
329 $(framework_base_android_test_runner_excluding_mock_src_files) \
330 $(files_to_check_apis) \
331 $(common_src_files) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000332
333# This is used by ide.mk as the list of source files that are
334# always included.
335INTERNAL_SDK_SOURCE_DIRS := $(addprefix $(LOCAL_PATH)/,$(dirs_to_document))
336
337framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
338 $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
339
Colin Crosscf3a0b52017-11-16 00:15:28 -0800340framework_docs_LOCAL_SRCJARS := $(SOONG_FRAMEWORK_SRCJARS)
341
Colin Crossbd200ce2017-12-04 13:45:19 -0800342framework_docs_LOCAL_GENERATED_SOURCES := \
343 $(libcore_to_document_generated) \
344 $(files_to_check_apis_generated) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000345
346framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES := \
Piotr Jastrzebskicfa292e2015-02-17 16:58:52 +0000347 core-oj \
Bart Searsa8cc0582015-05-07 03:23:20 +0000348 core-libart \
349 conscrypt \
350 bouncycastle \
351 okhttp \
352 ext \
Rayhaan Jaufeerally2e47a6e2015-08-03 13:54:28 +0100353 icu4j \
Bart Searsa8cc0582015-05-07 03:23:20 +0000354 framework \
Paul Duffinc08090f2017-06-29 14:58:43 +0100355 voip-common \
356 android.test.mock \
Bart Searsa8cc0582015-05-07 03:23:20 +0000357
Alan Viverette9ca513e2017-04-05 10:21:58 -0400358# Platform docs can refer to Support Library APIs, but we don't actually build
359# them as part of the docs target, so we need to include them on the classpath.
Bart Searsa8cc0582015-05-07 03:23:20 +0000360framework_docs_LOCAL_JAVA_LIBRARIES := \
361 $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) \
362 $(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES)
363
364framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
365framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
366# The since flag (-since N.xml API_LEVEL) is used to add API Level information
367# to the reference documentation. Must be in order of oldest to newest.
368#
369# Conscrypt (com.android.org.conscrypt) is an implementation detail and should
370# not be referenced in the documentation.
371framework_docs_LOCAL_DROIDDOC_OPTIONS := \
Jeff Sharkey0f3f60b2017-04-24 18:06:20 -0600372 -android \
Bart Searsa8cc0582015-05-07 03:23:20 +0000373 -knowntags ./frameworks/base/docs/knowntags.txt \
Narayan Kamath2c4f2842015-07-27 14:02:11 +0100374 -knowntags ./libcore/known_oj_tags.txt \
Jeff Sharkeybfc4fcd2017-06-05 17:38:17 -0600375 -manifest ./frameworks/base/core/res/AndroidManifest.xml \
Neil Fuller57157fb2017-11-24 15:58:38 +0000376 -hidePackage com.android.okhttp \
Bart Searsa8cc0582015-05-07 03:23:20 +0000377 -hidePackage com.android.org.conscrypt \
Neil Fuller371c08c2017-11-27 10:32:07 +0000378 -hidePackage com.android.server \
Bart Searsa8cc0582015-05-07 03:23:20 +0000379 -since $(SRC_API_DIR)/1.xml 1 \
380 -since $(SRC_API_DIR)/2.xml 2 \
381 -since $(SRC_API_DIR)/3.xml 3 \
382 -since $(SRC_API_DIR)/4.xml 4 \
383 -since $(SRC_API_DIR)/5.xml 5 \
384 -since $(SRC_API_DIR)/6.xml 6 \
385 -since $(SRC_API_DIR)/7.xml 7 \
386 -since $(SRC_API_DIR)/8.xml 8 \
387 -since $(SRC_API_DIR)/9.xml 9 \
388 -since $(SRC_API_DIR)/10.xml 10 \
389 -since $(SRC_API_DIR)/11.xml 11 \
390 -since $(SRC_API_DIR)/12.xml 12 \
391 -since $(SRC_API_DIR)/13.xml 13 \
392 -since $(SRC_API_DIR)/14.txt 14 \
393 -since $(SRC_API_DIR)/15.txt 15 \
394 -since $(SRC_API_DIR)/16.txt 16 \
395 -since $(SRC_API_DIR)/17.txt 17 \
396 -since $(SRC_API_DIR)/18.txt 18 \
397 -since $(SRC_API_DIR)/19.txt 19 \
398 -since $(SRC_API_DIR)/20.txt 20 \
399 -since $(SRC_API_DIR)/21.txt 21 \
400 -since $(SRC_API_DIR)/22.txt 22 \
Joe Fernandez1827e322015-08-12 19:45:22 -0700401 -since $(SRC_API_DIR)/23.txt 23 \
Dirk Dougherty5f60f7c2016-06-14 16:26:28 -0700402 -since $(SRC_API_DIR)/24.txt 24 \
Dirk Dougherty3376f582016-10-14 10:27:08 -0700403 -since $(SRC_API_DIR)/25.txt 25 \
Dirk Doughertyfdad0ba2017-06-09 14:43:32 -0700404 -since $(SRC_API_DIR)/26.txt 26 \
Andrew Solovaya6019b22017-10-06 14:27:20 -0700405 -since $(SRC_API_DIR)/27.txt 27 \
Jeff Sharkeyc204c222017-11-27 15:02:10 -0700406 -werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 \
Jeff Sharkey0f3f60b2017-04-24 18:06:20 -0600407 -overview $(LOCAL_PATH)/core/java/overview.html \
Bart Searsa8cc0582015-05-07 03:23:20 +0000408
409framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR:= \
410 $(call intermediates-dir-for,JAVA_LIBRARIES,framework,,COMMON)
411
412framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= \
Alan Viverette9ca513e2017-04-05 10:21:58 -0400413 $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
Bart Searsa8cc0582015-05-07 03:23:20 +0000414
415framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES := \
Narayan Kamathc21739a2015-07-14 13:39:23 +0100416 frameworks/base/docs/knowntags.txt \
Colin Cross72d359f2017-10-27 10:46:53 -0700417 $(libcore_to_document_generated)
Bart Searsa8cc0582015-05-07 03:23:20 +0000418
419samples_dir := development/samples/browseable
420
421# Whitelist of valid groups, used for default TOC grouping. Each sample must
422# belong to one (and only one) group. Assign samples to groups by setting
423# a sample.group var to one of these groups in the sample's _index.jd.
424sample_groups := -samplegroup Admin \
425 -samplegroup Background \
426 -samplegroup Connectivity \
427 -samplegroup Content \
428 -samplegroup Input \
429 -samplegroup Media \
430 -samplegroup Notification \
431 -samplegroup RenderScript \
432 -samplegroup Security \
433 -samplegroup Sensors \
Trevor Johns4cbe3592015-05-27 14:50:51 -0700434 -samplegroup System \
Bart Searsa8cc0582015-05-07 03:23:20 +0000435 -samplegroup Testing \
436 -samplegroup UI \
437 -samplegroup Views \
438 -samplegroup Wearable
439
440## SDK version identifiers used in the published docs
441 # major[.minor] version for current SDK. (full releases only)
smain@google.comdde8deb2016-08-29 18:36:50 -0700442framework_docs_SDK_VERSION:=7.0
Bart Searsa8cc0582015-05-07 03:23:20 +0000443 # release version (ie "Release x") (full releases only)
444framework_docs_SDK_REL_ID:=1
445
446framework_docs_LOCAL_DROIDDOC_OPTIONS += \
Billy Lamberta75dbc8f2017-03-03 13:09:15 -0800447 -hdf dac true \
Scott Mainf8cdfc82017-03-21 13:43:31 -0700448 -hdf sdk.codename O \
449 -hdf sdk.preview.version 1 \
Bart Searsa8cc0582015-05-07 03:23:20 +0000450 -hdf sdk.version $(framework_docs_SDK_VERSION) \
451 -hdf sdk.rel.id $(framework_docs_SDK_REL_ID) \
Scott Mainf8cdfc82017-03-21 13:43:31 -0700452 -hdf sdk.preview 0 \
453 -resourcesdir $(LOCAL_PATH)/docs/html/reference/images/ \
454 -resourcesoutdir reference/android/images/
Bart Searsa8cc0582015-05-07 03:23:20 +0000455
Alan Viverette9ca513e2017-04-05 10:21:58 -0400456# Federate Support Library references against local API file.
457framework_docs_LOCAL_DROIDDOC_OPTIONS += \
458 -federate SupportLib https://developer.android.com \
459 -federationapi SupportLib prebuilts/sdk/current/support-api.txt
460
Jeff Sharkeyd2bf31c2017-11-29 13:14:27 -0700461# ==== Public API diff ===========================
Alan Viverette6b7354c2017-07-13 17:10:14 -0400462include $(CLEAR_VARS)
463
464LOCAL_SRC_FILES := $(framework_docs_LOCAL_API_CHECK_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800465LOCAL_GENERATED_SOURCES := $(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800466LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Alan Viverette6b7354c2017-07-13 17:10:14 -0400467LOCAL_JAVA_LIBRARIES := $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
468LOCAL_MODULE_CLASS := $(framework_docs_LOCAL_MODULE_CLASS)
469LOCAL_ADDITIONAL_JAVA_DIR := $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
470LOCAL_ADDITIONAL_DEPENDENCIES := \
471 $(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) \
472 $(INTERNAL_PLATFORM_API_FILE)
473
474LOCAL_MODULE := offline-sdk-referenceonly
475
476last_released_sdk_version := $(lastword $(call numerically_sort, \
477 $(filter-out current, \
478 $(patsubst $(SRC_API_DIR)/%.txt,%, $(wildcard $(SRC_API_DIR)/*.txt)) \
479 )\
480 ))
481
482LOCAL_APIDIFF_OLDAPI := $(LOCAL_PATH)/../../$(SRC_API_DIR)/$(last_released_sdk_version)
483LOCAL_APIDIFF_NEWAPI := $(LOCAL_PATH)/../../$(basename $(INTERNAL_PLATFORM_API_FILE))
484
485include $(BUILD_APIDIFF)
486
Jeff Sharkeyd2bf31c2017-11-29 13:14:27 -0700487# ==== System API diff ===========================
488include $(CLEAR_VARS)
489
490LOCAL_SRC_FILES := $(framework_docs_LOCAL_API_CHECK_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800491LOCAL_GENERATED_SOURCES := $(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800492LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Jeff Sharkeyd2bf31c2017-11-29 13:14:27 -0700493LOCAL_JAVA_LIBRARIES := $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
494LOCAL_MODULE_CLASS := $(framework_docs_LOCAL_MODULE_CLASS)
495LOCAL_ADDITIONAL_JAVA_DIR := $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
496LOCAL_ADDITIONAL_DEPENDENCIES := \
497 $(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) \
498 $(INTERNAL_PLATFORM_SYSTEM_API_FILE)
499
500LOCAL_MODULE := offline-system-sdk-referenceonly
501
502last_released_sdk_version := $(lastword $(call numerically_sort, \
503 $(filter-out current, \
504 $(patsubst $(SRC_SYSTEM_API_DIR)/%.txt,%, $(wildcard $(SRC_SYSTEM_API_DIR)/*.txt)) \
505 )\
506 ))
507
508LOCAL_APIDIFF_OLDAPI := $(LOCAL_PATH)/../../$(SRC_SYSTEM_API_DIR)/$(last_released_sdk_version)
509LOCAL_APIDIFF_NEWAPI := $(LOCAL_PATH)/../../$(basename $(INTERNAL_PLATFORM_SYSTEM_API_FILE))
510
511include $(BUILD_APIDIFF)
512
Bart Searsa8cc0582015-05-07 03:23:20 +0000513# ==== the api stubs and current.xml ===========================
514include $(CLEAR_VARS)
515
516LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800517LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800518LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000519LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
520LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
521LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
522LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
523LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
524LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
525
526LOCAL_MODULE := api-stubs
527
Ying Wang0f92a2e2015-07-16 14:20:22 -0700528LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_stubs_current_intermediates/src
529
Bart Searsa8cc0582015-05-07 03:23:20 +0000530LOCAL_DROIDDOC_OPTIONS:=\
531 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700532 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000533 -api $(INTERNAL_PLATFORM_API_FILE) \
534 -removedApi $(INTERNAL_PLATFORM_REMOVED_API_FILE) \
535 -nodocs
536
Scott Main15b85172017-02-21 14:30:58 -0800537LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000538
539LOCAL_UNINSTALLABLE_MODULE := true
540
541include $(BUILD_DROIDDOC)
542
543# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
Colin Crosscf3a0b52017-11-16 00:15:28 -0800544$(full_target): $(gen)
Bart Searsa8cc0582015-05-07 03:23:20 +0000545$(INTERNAL_PLATFORM_API_FILE): $(full_target)
546$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE))
547
548# ==== the system api stubs ===================================
549include $(CLEAR_VARS)
550
551LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800552LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800553LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000554LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
555LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
556LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
557LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
558LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
559LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
560
561LOCAL_MODULE := system-api-stubs
562
Ying Wang0f92a2e2015-07-16 14:20:22 -0700563LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_system_stubs_current_intermediates/src
564
Bart Searsa8cc0582015-05-07 03:23:20 +0000565LOCAL_DROIDDOC_OPTIONS:=\
566 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700567 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000568 -showAnnotation android.annotation.SystemApi \
569 -api $(INTERNAL_PLATFORM_SYSTEM_API_FILE) \
570 -removedApi $(INTERNAL_PLATFORM_SYSTEM_REMOVED_API_FILE) \
Jeff Sharkey05461c02017-05-09 19:01:09 -0600571 -exactApi $(INTERNAL_PLATFORM_SYSTEM_EXACT_API_FILE) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000572 -nodocs
573
Scott Main15b85172017-02-21 14:30:58 -0800574LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000575
576LOCAL_UNINSTALLABLE_MODULE := true
577
578include $(BUILD_DROIDDOC)
579
580# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
Colin Crosscf3a0b52017-11-16 00:15:28 -0800581$(full_target): $(gen)
Bart Searsa8cc0582015-05-07 03:23:20 +0000582$(INTERNAL_PLATFORM_SYSTEM_API_FILE): $(full_target)
583$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_SYSTEM_API_FILE))
584
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000585# ==== the test api stubs ===================================
586include $(CLEAR_VARS)
587
588LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800589LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800590LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000591LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
592LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
593LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
594LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
595LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
596LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
597
598LOCAL_MODULE := test-api-stubs
599
600LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src
601
602LOCAL_DROIDDOC_OPTIONS:=\
603 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700604 -referenceonly \
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000605 -stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src \
606 -showAnnotation android.annotation.TestApi \
607 -api $(INTERNAL_PLATFORM_TEST_API_FILE) \
608 -removedApi $(INTERNAL_PLATFORM_TEST_REMOVED_API_FILE) \
Jeff Sharkey05461c02017-05-09 19:01:09 -0600609 -exactApi $(INTERNAL_PLATFORM_TEST_EXACT_API_FILE) \
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000610 -nodocs
611
Scott Main15b85172017-02-21 14:30:58 -0800612LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000613
614LOCAL_UNINSTALLABLE_MODULE := true
615
616include $(BUILD_DROIDDOC)
617
618# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
Colin Crosscf3a0b52017-11-16 00:15:28 -0800619$(full_target): $(gen)
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000620$(INTERNAL_PLATFORM_TEST_API_FILE): $(full_target)
621$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_TEST_API_FILE))
622
Bart Searsa8cc0582015-05-07 03:23:20 +0000623# ==== check javadoc comments but don't generate docs ========
624include $(CLEAR_VARS)
625
626LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800627LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800628LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000629LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
630LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
631LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
632LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
633LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
634LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
635
636LOCAL_MODULE := doc-comment-check
637
638LOCAL_DROIDDOC_OPTIONS:=\
639 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700640 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000641 -parsecomments
642
Scott Main15b85172017-02-21 14:30:58 -0800643LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000644
645LOCAL_UNINSTALLABLE_MODULE := true
646
647include $(BUILD_DROIDDOC)
648
649# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
Colin Crosscf3a0b52017-11-16 00:15:28 -0800650$(full_target): $(gen)
Bart Searsa8cc0582015-05-07 03:23:20 +0000651
652# Run this for checkbuild
653checkbuild: doc-comment-check-docs
654# Check comment when you are updating the API
655update-api: doc-comment-check-docs
656
657# ==== static html in the sdk ==================================
658include $(CLEAR_VARS)
659
660LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800661LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800662LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000663LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
664LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
665LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
666LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
667LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
668LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
669
670LOCAL_MODULE := offline-sdk
671
672LOCAL_DROIDDOC_OPTIONS:=\
673 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
674 -offlinemode \
675 -title "Android SDK" \
676 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
smain@google.com00de8c52016-03-07 18:38:08 -0800677 -sdkvalues $(OUT_DOCS) \
smain@google.com8562ab52016-06-14 17:11:57 -0700678 -hdf android.whichdoc offline
679
Scott Main15b85172017-02-21 14:30:58 -0800680LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
smain@google.com8562ab52016-06-14 17:11:57 -0700681
682include $(BUILD_DROIDDOC)
683
684static_doc_index_redirect := $(out_dir)/index.html
685$(static_doc_index_redirect): \
686 $(LOCAL_PATH)/docs/docs-preview-index.html | $(ACP)
687 $(hide) mkdir -p $(dir $@)
688 $(hide) $(ACP) $< $@
689
690$(full_target): $(static_doc_index_redirect)
smain@google.com8562ab52016-06-14 17:11:57 -0700691
692
Jeff Sharkeyd2bf31c2017-11-29 13:14:27 -0700693# ==== Public API static reference docs ==================================
smain@google.com8562ab52016-06-14 17:11:57 -0700694include $(CLEAR_VARS)
695
696LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800697LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800698LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
smain@google.com8562ab52016-06-14 17:11:57 -0700699LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
700LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
701LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
702LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
703LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
704LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
705
706LOCAL_MODULE := offline-sdk-referenceonly
707
708LOCAL_DROIDDOC_OPTIONS:=\
709 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
710 -offlinemode \
711 -title "Android SDK" \
712 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
713 -sdkvalues $(OUT_DOCS) \
smain@google.com00de8c52016-03-07 18:38:08 -0800714 -hdf android.whichdoc offline \
Scott Mainf8cdfc82017-03-21 13:43:31 -0700715 -referenceonly
smain@google.com00de8c52016-03-07 18:38:08 -0800716
Scott Main15b85172017-02-21 14:30:58 -0800717LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
smain@google.com00de8c52016-03-07 18:38:08 -0800718
719include $(BUILD_DROIDDOC)
720
721static_doc_index_redirect := $(out_dir)/index.html
smain@google.com151833a2016-08-31 08:42:09 -0700722$(static_doc_index_redirect): $(LOCAL_PATH)/docs/docs-documentation-redirect.html
Dan Willemsen98ff0b72016-03-23 00:42:44 -0700723 $(copy-file-to-target)
smain@google.com00de8c52016-03-07 18:38:08 -0800724
smain@google.com2f2365d2016-09-21 14:05:50 -0700725static_doc_properties := $(out_dir)/source.properties
726$(static_doc_properties): \
727 $(LOCAL_PATH)/docs/source.properties | $(ACP)
728 $(hide) mkdir -p $(dir $@)
729 $(hide) $(ACP) $< $@
730
smain@google.com00de8c52016-03-07 18:38:08 -0800731$(full_target): $(static_doc_index_redirect)
smain@google.com2f2365d2016-09-21 14:05:50 -0700732$(full_target): $(static_doc_properties)
smain@google.com00de8c52016-03-07 18:38:08 -0800733
smain@google.com7aca8be2016-03-10 14:13:30 -0800734
Jeff Sharkeyd2bf31c2017-11-29 13:14:27 -0700735# ==== System API static reference docs ==================================
736include $(CLEAR_VARS)
737
738LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800739LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800740LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Jeff Sharkeyd2bf31c2017-11-29 13:14:27 -0700741LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
742LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
743LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
744LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
745LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
746LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
747
748LOCAL_MODULE := offline-system-sdk-referenceonly
749
750LOCAL_DROIDDOC_OPTIONS:=\
751 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
752 -hide 101 -hide 104 -hide 108 \
753 -showAnnotation android.annotation.SystemApi \
754 -offlinemode \
755 -title "Android System SDK" \
756 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
757 -sdkvalues $(OUT_DOCS) \
758 -hdf android.whichdoc offline \
759 -referenceonly
760
761LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
762
763include $(BUILD_DROIDDOC)
764
765static_doc_index_redirect := $(out_dir)/index.html
766$(static_doc_index_redirect): $(LOCAL_PATH)/docs/docs-documentation-redirect.html
767 $(copy-file-to-target)
768
769static_doc_properties := $(out_dir)/source.properties
770$(static_doc_properties): \
771 $(LOCAL_PATH)/docs/source.properties | $(ACP)
772 $(hide) mkdir -p $(dir $@)
773 $(hide) $(ACP) $< $@
774
775$(full_target): $(static_doc_index_redirect)
776$(full_target): $(static_doc_properties)
777$(full_target): $(framework_built)
778
779
Bart Searsa8cc0582015-05-07 03:23:20 +0000780# ==== docs for the web (on the androiddevdocs app engine server) =======================
781include $(CLEAR_VARS)
782
783LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800784LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800785LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000786LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
787LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
788LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
789LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
790LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
791LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
792LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
793LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
794
795LOCAL_MODULE := online-sdk
796
797LOCAL_DROIDDOC_OPTIONS:= \
798 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
799 -toroot / \
800 -hdf android.whichdoc online \
801 $(sample_groups) \
802 -hdf android.hasSamples true \
803 -samplesdir $(samples_dir)
804
Scott Main15b85172017-02-21 14:30:58 -0800805LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000806
807include $(BUILD_DROIDDOC)
808
809# ==== docs for the web (on the androiddevdocs app engine server) =======================
Bart Searsa8cc0582015-05-07 03:23:20 +0000810include $(CLEAR_VARS)
811
812LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800813LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800814LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000815LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
816LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
817LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
818LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
819LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
820LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
821LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
822LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
823
824LOCAL_MODULE := online-system-api-sdk
825
826LOCAL_DROIDDOC_OPTIONS:= \
827 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700828 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000829 -showAnnotation android.annotation.SystemApi \
830 -title "Android SDK - Including system APIs." \
831 -toroot / \
Gina Dimino98ad8882016-05-31 17:25:48 -0700832 -hide 101 \
833 -hide 104 \
834 -hide 108 \
Bart Searsa8cc0582015-05-07 03:23:20 +0000835 -hdf android.whichdoc online \
836 $(sample_groups) \
837 -hdf android.hasSamples true \
838 -samplesdir $(samples_dir)
839
Scott Main15b85172017-02-21 14:30:58 -0800840LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Jeff Sharkey05461c02017-05-09 19:01:09 -0600841
Bart Searsa8cc0582015-05-07 03:23:20 +0000842LOCAL_UNINSTALLABLE_MODULE := true
843
844include $(BUILD_DROIDDOC)
Bart Searsa8cc0582015-05-07 03:23:20 +0000845
846# ==== docs for the web (on the devsite app engine server) =======================
847include $(CLEAR_VARS)
848LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800849LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800850LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000851LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
852LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
853LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
854LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
855LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
856LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
857LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
858# specify a second html input dir and an output path relative to OUT_DIR)
Dirk Dougherty3852c1f2016-04-10 02:05:09 -0700859LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
Bart Searsa8cc0582015-05-07 03:23:20 +0000860
861LOCAL_MODULE := ds
862
863LOCAL_DROIDDOC_OPTIONS:= \
864 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000865 -toroot / \
866 -hdf android.whichdoc online \
Dirk Doughertyb042ab12016-06-14 16:26:28 -0700867 -devsite \
Dirk Dougherty3852c1f2016-04-10 02:05:09 -0700868 $(sample_groups) \
Dirk Dougherty3852c1f2016-04-10 02:05:09 -0700869 -hdf android.hasSamples true \
870 -samplesdir $(samples_dir)
Bart Searsa8cc0582015-05-07 03:23:20 +0000871
Scott Main15b85172017-02-21 14:30:58 -0800872LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000873
874include $(BUILD_DROIDDOC)
875
Dirk Doughertyb042ab12016-06-14 16:26:28 -0700876# ==== docs for the web (on the devsite app engine server) =======================
877include $(CLEAR_VARS)
878LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800879LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800880LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Dirk Doughertyb042ab12016-06-14 16:26:28 -0700881LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
882LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
883LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
884LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
885LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
886LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
887LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
888# specify a second html input dir and an output path relative to OUT_DIR)
889LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
890
891LOCAL_MODULE := ds-static
892
893LOCAL_DROIDDOC_OPTIONS:= \
894 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
895 -hdf android.whichdoc online \
896 -staticonly \
897 -toroot / \
898 -devsite \
899 -ignoreJdLinks
900
Scott Main15b85172017-02-21 14:30:58 -0800901LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Dirk Doughertyb042ab12016-06-14 16:26:28 -0700902
903include $(BUILD_DROIDDOC)
904
Dirk Dougherty7d47b552016-09-13 16:44:25 -0700905# ==== generates full navtree for resolving @links in ds postprocessing ====
906include $(CLEAR_VARS)
907
908LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800909LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800910LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Dirk Dougherty7d47b552016-09-13 16:44:25 -0700911LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
912LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
913LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
914LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
915LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
916LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
917
918LOCAL_MODULE := ds-ref-navtree
919
920LOCAL_DROIDDOC_OPTIONS:= \
921 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
922 -hdf android.whichdoc online \
923 -toroot / \
924 -atLinksNavtree \
925 -navtreeonly
926
Scott Main15b85172017-02-21 14:30:58 -0800927LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Dirk Dougherty7d47b552016-09-13 16:44:25 -0700928
929include $(BUILD_DROIDDOC)
930
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800931# ==== site updates for docs (on the androiddevdocs app engine server) =======================
Bart Searsa8cc0582015-05-07 03:23:20 +0000932include $(CLEAR_VARS)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800933
Bart Searsa8cc0582015-05-07 03:23:20 +0000934LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800935LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800936LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000937LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
938LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
939LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
940LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800941LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
Bart Searsa8cc0582015-05-07 03:23:20 +0000942LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
943LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800944LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
Bart Searsa8cc0582015-05-07 03:23:20 +0000945
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800946LOCAL_MODULE := online-sdk-dev
Bart Searsa8cc0582015-05-07 03:23:20 +0000947
948LOCAL_DROIDDOC_OPTIONS:= \
949 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
950 -toroot / \
951 -hdf android.whichdoc online \
952 $(sample_groups) \
953 -hdf android.hasSamples true \
954 -samplesdir $(samples_dir)
955
Scott Main15b85172017-02-21 14:30:58 -0800956LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000957
958include $(BUILD_DROIDDOC)
959
Bart Searsa8cc0582015-05-07 03:23:20 +0000960# ==== docs that have all of the stuff that's @hidden =======================
961include $(CLEAR_VARS)
962
963LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800964LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800965LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000966LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
967LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
968LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
969LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
970LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
971LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
972
973LOCAL_MODULE := hidden
974LOCAL_DROIDDOC_OPTIONS:=\
975 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700976 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000977 -title "Android SDK - Including hidden APIs."
978# -hidden
979
Scott Main15b85172017-02-21 14:30:58 -0800980LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000981
982include $(BUILD_DROIDDOC)
983
Joe Onorato1754d742016-11-21 17:51:35 -0800984# ==== java proto host library ==============================
985include $(CLEAR_VARS)
986LOCAL_MODULE := platformprotos
987LOCAL_PROTOC_OPTIMIZE_TYPE := full
988LOCAL_PROTOC_FLAGS := \
989 -Iexternal/protobuf/src
990LOCAL_SOURCE_FILES_ALL_GENERATED := true
991LOCAL_SRC_FILES := \
Yi Jin04625ad2017-10-17 18:29:33 -0700992 tools/streaming_proto/stream.proto \
Mike Mada3a2952017-11-13 12:06:45 -0800993 cmds/am/proto/instrumentation_data.proto \
Joe Onorato1754d742016-11-21 17:51:35 -0800994 $(call all-proto-files-under, core/proto) \
Chenjie Yu15176cd2017-11-22 12:36:41 -0800995 $(call all-proto-files-under, libs/incident/proto) \
996 $(call all-proto-files-under, cmds/statsd/src)
Joe Onorato1754d742016-11-21 17:51:35 -0800997include $(BUILD_HOST_JAVA_LIBRARY)
998
Steven Timotius7ece0422017-08-03 13:37:26 -0700999# ==== java proto device library (for test only) ==============================
1000include $(CLEAR_VARS)
1001LOCAL_MODULE := platformprotosnano
1002LOCAL_MODULE_TAGS := tests optional
1003LOCAL_PROTOC_OPTIMIZE_TYPE := nano
1004LOCAL_PROTOC_FLAGS := \
1005 -Iexternal/protobuf/src
1006LOCAL_PROTO_JAVA_OUTPUT_PARAMS := \
1007 store_unknown_fields = true
1008LOCAL_JAVA_LIBRARIES := core-oj core-libart
1009LOCAL_SRC_FILES := \
1010 $(call all-proto-files-under, core/proto)
1011include $(BUILD_STATIC_JAVA_LIBRARY)
1012
Bart Searsa8cc0582015-05-07 03:23:20 +00001013
1014# Include subdirectory makefiles
1015# ============================================================
1016
1017# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
1018# team really wants is to build the stuff defined by this makefile.
1019ifeq (,$(ONE_SHOT_MAKEFILE))
1020include $(call first-makefiles-under,$(LOCAL_PATH))
1021endif
1022
1023endif # ANDROID_BUILD_EMBEDDED