blob: 7ca8358c637a9cb4d6c9a43b785fc639fd3f1740 [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 Yue44609b2017-11-30 14:03:58 -080049 frameworks/base/telephony/java/android/telephony/data/DataCallResponse.aidl \
Jack Yufc84bb52017-11-20 11:14:23 -080050 frameworks/base/telephony/java/android/telephony/data/DataProfile.aidl \
Jeff Davidson35cda392017-02-27 09:46:00 -080051 frameworks/base/telephony/java/android/telephony/euicc/DownloadableSubscription.aidl \
Jeff Davidson91c3d072017-04-12 12:17:11 -070052 frameworks/base/telephony/java/android/telephony/euicc/EuiccInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000053 frameworks/base/location/java/android/location/Location.aidl \
54 frameworks/base/location/java/android/location/Address.aidl \
55 frameworks/base/location/java/android/location/Criteria.aidl \
56 frameworks/base/media/java/android/media/MediaMetadata.aidl \
57 frameworks/base/media/java/android/media/MediaDescription.aidl \
58 frameworks/base/media/java/android/media/Rating.aidl \
59 frameworks/base/media/java/android/media/AudioAttributes.aidl \
60 frameworks/base/media/java/android/media/AudioFocusInfo.aidl \
61 frameworks/base/media/java/android/media/session/PlaybackState.aidl \
62 frameworks/base/media/java/android/media/session/MediaSession.aidl \
63 frameworks/base/media/java/android/media/tv/TvInputInfo.aidl \
64 frameworks/base/media/java/android/media/tv/TvTrackInfo.aidl \
65 frameworks/base/media/java/android/media/browse/MediaBrowser.aidl \
66 frameworks/base/wifi/java/android/net/wifi/ScanSettings.aidl \
Etan Cohen04133272016-10-26 11:22:06 -070067 frameworks/base/wifi/java/android/net/wifi/aware/ConfigRequest.aidl \
68 frameworks/base/wifi/java/android/net/wifi/aware/PublishConfig.aidl \
69 frameworks/base/wifi/java/android/net/wifi/aware/SubscribeConfig.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000070 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pInfo.aidl \
71 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pDeviceList.aidl \
72 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pConfig.aidl \
73 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pDevice.aidl \
74 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pGroup.aidl \
75 frameworks/base/wifi/java/android/net/wifi/p2p/nsd/WifiP2pServiceRequest.aidl \
76 frameworks/base/wifi/java/android/net/wifi/p2p/nsd/WifiP2pServiceInfo.aidl \
Etan Cohen17ba4722017-08-21 10:52:17 -070077 frameworks/base/wifi/java/android/net/wifi/rtt/RangingRequest.aidl \
78 frameworks/base/wifi/java/android/net/wifi/rtt/RangingResult.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000079 frameworks/base/wifi/java/android/net/wifi/WpsInfo.aidl \
80 frameworks/base/wifi/java/android/net/wifi/ScanResult.aidl \
Vinit Deshpandea772f0c2016-01-27 19:05:24 -080081 frameworks/base/wifi/java/android/net/wifi/PasspointManagementObjectDefinition.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000082 frameworks/base/wifi/java/android/net/wifi/WifiEnterpriseConfig.aidl \
83 frameworks/base/wifi/java/android/net/wifi/WifiConfiguration.aidl \
84 frameworks/base/wifi/java/android/net/wifi/WifiInfo.aidl \
85 frameworks/base/graphics/java/android/graphics/Region.aidl \
86 frameworks/base/graphics/java/android/graphics/Bitmap.aidl \
87 frameworks/base/graphics/java/android/graphics/Point.aidl \
88 frameworks/base/graphics/java/android/graphics/PointF.aidl \
89 frameworks/base/graphics/java/android/graphics/RectF.aidl \
90 frameworks/base/graphics/java/android/graphics/Rect.aidl \
Philip P. Moltmannbb9f6862015-12-01 14:44:24 -080091 frameworks/base/graphics/java/android/graphics/drawable/Icon.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000092 frameworks/base/core/java/android/accounts/AuthenticatorDescription.aidl \
93 frameworks/base/core/java/android/accounts/Account.aidl \
Michal Karpinskif77ee4f2016-10-12 16:40:06 +010094 frameworks/base/core/java/android/app/admin/ConnectEvent.aidl \
95 frameworks/base/core/java/android/app/admin/DnsEvent.aidl \
96 frameworks/base/core/java/android/app/admin/NetworkEvent.aidl \
Rubin Xud86d58c2015-05-05 16:57:37 +010097 frameworks/base/core/java/android/app/admin/SystemUpdatePolicy.aidl \
Andrew Scull5f9e6f32016-08-02 14:22:17 +010098 frameworks/base/core/java/android/app/admin/PasswordMetrics.aidl \
Jason Monk8f5f7ff2017-10-17 14:12:42 -040099 frameworks/base/core/java/android/app/slice/ISliceManager.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000100 frameworks/base/core/java/android/print/PrintDocumentInfo.aidl \
101 frameworks/base/core/java/android/print/PageRange.aidl \
102 frameworks/base/core/java/android/print/PrintAttributes.aidl \
103 frameworks/base/core/java/android/print/PrinterCapabilitiesInfo.aidl \
104 frameworks/base/core/java/android/print/PrinterId.aidl \
105 frameworks/base/core/java/android/print/PrintJobInfo.aidl \
106 frameworks/base/core/java/android/print/PrinterInfo.aidl \
107 frameworks/base/core/java/android/print/PrintJobId.aidl \
Philip P. Moltmann9dcb86a2016-03-14 14:31:12 -0700108 frameworks/base/core/java/android/printservice/recommendation/RecommendationInfo.aidl \
Tomasz Wasilczyk8cfb0e82017-07-12 13:59:20 -0700109 frameworks/base/core/java/android/hardware/radio/ProgramSelector.aidl \
Tomasz Wasilczyk347192e2017-04-04 11:13:44 -0700110 frameworks/base/core/java/android/hardware/radio/RadioManager.aidl \
Tomasz Wasilczykc9a1ac72017-05-17 21:29:28 -0700111 frameworks/base/core/java/android/hardware/radio/RadioMetadata.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000112 frameworks/base/core/java/android/hardware/usb/UsbDevice.aidl \
113 frameworks/base/core/java/android/hardware/usb/UsbInterface.aidl \
114 frameworks/base/core/java/android/hardware/usb/UsbEndpoint.aidl \
115 frameworks/base/core/java/android/hardware/usb/UsbAccessory.aidl \
116 frameworks/base/core/java/android/os/Messenger.aidl \
117 frameworks/base/core/java/android/os/PatternMatcher.aidl \
118 frameworks/base/core/java/android/os/Message.aidl \
119 frameworks/base/core/java/android/os/UserHandle.aidl \
120 frameworks/base/core/java/android/os/ParcelUuid.aidl \
121 frameworks/base/core/java/android/os/ParcelFileDescriptor.aidl \
122 frameworks/base/core/java/android/os/ResultReceiver.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000123 frameworks/base/core/java/android/os/WorkSource.aidl \
124 frameworks/base/core/java/android/os/DropBoxManager.aidl \
125 frameworks/base/core/java/android/os/Bundle.aidl \
Sudheer Shankacc6418f2016-10-13 12:03:44 -0700126 frameworks/base/core/java/android/os/Debug.aidl \
John Reckdea6a022017-05-25 17:09:33 -0700127 frameworks/base/core/java/android/os/SharedMemory.aidl \
Sudheer Shankafc46e9b2016-10-21 17:55:27 -0700128 frameworks/base/core/java/android/os/StrictMode.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000129 frameworks/base/core/java/android/accessibilityservice/AccessibilityServiceInfo.aidl \
130 frameworks/base/core/java/android/net/Network.aidl \
131 frameworks/base/core/java/android/net/RouteInfo.aidl \
132 frameworks/base/core/java/android/net/NetworkInfo.aidl \
133 frameworks/base/core/java/android/net/IpPrefix.aidl \
134 frameworks/base/core/java/android/net/NetworkCapabilities.aidl \
135 frameworks/base/core/java/android/net/DhcpInfo.aidl \
136 frameworks/base/core/java/android/net/ProxyInfo.aidl \
137 frameworks/base/core/java/android/net/LinkProperties.aidl \
138 frameworks/base/core/java/android/net/Uri.aidl \
139 frameworks/base/core/java/android/net/NetworkRequest.aidl \
140 frameworks/base/core/java/android/net/LinkAddress.aidl \
Svet Ganov53a441c2016-04-19 19:38:00 -0700141 frameworks/base/core/java/android/util/MemoryIntArray.aidl \
P.Y. Laligandb3b9eb32015-05-11 15:02:07 -0700142 frameworks/base/core/java/android/view/Display.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000143 frameworks/base/core/java/android/view/InputDevice.aidl \
144 frameworks/base/core/java/android/view/InputEvent.aidl \
Eino-Ville Talvala5d2d7782015-12-17 16:50:50 -0800145 frameworks/native/aidl/gui/android/view/Surface.aidl \
P.Y. Laligandb3b9eb32015-05-11 15:02:07 -0700146 frameworks/base/core/java/android/view/WindowContentFrameStats.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000147 frameworks/base/core/java/android/view/inputmethod/InputMethodSubtype.aidl \
148 frameworks/base/core/java/android/view/inputmethod/CursorAnchorInfo.aidl \
149 frameworks/base/core/java/android/view/inputmethod/CompletionInfo.aidl \
150 frameworks/base/core/java/android/view/inputmethod/ExtractedText.aidl \
151 frameworks/base/core/java/android/view/inputmethod/EditorInfo.aidl \
152 frameworks/base/core/java/android/view/inputmethod/InputMethodInfo.aidl \
153 frameworks/base/core/java/android/view/inputmethod/CorrectionInfo.aidl \
154 frameworks/base/core/java/android/view/inputmethod/InputBinding.aidl \
155 frameworks/base/core/java/android/view/inputmethod/ExtractedTextRequest.aidl \
156 frameworks/base/core/java/android/view/DragEvent.aidl \
157 frameworks/base/core/java/android/view/KeyEvent.aidl \
158 frameworks/base/core/java/android/view/WindowManager.aidl \
159 frameworks/base/core/java/android/view/WindowAnimationFrameStats.aidl \
160 frameworks/base/core/java/android/view/MotionEvent.aidl \
161 frameworks/base/core/java/android/view/accessibility/AccessibilityNodeInfo.aidl \
162 frameworks/base/core/java/android/view/accessibility/AccessibilityRecord.aidl \
163 frameworks/base/core/java/android/view/accessibility/AccessibilityWindowInfo.aidl \
164 frameworks/base/core/java/android/view/accessibility/AccessibilityEvent.aidl \
165 frameworks/base/core/java/android/view/textservice/SpellCheckerSubtype.aidl \
166 frameworks/base/core/java/android/view/textservice/TextInfo.aidl \
167 frameworks/base/core/java/android/view/textservice/SpellCheckerInfo.aidl \
168 frameworks/base/core/java/android/view/textservice/SentenceSuggestionsInfo.aidl \
169 frameworks/base/core/java/android/view/textservice/SuggestionsInfo.aidl \
170 frameworks/base/core/java/android/service/carrier/CarrierIdentifier.aidl \
171 frameworks/base/core/java/android/service/carrier/MessagePdu.aidl \
Jeff Davidson91c3d072017-04-12 12:17:11 -0700172 frameworks/base/core/java/android/service/euicc/GetDefaultDownloadableSubscriptionListResult.aidl \
Jeff Davidson35cda392017-02-27 09:46:00 -0800173 frameworks/base/core/java/android/service/euicc/GetDownloadableSubscriptionMetadataResult.aidl \
Jeff Davidsond02731f2017-04-09 14:31:09 -0700174 frameworks/base/core/java/android/service/euicc/GetEuiccProfileInfoListResult.aidl \
Julia Reynolds22f02b32016-12-01 15:05:13 -0500175 frameworks/base/core/java/android/service/notification/Adjustment.aidl \
176 frameworks/base/core/java/android/service/notification/Condition.aidl \
177 frameworks/base/core/java/android/service/notification/SnoozeCriterion.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000178 frameworks/base/core/java/android/service/notification/StatusBarNotification.aidl \
179 frameworks/base/core/java/android/service/chooser/ChooserTarget.aidl \
Kang Libbced1c2017-04-05 12:30:55 -0700180 frameworks/base/core/java/android/service/resolver/ResolverTarget.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000181 frameworks/base/core/java/android/speech/tts/Voice.aidl \
Daniel Nishicf9d19e2017-01-23 14:33:42 -0800182 frameworks/base/core/java/android/app/usage/CacheQuotaHint.aidl \
Jeff Sharkey8dedad32017-01-09 18:21:21 -0700183 frameworks/base/core/java/android/app/usage/ExternalStorageStats.aidl \
Jeff Sharkeye8cece92017-01-04 11:33:33 -0700184 frameworks/base/core/java/android/app/usage/StorageStats.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000185 frameworks/base/core/java/android/app/usage/UsageEvents.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000186 frameworks/base/core/java/android/app/Notification.aidl \
187 frameworks/base/core/java/android/app/NotificationManager.aidl \
188 frameworks/base/core/java/android/app/WallpaperInfo.aidl \
189 frameworks/base/core/java/android/app/AppOpsManager.aidl \
190 frameworks/base/core/java/android/app/ActivityManager.aidl \
191 frameworks/base/core/java/android/app/PendingIntent.aidl \
192 frameworks/base/core/java/android/app/AlarmManager.aidl \
193 frameworks/base/core/java/android/app/SearchableInfo.aidl \
194 frameworks/base/core/java/android/app/VoiceInteractor.aidl \
Dianne Hackborn69c6adc2015-06-02 10:52:59 -0700195 frameworks/base/core/java/android/app/assist/AssistContent.aidl \
196 frameworks/base/core/java/android/app/assist/AssistStructure.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000197 frameworks/base/core/java/android/app/job/JobParameters.aidl \
198 frameworks/base/core/java/android/app/job/JobInfo.aidl \
199 frameworks/base/core/java/android/appwidget/AppWidgetProviderInfo.aidl \
200 frameworks/base/core/java/android/content/ClipDescription.aidl \
201 frameworks/base/core/java/android/content/IntentFilter.aidl \
202 frameworks/base/core/java/android/content/Intent.aidl \
203 frameworks/base/core/java/android/content/res/Configuration.aidl \
204 frameworks/base/core/java/android/content/res/ObbInfo.aidl \
205 frameworks/base/core/java/android/content/RestrictionEntry.aidl \
206 frameworks/base/core/java/android/content/ClipData.aidl \
207 frameworks/base/core/java/android/content/SyncAdapterType.aidl \
208 frameworks/base/core/java/android/content/SyncRequest.aidl \
209 frameworks/base/core/java/android/content/PeriodicSync.aidl \
210 frameworks/base/core/java/android/content/SyncResult.aidl \
211 frameworks/base/core/java/android/content/pm/FeatureInfo.aidl \
212 frameworks/base/core/java/android/content/pm/InstrumentationInfo.aidl \
213 frameworks/base/core/java/android/content/pm/PackageInstaller.aidl \
214 frameworks/base/core/java/android/content/pm/ServiceInfo.aidl \
215 frameworks/base/core/java/android/content/pm/Signature.aidl \
216 frameworks/base/core/java/android/content/pm/ApplicationInfo.aidl \
217 frameworks/base/core/java/android/content/pm/PermissionInfo.aidl \
218 frameworks/base/core/java/android/content/pm/ActivityInfo.aidl \
Sudheer Shankafc46e9b2016-10-21 17:55:27 -0700219 frameworks/base/core/java/android/content/pm/ConfigurationInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000220 frameworks/base/core/java/android/content/pm/PackageInfo.aidl \
221 frameworks/base/core/java/android/content/pm/ResolveInfo.aidl \
222 frameworks/base/core/java/android/content/pm/ProviderInfo.aidl \
223 frameworks/base/core/java/android/content/pm/PackageStats.aidl \
224 frameworks/base/core/java/android/content/pm/PermissionGroupInfo.aidl \
Makoto Onuki6f7362d92016-03-04 13:39:41 -0800225 frameworks/base/core/java/android/content/pm/ShortcutInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000226 frameworks/base/core/java/android/content/pm/LabeledIntent.aidl \
227 frameworks/base/core/java/android/content/ComponentName.aidl \
228 frameworks/base/core/java/android/content/SyncStats.aidl \
229 frameworks/base/core/java/android/content/ContentValues.aidl \
230 frameworks/base/core/java/android/content/SyncInfo.aidl \
231 frameworks/base/core/java/android/content/IntentSender.aidl \
232 frameworks/base/core/java/android/widget/RemoteViews.aidl \
233 frameworks/base/core/java/android/text/style/SuggestionSpan.aidl \
234 frameworks/base/core/java/android/nfc/Tag.aidl \
235 frameworks/base/core/java/android/nfc/NdefRecord.aidl \
236 frameworks/base/core/java/android/nfc/NdefMessage.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000237 frameworks/base/core/java/android/database/CursorWindow.aidl \
Jason Monkbbadff82015-11-06 15:47:26 -0500238 frameworks/base/core/java/android/service/quicksettings/Tile.aidl \
Samuel Tan239951a2016-01-05 17:29:43 -0800239 frameworks/native/aidl/binder/android/os/PersistableBundle.aidl \
Jakub Pawlowski06ae9c62017-08-08 04:27:20 -0700240 system/bt/binder/android/bluetooth/BluetoothHealthAppConfiguration.aidl \
241 system/bt/binder/android/bluetooth/le/AdvertiseSettings.aidl \
242 system/bt/binder/android/bluetooth/le/ScanSettings.aidl \
243 system/bt/binder/android/bluetooth/le/AdvertiseData.aidl \
244 system/bt/binder/android/bluetooth/le/ScanFilter.aidl \
245 system/bt/binder/android/bluetooth/le/ScanResult.aidl \
246 system/bt/binder/android/bluetooth/BluetoothDevice.aidl \
Robin Lee10606942016-03-30 18:52:40 +0100247 system/netd/server/binder/android/net/UidRange.aidl \
Robert Greenwalt37409c52016-06-02 13:43:27 -0700248 frameworks/base/telephony/java/android/telephony/PcoData.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000249
250gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl
251$(gen): PRIVATE_SRC_FILES := $(aidl_files)
252ALL_SDK_FILES += $(gen)
253$(gen): $(aidl_files) | $(AIDL)
254 @echo Aidl Preprocess: $@
255 $(hide) $(AIDL) --preprocess $@ $(PRIVATE_SRC_FILES)
256
257# the documentation
258# ============================================================
259
260# TODO: deal with com/google/android/googleapps
261packages_to_document := \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800262 android \
263 javax/microedition/khronos \
264 org/apache/http/conn \
265 org/apache/http/params \
Bart Searsa8cc0582015-05-07 03:23:20 +0000266
267# include definition of libcore_to_document
268include libcore/Docs.mk
269
Bart Searsa8cc0582015-05-07 03:23:20 +0000270non_base_dirs := \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800271 ../opt/telephony/src/java/android/telephony \
272 ../opt/telephony/src/java/android/telephony/gsm \
273 ../opt/net/voip/src/java/android/net/rtp \
274 ../opt/net/voip/src/java/android/net/sip \
Bart Searsa8cc0582015-05-07 03:23:20 +0000275
Paul Duffinc08090f2017-06-29 14:58:43 +0100276framework_base_android_test_mock_src_files := \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800277 $(call all-java-files-under, test-mock/src/android/test/mock)
Paul Duffinc08090f2017-06-29 14:58:43 +0100278
279framework_base_android_test_runner_excluding_mock_src_files := \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800280 $(filter-out $(framework_base_android_test_mock_src_files), $(call all-java-files-under, test-runner/src))
Paul Duffinc08090f2017-06-29 14:58:43 +0100281
Colin Crosscf3a0b52017-11-16 00:15:28 -0800282# Find all files in specific directories (relative to frameworks/base)
283# to document and check apis
284files_to_check_apis := \
285 $(call find-other-java-files, \
286 test-base/src \
287 $(non_base_dirs) \
288 )
Bart Searsa8cc0582015-05-07 03:23:20 +0000289
Colin Crosscf3a0b52017-11-16 00:15:28 -0800290# Find all files in specific packages that were used to compile
291# framework.jar to document and check apis
292files_to_check_apis += \
293 $(addprefix ../../,\
294 $(filter \
295 $(foreach dir,$(FRAMEWORKS_BASE_JAVA_SRC_DIRS),\
296 $(foreach package,$(packages_to_document),\
297 $(dir)/$(package)/%.java)),\
298 $(SOONG_FRAMEWORK_SRCS)))
299
300# Find all generated files that were used to compile framework.jar
Colin Crossbd200ce2017-12-04 13:45:19 -0800301files_to_check_apis_generated := \
302 $(filter $(OUT_DIR)/%,\
303 $(SOONG_FRAMEWORK_SRCS))
George Mountf6be9932015-12-03 07:39:55 -0800304
Bart Searsa8cc0582015-05-07 03:23:20 +0000305# These are relative to frameworks/base
306# FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
Colin Crosscf3a0b52017-11-16 00:15:28 -0800307files_to_document := \
308 $(files_to_check_apis) \
309 $(call find-other-java-files,\
310 $(addprefix ../../, $(FRAMEWORKS_DATA_BINDING_JAVA_SRC_DIRS)) \
311 test-runner/src)
George Mountf6be9932015-12-03 07:39:55 -0800312
Bart Searsa8cc0582015-05-07 03:23:20 +0000313# These are relative to frameworks/base
314html_dirs := \
315 $(FRAMEWORKS_BASE_SUBDIRS) \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800316 $(non_base_dirs) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000317
318# Common sources for doc check and api check
319common_src_files := \
320 $(call find-other-html-files, $(html_dirs)) \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800321 $(addprefix ../../, $(libcore_to_document)) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000322
323# These are relative to frameworks/base
324framework_docs_LOCAL_SRC_FILES := \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800325 $(files_to_document) \
326 $(common_src_files) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000327
328# These are relative to frameworks/base
329framework_docs_LOCAL_API_CHECK_SRC_FILES := \
Colin Crosscf3a0b52017-11-16 00:15:28 -0800330 $(framework_base_android_test_mock_src_files) \
331 $(framework_base_android_test_runner_excluding_mock_src_files) \
332 $(files_to_check_apis) \
333 $(common_src_files) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000334
335# This is used by ide.mk as the list of source files that are
336# always included.
337INTERNAL_SDK_SOURCE_DIRS := $(addprefix $(LOCAL_PATH)/,$(dirs_to_document))
338
339framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
340 $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
341
Colin Crosscf3a0b52017-11-16 00:15:28 -0800342framework_docs_LOCAL_SRCJARS := $(SOONG_FRAMEWORK_SRCJARS)
343
Colin Crossbd200ce2017-12-04 13:45:19 -0800344framework_docs_LOCAL_GENERATED_SOURCES := \
345 $(libcore_to_document_generated) \
346 $(files_to_check_apis_generated) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000347
348framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES := \
Piotr Jastrzebskicfa292e2015-02-17 16:58:52 +0000349 core-oj \
Bart Searsa8cc0582015-05-07 03:23:20 +0000350 core-libart \
351 conscrypt \
352 bouncycastle \
353 okhttp \
354 ext \
Rayhaan Jaufeerally2e47a6e2015-08-03 13:54:28 +0100355 icu4j \
Bart Searsa8cc0582015-05-07 03:23:20 +0000356 framework \
Paul Duffinc08090f2017-06-29 14:58:43 +0100357 voip-common \
358 android.test.mock \
Bart Searsa8cc0582015-05-07 03:23:20 +0000359
Alan Viverette9ca513e2017-04-05 10:21:58 -0400360# Platform docs can refer to Support Library APIs, but we don't actually build
361# them as part of the docs target, so we need to include them on the classpath.
Bart Searsa8cc0582015-05-07 03:23:20 +0000362framework_docs_LOCAL_JAVA_LIBRARIES := \
363 $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) \
364 $(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES)
365
366framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
367framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
368# The since flag (-since N.xml API_LEVEL) is used to add API Level information
369# to the reference documentation. Must be in order of oldest to newest.
370#
371# Conscrypt (com.android.org.conscrypt) is an implementation detail and should
372# not be referenced in the documentation.
373framework_docs_LOCAL_DROIDDOC_OPTIONS := \
Jeff Sharkey0f3f60b2017-04-24 18:06:20 -0600374 -android \
Bart Searsa8cc0582015-05-07 03:23:20 +0000375 -knowntags ./frameworks/base/docs/knowntags.txt \
Narayan Kamath2c4f2842015-07-27 14:02:11 +0100376 -knowntags ./libcore/known_oj_tags.txt \
Jeff Sharkeybfc4fcd2017-06-05 17:38:17 -0600377 -manifest ./frameworks/base/core/res/AndroidManifest.xml \
Neil Fuller57157fb2017-11-24 15:58:38 +0000378 -hidePackage com.android.okhttp \
Bart Searsa8cc0582015-05-07 03:23:20 +0000379 -hidePackage com.android.org.conscrypt \
Neil Fuller371c08c2017-11-27 10:32:07 +0000380 -hidePackage com.android.server \
Bart Searsa8cc0582015-05-07 03:23:20 +0000381 -since $(SRC_API_DIR)/1.xml 1 \
382 -since $(SRC_API_DIR)/2.xml 2 \
383 -since $(SRC_API_DIR)/3.xml 3 \
384 -since $(SRC_API_DIR)/4.xml 4 \
385 -since $(SRC_API_DIR)/5.xml 5 \
386 -since $(SRC_API_DIR)/6.xml 6 \
387 -since $(SRC_API_DIR)/7.xml 7 \
388 -since $(SRC_API_DIR)/8.xml 8 \
389 -since $(SRC_API_DIR)/9.xml 9 \
390 -since $(SRC_API_DIR)/10.xml 10 \
391 -since $(SRC_API_DIR)/11.xml 11 \
392 -since $(SRC_API_DIR)/12.xml 12 \
393 -since $(SRC_API_DIR)/13.xml 13 \
394 -since $(SRC_API_DIR)/14.txt 14 \
395 -since $(SRC_API_DIR)/15.txt 15 \
396 -since $(SRC_API_DIR)/16.txt 16 \
397 -since $(SRC_API_DIR)/17.txt 17 \
398 -since $(SRC_API_DIR)/18.txt 18 \
399 -since $(SRC_API_DIR)/19.txt 19 \
400 -since $(SRC_API_DIR)/20.txt 20 \
401 -since $(SRC_API_DIR)/21.txt 21 \
402 -since $(SRC_API_DIR)/22.txt 22 \
Joe Fernandez1827e322015-08-12 19:45:22 -0700403 -since $(SRC_API_DIR)/23.txt 23 \
Dirk Dougherty5f60f7c2016-06-14 16:26:28 -0700404 -since $(SRC_API_DIR)/24.txt 24 \
Dirk Dougherty3376f582016-10-14 10:27:08 -0700405 -since $(SRC_API_DIR)/25.txt 25 \
Dirk Doughertyfdad0ba2017-06-09 14:43:32 -0700406 -since $(SRC_API_DIR)/26.txt 26 \
Andrew Solovaya6019b22017-10-06 14:27:20 -0700407 -since $(SRC_API_DIR)/27.txt 27 \
Jeff Sharkeyc204c222017-11-27 15:02:10 -0700408 -werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 \
Jeff Sharkey0f3f60b2017-04-24 18:06:20 -0600409 -overview $(LOCAL_PATH)/core/java/overview.html \
Bart Searsa8cc0582015-05-07 03:23:20 +0000410
411framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR:= \
412 $(call intermediates-dir-for,JAVA_LIBRARIES,framework,,COMMON)
413
414framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= \
Alan Viverette9ca513e2017-04-05 10:21:58 -0400415 $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
Bart Searsa8cc0582015-05-07 03:23:20 +0000416
417framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES := \
Narayan Kamathc21739a2015-07-14 13:39:23 +0100418 frameworks/base/docs/knowntags.txt \
Colin Cross72d359f2017-10-27 10:46:53 -0700419 $(libcore_to_document_generated)
Bart Searsa8cc0582015-05-07 03:23:20 +0000420
421samples_dir := development/samples/browseable
422
423# Whitelist of valid groups, used for default TOC grouping. Each sample must
424# belong to one (and only one) group. Assign samples to groups by setting
425# a sample.group var to one of these groups in the sample's _index.jd.
426sample_groups := -samplegroup Admin \
427 -samplegroup Background \
428 -samplegroup Connectivity \
429 -samplegroup Content \
430 -samplegroup Input \
431 -samplegroup Media \
432 -samplegroup Notification \
433 -samplegroup RenderScript \
434 -samplegroup Security \
435 -samplegroup Sensors \
Trevor Johns4cbe3592015-05-27 14:50:51 -0700436 -samplegroup System \
Bart Searsa8cc0582015-05-07 03:23:20 +0000437 -samplegroup Testing \
438 -samplegroup UI \
439 -samplegroup Views \
440 -samplegroup Wearable
441
442## SDK version identifiers used in the published docs
443 # major[.minor] version for current SDK. (full releases only)
smain@google.comdde8deb2016-08-29 18:36:50 -0700444framework_docs_SDK_VERSION:=7.0
Bart Searsa8cc0582015-05-07 03:23:20 +0000445 # release version (ie "Release x") (full releases only)
446framework_docs_SDK_REL_ID:=1
447
448framework_docs_LOCAL_DROIDDOC_OPTIONS += \
Billy Lamberta75dbc8f2017-03-03 13:09:15 -0800449 -hdf dac true \
Scott Mainf8cdfc82017-03-21 13:43:31 -0700450 -hdf sdk.codename O \
451 -hdf sdk.preview.version 1 \
Bart Searsa8cc0582015-05-07 03:23:20 +0000452 -hdf sdk.version $(framework_docs_SDK_VERSION) \
453 -hdf sdk.rel.id $(framework_docs_SDK_REL_ID) \
Scott Mainf8cdfc82017-03-21 13:43:31 -0700454 -hdf sdk.preview 0 \
455 -resourcesdir $(LOCAL_PATH)/docs/html/reference/images/ \
456 -resourcesoutdir reference/android/images/
Bart Searsa8cc0582015-05-07 03:23:20 +0000457
Alan Viverette9ca513e2017-04-05 10:21:58 -0400458# Federate Support Library references against local API file.
459framework_docs_LOCAL_DROIDDOC_OPTIONS += \
460 -federate SupportLib https://developer.android.com \
461 -federationapi SupportLib prebuilts/sdk/current/support-api.txt
462
Jeff Sharkeyd2bf31c2017-11-29 13:14:27 -0700463# ==== Public API diff ===========================
Alan Viverette6b7354c2017-07-13 17:10:14 -0400464include $(CLEAR_VARS)
465
466LOCAL_SRC_FILES := $(framework_docs_LOCAL_API_CHECK_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800467LOCAL_GENERATED_SOURCES := $(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800468LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Alan Viverette6b7354c2017-07-13 17:10:14 -0400469LOCAL_JAVA_LIBRARIES := $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
470LOCAL_MODULE_CLASS := $(framework_docs_LOCAL_MODULE_CLASS)
471LOCAL_ADDITIONAL_JAVA_DIR := $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
472LOCAL_ADDITIONAL_DEPENDENCIES := \
473 $(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) \
474 $(INTERNAL_PLATFORM_API_FILE)
475
476LOCAL_MODULE := offline-sdk-referenceonly
477
478last_released_sdk_version := $(lastword $(call numerically_sort, \
479 $(filter-out current, \
480 $(patsubst $(SRC_API_DIR)/%.txt,%, $(wildcard $(SRC_API_DIR)/*.txt)) \
481 )\
482 ))
483
484LOCAL_APIDIFF_OLDAPI := $(LOCAL_PATH)/../../$(SRC_API_DIR)/$(last_released_sdk_version)
485LOCAL_APIDIFF_NEWAPI := $(LOCAL_PATH)/../../$(basename $(INTERNAL_PLATFORM_API_FILE))
486
487include $(BUILD_APIDIFF)
488
Jeff Sharkeyd2bf31c2017-11-29 13:14:27 -0700489# ==== System API diff ===========================
490include $(CLEAR_VARS)
491
492LOCAL_SRC_FILES := $(framework_docs_LOCAL_API_CHECK_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800493LOCAL_GENERATED_SOURCES := $(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800494LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Jeff Sharkeyd2bf31c2017-11-29 13:14:27 -0700495LOCAL_JAVA_LIBRARIES := $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
496LOCAL_MODULE_CLASS := $(framework_docs_LOCAL_MODULE_CLASS)
497LOCAL_ADDITIONAL_JAVA_DIR := $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
498LOCAL_ADDITIONAL_DEPENDENCIES := \
499 $(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) \
500 $(INTERNAL_PLATFORM_SYSTEM_API_FILE)
501
502LOCAL_MODULE := offline-system-sdk-referenceonly
503
504last_released_sdk_version := $(lastword $(call numerically_sort, \
505 $(filter-out current, \
506 $(patsubst $(SRC_SYSTEM_API_DIR)/%.txt,%, $(wildcard $(SRC_SYSTEM_API_DIR)/*.txt)) \
507 )\
508 ))
509
510LOCAL_APIDIFF_OLDAPI := $(LOCAL_PATH)/../../$(SRC_SYSTEM_API_DIR)/$(last_released_sdk_version)
511LOCAL_APIDIFF_NEWAPI := $(LOCAL_PATH)/../../$(basename $(INTERNAL_PLATFORM_SYSTEM_API_FILE))
512
513include $(BUILD_APIDIFF)
514
Bart Searsa8cc0582015-05-07 03:23:20 +0000515# ==== the api stubs and current.xml ===========================
516include $(CLEAR_VARS)
517
518LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800519LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800520LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000521LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
522LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
523LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
524LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
525LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
526LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
527
528LOCAL_MODULE := api-stubs
529
Ying Wang0f92a2e2015-07-16 14:20:22 -0700530LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_stubs_current_intermediates/src
531
Bart Searsa8cc0582015-05-07 03:23:20 +0000532LOCAL_DROIDDOC_OPTIONS:=\
533 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700534 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000535 -api $(INTERNAL_PLATFORM_API_FILE) \
536 -removedApi $(INTERNAL_PLATFORM_REMOVED_API_FILE) \
537 -nodocs
538
Scott Main15b85172017-02-21 14:30:58 -0800539LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000540
541LOCAL_UNINSTALLABLE_MODULE := true
542
543include $(BUILD_DROIDDOC)
544
545# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
Colin Crosscf3a0b52017-11-16 00:15:28 -0800546$(full_target): $(gen)
Bart Searsa8cc0582015-05-07 03:23:20 +0000547$(INTERNAL_PLATFORM_API_FILE): $(full_target)
548$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE))
549
550# ==== the system api stubs ===================================
551include $(CLEAR_VARS)
552
553LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800554LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800555LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000556LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
557LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
558LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
559LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
560LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
561LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
562
563LOCAL_MODULE := system-api-stubs
564
Ying Wang0f92a2e2015-07-16 14:20:22 -0700565LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_system_stubs_current_intermediates/src
566
Bart Searsa8cc0582015-05-07 03:23:20 +0000567LOCAL_DROIDDOC_OPTIONS:=\
568 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700569 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000570 -showAnnotation android.annotation.SystemApi \
571 -api $(INTERNAL_PLATFORM_SYSTEM_API_FILE) \
572 -removedApi $(INTERNAL_PLATFORM_SYSTEM_REMOVED_API_FILE) \
Jeff Sharkey05461c02017-05-09 19:01:09 -0600573 -exactApi $(INTERNAL_PLATFORM_SYSTEM_EXACT_API_FILE) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000574 -nodocs
575
Scott Main15b85172017-02-21 14:30:58 -0800576LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000577
578LOCAL_UNINSTALLABLE_MODULE := true
579
580include $(BUILD_DROIDDOC)
581
582# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
Colin Crosscf3a0b52017-11-16 00:15:28 -0800583$(full_target): $(gen)
Bart Searsa8cc0582015-05-07 03:23:20 +0000584$(INTERNAL_PLATFORM_SYSTEM_API_FILE): $(full_target)
585$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_SYSTEM_API_FILE))
586
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000587# ==== the test api stubs ===================================
588include $(CLEAR_VARS)
589
590LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800591LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800592LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000593LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
594LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
595LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
596LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
597LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
598LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
599
600LOCAL_MODULE := test-api-stubs
601
602LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src
603
604LOCAL_DROIDDOC_OPTIONS:=\
605 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700606 -referenceonly \
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000607 -stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src \
608 -showAnnotation android.annotation.TestApi \
609 -api $(INTERNAL_PLATFORM_TEST_API_FILE) \
610 -removedApi $(INTERNAL_PLATFORM_TEST_REMOVED_API_FILE) \
Jeff Sharkey05461c02017-05-09 19:01:09 -0600611 -exactApi $(INTERNAL_PLATFORM_TEST_EXACT_API_FILE) \
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000612 -nodocs
613
Scott Main15b85172017-02-21 14:30:58 -0800614LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000615
616LOCAL_UNINSTALLABLE_MODULE := true
617
618include $(BUILD_DROIDDOC)
619
620# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
Colin Crosscf3a0b52017-11-16 00:15:28 -0800621$(full_target): $(gen)
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000622$(INTERNAL_PLATFORM_TEST_API_FILE): $(full_target)
623$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_TEST_API_FILE))
624
Bart Searsa8cc0582015-05-07 03:23:20 +0000625# ==== check javadoc comments but don't generate docs ========
626include $(CLEAR_VARS)
627
628LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800629LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800630LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000631LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
632LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
633LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
634LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
635LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
636LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
637
638LOCAL_MODULE := doc-comment-check
639
640LOCAL_DROIDDOC_OPTIONS:=\
641 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700642 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000643 -parsecomments
644
Scott Main15b85172017-02-21 14:30:58 -0800645LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000646
647LOCAL_UNINSTALLABLE_MODULE := true
648
649include $(BUILD_DROIDDOC)
650
651# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
Colin Crosscf3a0b52017-11-16 00:15:28 -0800652$(full_target): $(gen)
Bart Searsa8cc0582015-05-07 03:23:20 +0000653
654# Run this for checkbuild
655checkbuild: doc-comment-check-docs
656# Check comment when you are updating the API
657update-api: doc-comment-check-docs
658
659# ==== static html in the sdk ==================================
660include $(CLEAR_VARS)
661
662LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800663LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800664LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000665LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
666LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
667LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
668LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
669LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
670LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
671
672LOCAL_MODULE := offline-sdk
673
674LOCAL_DROIDDOC_OPTIONS:=\
675 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
676 -offlinemode \
677 -title "Android SDK" \
678 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
smain@google.com00de8c52016-03-07 18:38:08 -0800679 -sdkvalues $(OUT_DOCS) \
smain@google.com8562ab52016-06-14 17:11:57 -0700680 -hdf android.whichdoc offline
681
Scott Main15b85172017-02-21 14:30:58 -0800682LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
smain@google.com8562ab52016-06-14 17:11:57 -0700683
684include $(BUILD_DROIDDOC)
685
686static_doc_index_redirect := $(out_dir)/index.html
687$(static_doc_index_redirect): \
688 $(LOCAL_PATH)/docs/docs-preview-index.html | $(ACP)
689 $(hide) mkdir -p $(dir $@)
690 $(hide) $(ACP) $< $@
691
692$(full_target): $(static_doc_index_redirect)
smain@google.com8562ab52016-06-14 17:11:57 -0700693
694
Jeff Sharkeyd2bf31c2017-11-29 13:14:27 -0700695# ==== Public API static reference docs ==================================
smain@google.com8562ab52016-06-14 17:11:57 -0700696include $(CLEAR_VARS)
697
698LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800699LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800700LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
smain@google.com8562ab52016-06-14 17:11:57 -0700701LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
702LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
703LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
704LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
705LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
706LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
707
708LOCAL_MODULE := offline-sdk-referenceonly
709
710LOCAL_DROIDDOC_OPTIONS:=\
711 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
712 -offlinemode \
713 -title "Android SDK" \
714 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
715 -sdkvalues $(OUT_DOCS) \
smain@google.com00de8c52016-03-07 18:38:08 -0800716 -hdf android.whichdoc offline \
Scott Mainf8cdfc82017-03-21 13:43:31 -0700717 -referenceonly
smain@google.com00de8c52016-03-07 18:38:08 -0800718
Scott Main15b85172017-02-21 14:30:58 -0800719LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
smain@google.com00de8c52016-03-07 18:38:08 -0800720
721include $(BUILD_DROIDDOC)
722
723static_doc_index_redirect := $(out_dir)/index.html
smain@google.com151833a2016-08-31 08:42:09 -0700724$(static_doc_index_redirect): $(LOCAL_PATH)/docs/docs-documentation-redirect.html
Dan Willemsen98ff0b72016-03-23 00:42:44 -0700725 $(copy-file-to-target)
smain@google.com00de8c52016-03-07 18:38:08 -0800726
smain@google.com2f2365d2016-09-21 14:05:50 -0700727static_doc_properties := $(out_dir)/source.properties
728$(static_doc_properties): \
729 $(LOCAL_PATH)/docs/source.properties | $(ACP)
730 $(hide) mkdir -p $(dir $@)
731 $(hide) $(ACP) $< $@
732
smain@google.com00de8c52016-03-07 18:38:08 -0800733$(full_target): $(static_doc_index_redirect)
smain@google.com2f2365d2016-09-21 14:05:50 -0700734$(full_target): $(static_doc_properties)
smain@google.com00de8c52016-03-07 18:38:08 -0800735
smain@google.com7aca8be2016-03-10 14:13:30 -0800736
Jeff Sharkeyd2bf31c2017-11-29 13:14:27 -0700737# ==== System API static reference docs ==================================
738include $(CLEAR_VARS)
739
740LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800741LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800742LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Jeff Sharkeyd2bf31c2017-11-29 13:14:27 -0700743LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
744LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
745LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
746LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
747LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
748LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
749
750LOCAL_MODULE := offline-system-sdk-referenceonly
751
752LOCAL_DROIDDOC_OPTIONS:=\
753 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
754 -hide 101 -hide 104 -hide 108 \
755 -showAnnotation android.annotation.SystemApi \
756 -offlinemode \
757 -title "Android System SDK" \
758 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
759 -sdkvalues $(OUT_DOCS) \
760 -hdf android.whichdoc offline \
761 -referenceonly
762
763LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
764
765include $(BUILD_DROIDDOC)
766
767static_doc_index_redirect := $(out_dir)/index.html
768$(static_doc_index_redirect): $(LOCAL_PATH)/docs/docs-documentation-redirect.html
769 $(copy-file-to-target)
770
771static_doc_properties := $(out_dir)/source.properties
772$(static_doc_properties): \
773 $(LOCAL_PATH)/docs/source.properties | $(ACP)
774 $(hide) mkdir -p $(dir $@)
775 $(hide) $(ACP) $< $@
776
777$(full_target): $(static_doc_index_redirect)
778$(full_target): $(static_doc_properties)
779$(full_target): $(framework_built)
780
781
Bart Searsa8cc0582015-05-07 03:23:20 +0000782# ==== docs for the web (on the androiddevdocs app engine server) =======================
783include $(CLEAR_VARS)
784
785LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800786LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800787LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000788LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
789LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
790LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
791LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
792LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
793LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
794LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
795LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
796
797LOCAL_MODULE := online-sdk
798
799LOCAL_DROIDDOC_OPTIONS:= \
800 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
801 -toroot / \
802 -hdf android.whichdoc online \
803 $(sample_groups) \
804 -hdf android.hasSamples true \
805 -samplesdir $(samples_dir)
806
Scott Main15b85172017-02-21 14:30:58 -0800807LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000808
809include $(BUILD_DROIDDOC)
810
811# ==== docs for the web (on the androiddevdocs app engine server) =======================
Bart Searsa8cc0582015-05-07 03:23:20 +0000812include $(CLEAR_VARS)
813
814LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800815LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800816LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000817LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
818LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
819LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
820LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
821LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
822LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
823LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
824LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
825
826LOCAL_MODULE := online-system-api-sdk
827
828LOCAL_DROIDDOC_OPTIONS:= \
829 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700830 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000831 -showAnnotation android.annotation.SystemApi \
832 -title "Android SDK - Including system APIs." \
833 -toroot / \
Gina Dimino98ad8882016-05-31 17:25:48 -0700834 -hide 101 \
835 -hide 104 \
836 -hide 108 \
Bart Searsa8cc0582015-05-07 03:23:20 +0000837 -hdf android.whichdoc online \
838 $(sample_groups) \
839 -hdf android.hasSamples true \
840 -samplesdir $(samples_dir)
841
Scott Main15b85172017-02-21 14:30:58 -0800842LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Jeff Sharkey05461c02017-05-09 19:01:09 -0600843
Bart Searsa8cc0582015-05-07 03:23:20 +0000844LOCAL_UNINSTALLABLE_MODULE := true
845
846include $(BUILD_DROIDDOC)
Bart Searsa8cc0582015-05-07 03:23:20 +0000847
848# ==== docs for the web (on the devsite app engine server) =======================
849include $(CLEAR_VARS)
850LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800851LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800852LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000853LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
854LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
855LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
856LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
857LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
858LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
859LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
860# specify a second html input dir and an output path relative to OUT_DIR)
Dirk Dougherty3852c1f2016-04-10 02:05:09 -0700861LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
Bart Searsa8cc0582015-05-07 03:23:20 +0000862
863LOCAL_MODULE := ds
864
865LOCAL_DROIDDOC_OPTIONS:= \
866 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000867 -toroot / \
868 -hdf android.whichdoc online \
Dirk Doughertyb042ab12016-06-14 16:26:28 -0700869 -devsite \
Dirk Dougherty3852c1f2016-04-10 02:05:09 -0700870 $(sample_groups) \
Dirk Dougherty3852c1f2016-04-10 02:05:09 -0700871 -hdf android.hasSamples true \
872 -samplesdir $(samples_dir)
Bart Searsa8cc0582015-05-07 03:23:20 +0000873
Scott Main15b85172017-02-21 14:30:58 -0800874LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000875
876include $(BUILD_DROIDDOC)
877
Dirk Doughertyb042ab12016-06-14 16:26:28 -0700878# ==== docs for the web (on the devsite app engine server) =======================
879include $(CLEAR_VARS)
880LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800881LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800882LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Dirk Doughertyb042ab12016-06-14 16:26:28 -0700883LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
884LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
885LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
886LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
887LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
888LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
889LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
890# specify a second html input dir and an output path relative to OUT_DIR)
891LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
892
893LOCAL_MODULE := ds-static
894
895LOCAL_DROIDDOC_OPTIONS:= \
896 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
897 -hdf android.whichdoc online \
898 -staticonly \
899 -toroot / \
900 -devsite \
901 -ignoreJdLinks
902
Scott Main15b85172017-02-21 14:30:58 -0800903LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Dirk Doughertyb042ab12016-06-14 16:26:28 -0700904
905include $(BUILD_DROIDDOC)
906
Dirk Dougherty7d47b552016-09-13 16:44:25 -0700907# ==== generates full navtree for resolving @links in ds postprocessing ====
908include $(CLEAR_VARS)
909
910LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800911LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800912LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Dirk Dougherty7d47b552016-09-13 16:44:25 -0700913LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
914LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
915LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
916LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
917LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
918LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
919
920LOCAL_MODULE := ds-ref-navtree
921
922LOCAL_DROIDDOC_OPTIONS:= \
923 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
924 -hdf android.whichdoc online \
925 -toroot / \
926 -atLinksNavtree \
927 -navtreeonly
928
Scott Main15b85172017-02-21 14:30:58 -0800929LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Dirk Dougherty7d47b552016-09-13 16:44:25 -0700930
931include $(BUILD_DROIDDOC)
932
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800933# ==== site updates for docs (on the androiddevdocs app engine server) =======================
Bart Searsa8cc0582015-05-07 03:23:20 +0000934include $(CLEAR_VARS)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800935
Bart Searsa8cc0582015-05-07 03:23:20 +0000936LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800937LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800938LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000939LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
940LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
941LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
942LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800943LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
Bart Searsa8cc0582015-05-07 03:23:20 +0000944LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
945LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800946LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
Bart Searsa8cc0582015-05-07 03:23:20 +0000947
Dirk Dougherty31ae1c512015-11-07 13:18:02 -0800948LOCAL_MODULE := online-sdk-dev
Bart Searsa8cc0582015-05-07 03:23:20 +0000949
950LOCAL_DROIDDOC_OPTIONS:= \
951 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
952 -toroot / \
953 -hdf android.whichdoc online \
954 $(sample_groups) \
955 -hdf android.hasSamples true \
956 -samplesdir $(samples_dir)
957
Scott Main15b85172017-02-21 14:30:58 -0800958LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000959
960include $(BUILD_DROIDDOC)
961
Bart Searsa8cc0582015-05-07 03:23:20 +0000962# ==== docs that have all of the stuff that's @hidden =======================
963include $(CLEAR_VARS)
964
965LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
Colin Crossbd200ce2017-12-04 13:45:19 -0800966LOCAL_GENERATED_SOURCES:=$(framework_docs_LOCAL_GENERATED_SOURCES)
Colin Crosscf3a0b52017-11-16 00:15:28 -0800967LOCAL_SRCJARS:=$(framework_docs_LOCAL_SRCJARS)
Bart Searsa8cc0582015-05-07 03:23:20 +0000968LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
969LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
970LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
971LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
972LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
973LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
974
975LOCAL_MODULE := hidden
976LOCAL_DROIDDOC_OPTIONS:=\
977 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700978 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000979 -title "Android SDK - Including hidden APIs."
980# -hidden
981
Scott Main15b85172017-02-21 14:30:58 -0800982LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +0000983
984include $(BUILD_DROIDDOC)
985
Joe Onorato1754d742016-11-21 17:51:35 -0800986# ==== java proto host library ==============================
987include $(CLEAR_VARS)
988LOCAL_MODULE := platformprotos
989LOCAL_PROTOC_OPTIMIZE_TYPE := full
990LOCAL_PROTOC_FLAGS := \
991 -Iexternal/protobuf/src
992LOCAL_SOURCE_FILES_ALL_GENERATED := true
993LOCAL_SRC_FILES := \
Yi Jin04625ad2017-10-17 18:29:33 -0700994 tools/streaming_proto/stream.proto \
Mike Mada3a2952017-11-13 12:06:45 -0800995 cmds/am/proto/instrumentation_data.proto \
Joe Onorato1754d742016-11-21 17:51:35 -0800996 $(call all-proto-files-under, core/proto) \
Chenjie Yu15176cd2017-11-22 12:36:41 -0800997 $(call all-proto-files-under, libs/incident/proto) \
998 $(call all-proto-files-under, cmds/statsd/src)
Joe Onorato1754d742016-11-21 17:51:35 -0800999include $(BUILD_HOST_JAVA_LIBRARY)
1000
Steven Timotius7ece0422017-08-03 13:37:26 -07001001# ==== java proto device library (for test only) ==============================
1002include $(CLEAR_VARS)
1003LOCAL_MODULE := platformprotosnano
1004LOCAL_MODULE_TAGS := tests optional
1005LOCAL_PROTOC_OPTIMIZE_TYPE := nano
1006LOCAL_PROTOC_FLAGS := \
1007 -Iexternal/protobuf/src
1008LOCAL_PROTO_JAVA_OUTPUT_PARAMS := \
1009 store_unknown_fields = true
1010LOCAL_JAVA_LIBRARIES := core-oj core-libart
1011LOCAL_SRC_FILES := \
1012 $(call all-proto-files-under, core/proto)
1013include $(BUILD_STATIC_JAVA_LIBRARY)
1014
Bart Searsa8cc0582015-05-07 03:23:20 +00001015
1016# Include subdirectory makefiles
1017# ============================================================
1018
1019# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
1020# team really wants is to build the stuff defined by this makefile.
1021ifeq (,$(ONE_SHOT_MAKEFILE))
1022include $(call first-makefiles-under,$(LOCAL_PATH))
1023endif
1024
1025endif # ANDROID_BUILD_EMBEDDED