2 # Copyright (C) 2008 The Android Open Source Project
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 LOCAL_PATH := $(call my-dir)
18 # We have a special case here where we build the library's resources
19 # independently from its code, so we need to find where the resource
20 # class source got placed in the course of building the resources.
21 # Thus, the magic here.
22 # Also, this module cannot depend directly on the R.java file; if it
23 # did, the PRIVATE_* vars for R.java wouldn't be guaranteed to be correct.
24 # Instead, it depends on the R.stamp file, which lists the corresponding
25 # R.java file as a prerequisite.
26 # TODO: find a more appropriate way to do this.
27 framework_res_source_path := APPS/framework-res_intermediates/src
29 # Build the master framework library.
30 # The framework contains too many method references (>64K) for poor old DEX.
31 # So we first build the framework as a monolithic static library then split it
32 # up into smaller pieces.
33 # ============================================================
36 # FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
37 LOCAL_SRC_FILES := $(call find-other-java-files,$(FRAMEWORKS_BASE_SUBDIRS))
41 core/java/android/content/EventLogTags.logtags \
42 core/java/android/speech/tts/EventLogTags.logtags \
43 core/java/android/webkit/EventLogTags.logtags \
45 ## READ ME: ########################################################
47 ## When updating this list of aidl files, consider if that aidl is
48 ## part of the SDK API. If it is, also add it to the list below that
49 ## is preprocessed and distributed with the SDK. This list should
50 ## not contain any aidl files for parcelables, but the one below should
51 ## if you intend for 3rd parties to be able to send those objects
52 ## across process boundaries.
54 ## READ ME: ########################################################
56 core/java/android/accessibilityservice/IAccessibilityServiceConnection.aidl \
57 core/java/android/accessibilityservice/IAccessibilityServiceClient.aidl \
58 core/java/android/accounts/IAccountManager.aidl \
59 core/java/android/accounts/IAccountManagerResponse.aidl \
60 core/java/android/accounts/IAccountAuthenticator.aidl \
61 core/java/android/accounts/IAccountAuthenticatorResponse.aidl \
62 core/java/android/app/IActivityController.aidl \
63 core/java/android/app/IActivityPendingResult.aidl \
64 core/java/android/app/IAlarmManager.aidl \
65 core/java/android/app/IBackupAgent.aidl \
66 core/java/android/app/IInstrumentationWatcher.aidl \
67 core/java/android/app/INotificationManager.aidl \
68 core/java/android/app/IProcessObserver.aidl \
69 core/java/android/app/ISearchManager.aidl \
70 core/java/android/app/ISearchManagerCallback.aidl \
71 core/java/android/app/IServiceConnection.aidl \
72 core/java/android/app/IStopUserCallback.aidl \
73 core/java/android/app/IThumbnailReceiver.aidl \
74 core/java/android/app/IThumbnailRetriever.aidl \
75 core/java/android/app/ITransientNotification.aidl \
76 core/java/android/app/IUiAutomationConnection.aidl \
77 core/java/android/app/IUiModeManager.aidl \
78 core/java/android/app/IUserSwitchObserver.aidl \
79 core/java/android/app/IWallpaperManager.aidl \
80 core/java/android/app/IWallpaperManagerCallback.aidl \
81 core/java/android/app/admin/IDevicePolicyManager.aidl \
82 core/java/android/app/backup/IBackupManager.aidl \
83 core/java/android/app/backup/IFullBackupRestoreObserver.aidl \
84 core/java/android/app/backup/IRestoreObserver.aidl \
85 core/java/android/app/backup/IRestoreSession.aidl \
86 core/java/android/bluetooth/IBluetooth.aidl \
87 core/java/android/bluetooth/IBluetoothA2dp.aidl \
88 core/java/android/bluetooth/IBluetoothCallback.aidl \
89 core/java/android/bluetooth/IBluetoothHeadset.aidl \
90 core/java/android/bluetooth/IBluetoothHeadsetPhone.aidl \
91 core/java/android/bluetooth/IBluetoothHealth.aidl \
92 core/java/android/bluetooth/IBluetoothHealthCallback.aidl \
93 core/java/android/bluetooth/IBluetoothInputDevice.aidl \
94 core/java/android/bluetooth/IBluetoothPan.aidl \
95 core/java/android/bluetooth/IBluetoothManager.aidl \
96 core/java/android/bluetooth/IBluetoothManagerCallback.aidl \
97 core/java/android/bluetooth/IBluetoothPbap.aidl \
98 core/java/android/bluetooth/IBluetoothMap.aidl \
99 core/java/android/bluetooth/IBluetoothStateChangeCallback.aidl \
100 core/java/android/bluetooth/IBluetoothGatt.aidl \
101 core/java/android/bluetooth/IBluetoothGattCallback.aidl \
102 core/java/android/bluetooth/IBluetoothGattServerCallback.aidl \
103 core/java/android/content/IClipboard.aidl \
104 core/java/android/content/IContentService.aidl \
105 core/java/android/content/IIntentReceiver.aidl \
106 core/java/android/content/IIntentSender.aidl \
107 core/java/android/content/IOnPrimaryClipChangedListener.aidl \
108 core/java/android/content/IAnonymousSyncAdapter.aidl \
109 core/java/android/content/ISyncAdapter.aidl \
110 core/java/android/content/ISyncContext.aidl \
111 core/java/android/content/ISyncStatusObserver.aidl \
112 core/java/android/content/pm/IPackageDataObserver.aidl \
113 core/java/android/content/pm/IPackageDeleteObserver.aidl \
114 core/java/android/content/pm/IPackageInstallObserver.aidl \
115 core/java/android/content/pm/IPackageManager.aidl \
116 core/java/android/content/pm/IPackageMoveObserver.aidl \
117 core/java/android/content/pm/IPackageStatsObserver.aidl \
118 core/java/android/database/IContentObserver.aidl \
119 core/java/android/hardware/ICameraService.aidl \
120 core/java/android/hardware/ICameraServiceListener.aidl \
121 core/java/android/hardware/ICamera.aidl \
122 core/java/android/hardware/ICameraClient.aidl \
123 core/java/android/hardware/IConsumerIrService.aidl \
124 core/java/android/hardware/IProCameraUser.aidl \
125 core/java/android/hardware/IProCameraCallbacks.aidl \
126 core/java/android/hardware/camera2/ICameraDeviceUser.aidl \
127 core/java/android/hardware/camera2/ICameraDeviceCallbacks.aidl \
128 core/java/android/hardware/ISerialManager.aidl \
129 core/java/android/hardware/display/IDisplayManager.aidl \
130 core/java/android/hardware/display/IDisplayManagerCallback.aidl \
131 core/java/android/hardware/input/IInputManager.aidl \
132 core/java/android/hardware/input/IInputDevicesChangedListener.aidl \
133 core/java/android/hardware/location/IFusedLocationHardware.aidl \
134 core/java/android/hardware/location/IFusedLocationHardwareSink.aidl \
135 core/java/android/hardware/location/IGeofenceHardware.aidl \
136 core/java/android/hardware/location/IGeofenceHardwareCallback.aidl \
137 core/java/android/hardware/location/IGeofenceHardwareMonitorCallback.aidl \
138 core/java/android/hardware/usb/IUsbManager.aidl \
139 core/java/android/net/IConnectivityManager.aidl \
140 core/java/android/net/INetworkManagementEventObserver.aidl \
141 core/java/android/net/INetworkPolicyListener.aidl \
142 core/java/android/net/INetworkPolicyManager.aidl \
143 core/java/android/net/INetworkStatsService.aidl \
144 core/java/android/net/INetworkStatsSession.aidl \
145 core/java/android/net/nsd/INsdManager.aidl \
146 core/java/android/nfc/IAppCallback.aidl \
147 core/java/android/nfc/INfcAdapter.aidl \
148 core/java/android/nfc/INfcAdapterExtras.aidl \
149 core/java/android/nfc/INfcTag.aidl \
150 core/java/android/nfc/INfcCardEmulation.aidl \
151 core/java/android/os/IBatteryPropertiesListener.aidl \
152 core/java/android/os/IBatteryPropertiesRegistrar.aidl \
153 core/java/android/os/ICancellationSignal.aidl \
154 core/java/android/os/IHardwareService.aidl \
155 core/java/android/os/IMessenger.aidl \
156 core/java/android/os/INetworkManagementService.aidl \
157 core/java/android/os/IPermissionController.aidl \
158 core/java/android/os/IPowerManager.aidl \
159 core/java/android/os/IRemoteCallback.aidl \
160 core/java/android/os/ISchedulingPolicyService.aidl \
161 core/java/android/os/IUpdateLock.aidl \
162 core/java/android/os/IUserManager.aidl \
163 core/java/android/os/IVibratorService.aidl \
164 core/java/android/service/notification/INotificationListener.aidl \
165 core/java/android/print/ILayoutResultCallback.aidl \
166 core/java/android/print/IPrinterDiscoveryObserver.aidl \
167 core/java/android/print/IPrintDocumentAdapter.aidl \
168 core/java/android/print/IPrintDocumentAdapterObserver.aidl \
169 core/java/android/print/IPrintJobStateChangeListener.aidl \
170 core/java/android/print/IPrintManager.aidl \
171 core/java/android/print/IPrintSpooler.aidl \
172 core/java/android/print/IPrintSpoolerCallbacks.aidl \
173 core/java/android/print/IPrintSpoolerClient.aidl \
174 core/java/android/print/IWriteResultCallback.aidl \
175 core/java/android/printservice/IPrintService.aidl \
176 core/java/android/printservice/IPrintServiceClient.aidl \
177 core/java/android/service/dreams/IDreamManager.aidl \
178 core/java/android/service/dreams/IDreamService.aidl \
179 core/java/android/service/wallpaper/IWallpaperConnection.aidl \
180 core/java/android/service/wallpaper/IWallpaperEngine.aidl \
181 core/java/android/service/wallpaper/IWallpaperService.aidl \
182 core/java/android/view/accessibility/IAccessibilityInteractionConnection.aidl\
183 core/java/android/view/accessibility/IAccessibilityInteractionConnectionCallback.aidl\
184 core/java/android/view/accessibility/IAccessibilityManager.aidl \
185 core/java/android/view/accessibility/IAccessibilityManagerClient.aidl \
186 core/java/android/view/IApplicationToken.aidl \
187 core/java/android/view/IAssetAtlas.aidl \
188 core/java/android/view/IMagnificationCallbacks.aidl \
189 core/java/android/view/IInputFilter.aidl \
190 core/java/android/view/IInputFilterHost.aidl \
191 core/java/android/view/IOnKeyguardExitResult.aidl \
192 core/java/android/view/IRotationWatcher.aidl \
193 core/java/android/view/IWindow.aidl \
194 core/java/android/view/IWindowFocusObserver.aidl \
195 core/java/android/view/IWindowId.aidl \
196 core/java/android/view/IWindowManager.aidl \
197 core/java/android/view/IWindowSession.aidl \
198 core/java/android/speech/IRecognitionListener.aidl \
199 core/java/android/speech/IRecognitionService.aidl \
200 core/java/android/speech/tts/ITextToSpeechCallback.aidl \
201 core/java/android/speech/tts/ITextToSpeechService.aidl \
202 core/java/com/android/internal/app/IAppOpsCallback.aidl \
203 core/java/com/android/internal/app/IAppOpsService.aidl \
204 core/java/com/android/internal/app/IBatteryStats.aidl \
205 core/java/com/android/internal/app/IProcessStats.aidl \
206 core/java/com/android/internal/app/IUsageStats.aidl \
207 core/java/com/android/internal/app/IMediaContainerService.aidl \
208 core/java/com/android/internal/appwidget/IAppWidgetService.aidl \
209 core/java/com/android/internal/appwidget/IAppWidgetHost.aidl \
210 core/java/com/android/internal/backup/IBackupTransport.aidl \
211 core/java/com/android/internal/backup/IObbBackupService.aidl \
212 core/java/com/android/internal/policy/IFaceLockCallback.aidl \
213 core/java/com/android/internal/policy/IFaceLockInterface.aidl \
214 core/java/com/android/internal/policy/IKeyguardShowCallback.aidl \
215 core/java/com/android/internal/policy/IKeyguardExitCallback.aidl \
216 core/java/com/android/internal/policy/IKeyguardService.aidl \
217 core/java/com/android/internal/os/IDropBoxManagerService.aidl \
218 core/java/com/android/internal/os/IResultReceiver.aidl \
219 core/java/com/android/internal/statusbar/IStatusBar.aidl \
220 core/java/com/android/internal/statusbar/IStatusBarService.aidl \
221 core/java/com/android/internal/textservice/ISpellCheckerService.aidl \
222 core/java/com/android/internal/textservice/ISpellCheckerSession.aidl \
223 core/java/com/android/internal/textservice/ISpellCheckerSessionListener.aidl \
224 core/java/com/android/internal/textservice/ITextServicesManager.aidl \
225 core/java/com/android/internal/textservice/ITextServicesSessionListener.aidl \
226 core/java/com/android/internal/view/IInputContext.aidl \
227 core/java/com/android/internal/view/IInputContextCallback.aidl \
228 core/java/com/android/internal/view/IInputMethod.aidl \
229 core/java/com/android/internal/view/IInputMethodClient.aidl \
230 core/java/com/android/internal/view/IInputMethodManager.aidl \
231 core/java/com/android/internal/view/IInputMethodSession.aidl \
232 core/java/com/android/internal/view/IInputSessionCallback.aidl \
233 core/java/com/android/internal/widget/ILockSettings.aidl \
234 core/java/com/android/internal/widget/IRemoteViewsFactory.aidl \
235 core/java/com/android/internal/widget/IRemoteViewsAdapterConnection.aidl \
236 keystore/java/android/security/IKeyChainAliasCallback.aidl \
237 keystore/java/android/security/IKeyChainService.aidl \
238 location/java/android/location/ICountryDetector.aidl \
239 location/java/android/location/ICountryListener.aidl \
240 location/java/android/location/IFusedProvider.aidl \
241 location/java/android/location/IGeocodeProvider.aidl \
242 location/java/android/location/IGeofenceProvider.aidl \
243 location/java/android/location/IGpsStatusListener.aidl \
244 location/java/android/location/IGpsStatusProvider.aidl \
245 location/java/android/location/ILocationListener.aidl \
246 location/java/android/location/ILocationManager.aidl \
247 location/java/android/location/IFusedGeofenceHardware.aidl \
248 location/java/android/location/IGpsGeofenceHardware.aidl \
249 location/java/android/location/INetInitiatedListener.aidl \
250 location/java/com/android/internal/location/ILocationProvider.aidl \
251 media/java/android/media/IAudioService.aidl \
252 media/java/android/media/IAudioFocusDispatcher.aidl \
253 media/java/android/media/IAudioRoutesObserver.aidl \
254 media/java/android/media/IMediaScannerListener.aidl \
255 media/java/android/media/IMediaScannerService.aidl \
256 media/java/android/media/IRemoteControlClient.aidl \
257 media/java/android/media/IRemoteControlDisplay.aidl \
258 media/java/android/media/IRemoteDisplayCallback.aidl \
259 media/java/android/media/IRemoteDisplayProvider.aidl \
260 media/java/android/media/IRemoteVolumeObserver.aidl \
261 media/java/android/media/IRingtonePlayer.aidl \
262 telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl \
263 telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \
264 telephony/java/com/android/internal/telephony/ITelephony.aidl \
265 telephony/java/com/android/internal/telephony/ISms.aidl \
266 telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl \
267 telephony/java/com/android/internal/telephony/IWapPushManager.aidl \
268 wifi/java/android/net/wifi/IWifiManager.aidl \
269 wifi/java/android/net/wifi/p2p/IWifiP2pManager.aidl \
270 packages/services/PacProcessor/com/android/net/IProxyService.aidl \
271 packages/services/Proxy/com/android/net/IProxyCallback.aidl \
272 packages/services/Proxy/com/android/net/IProxyPortListener.aidl \
274 # FRAMEWORKS_BASE_JAVA_SRC_DIRS comes from build/core/pathmap.mk
275 LOCAL_AIDL_INCLUDES += $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
277 LOCAL_INTERMEDIATE_SOURCES := \
278 $(framework_res_source_path)/android/R.java \
279 $(framework_res_source_path)/android/Manifest.java \
280 $(framework_res_source_path)/com/android/internal/R.java
282 LOCAL_NO_STANDARD_LIBRARIES := true
283 LOCAL_JAVA_LIBRARIES := bouncycastle conscrypt core core-junit ext okhttp
285 LOCAL_MODULE := framework-base
287 LOCAL_JAR_EXCLUDE_FILES := none
289 include $(BUILD_STATIC_JAVA_LIBRARY)
291 # Make sure that R.java and Manifest.java are built before we build
292 # the source for this library.
293 framework_res_R_stamp := \
294 $(call intermediates-dir-for,APPS,framework-res,,COMMON)/src/R.stamp
295 $(full_classes_compiled_jar): $(framework_res_R_stamp)
297 # Build part 1 of the framework library.
298 # ============================================================
299 include $(CLEAR_VARS)
301 LOCAL_MODULE := framework
302 LOCAL_MODULE_CLASS := JAVA_LIBRARIES
303 LOCAL_NO_STANDARD_LIBRARIES := true
304 LOCAL_STATIC_JAVA_LIBRARIES := framework-base
305 LOCAL_DX_FLAGS := --core-library
307 # Packages to include, use \* wildcard to include descendants.
308 LOCAL_JAR_PACKAGES := android\*
310 # List of classes and interfaces which should be loaded by the Zygote.
311 LOCAL_JAVA_RESOURCE_FILES += $(LOCAL_PATH)/preloaded-classes
313 include $(BUILD_JAVA_LIBRARY)
314 framework_module := $(LOCAL_INSTALLED_MODULE)
316 # Build part 2 of the framework library.
317 # ============================================================
318 include $(CLEAR_VARS)
320 LOCAL_MODULE := framework2
321 LOCAL_MODULE_CLASS := JAVA_LIBRARIES
322 LOCAL_NO_STANDARD_LIBRARIES := true
323 LOCAL_STATIC_JAVA_LIBRARIES := framework-base
324 LOCAL_DX_FLAGS := --core-library
326 # Packages to include, use \* wildcard to include descendants.
327 LOCAL_JAR_PACKAGES := com\* javax\*
329 include $(BUILD_JAVA_LIBRARY)
330 framework2_module := $(LOCAL_INSTALLED_MODULE)
332 # Make sure that all framework modules are installed when framework is.
333 # ============================================================
334 $(framework_module): | $(dir $(framework_module))framework-res.apk
335 $(framework_module): | $(dir $(framework_module))framework2.jar
337 framework_built := $(call java-lib-deps,framework framework2)
339 # Copy AIDL files to be preprocessed and included in the SDK,
340 # specified relative to the root of the build tree.
341 # ============================================================
342 include $(CLEAR_VARS)
345 frameworks/base/core/java/android/accounts/IAccountManager.aidl \
346 frameworks/base/core/java/android/accounts/IAccountManagerResponse.aidl \
347 frameworks/base/core/java/android/accounts/IAccountAuthenticator.aidl \
348 frameworks/base/core/java/android/accounts/IAccountAuthenticatorResponse.aidl \
349 frameworks/base/core/java/android/app/Notification.aidl \
350 frameworks/base/core/java/android/app/PendingIntent.aidl \
351 frameworks/base/core/java/android/appwidget/AppWidgetProviderInfo.aidl \
352 frameworks/base/core/java/android/bluetooth/BluetoothDevice.aidl \
353 frameworks/base/core/java/android/bluetooth/BluetoothHealthAppConfiguration.aidl \
354 frameworks/base/core/java/android/content/ComponentName.aidl \
355 frameworks/base/core/java/android/content/ContentValues.aidl \
356 frameworks/base/core/java/android/content/Intent.aidl \
357 frameworks/base/core/java/android/content/IntentSender.aidl \
358 frameworks/base/core/java/android/content/PeriodicSync.aidl \
359 frameworks/base/core/java/android/content/SyncRequest.aidl \
360 frameworks/base/core/java/android/content/SyncStats.aidl \
361 frameworks/base/core/java/android/content/res/Configuration.aidl \
362 frameworks/base/core/java/android/database/CursorWindow.aidl \
363 frameworks/base/core/java/android/hardware/location/GeofenceHardwareRequestParcelable.aidl \
364 frameworks/base/core/java/android/net/Uri.aidl \
365 frameworks/base/core/java/android/nfc/NdefMessage.aidl \
366 frameworks/base/core/java/android/nfc/NdefRecord.aidl \
367 frameworks/base/core/java/android/nfc/Tag.aidl \
368 frameworks/base/core/java/android/os/Bundle.aidl \
369 frameworks/base/core/java/android/os/DropBoxManager.aidl \
370 frameworks/base/core/java/android/os/ParcelFileDescriptor.aidl \
371 frameworks/base/core/java/android/os/ParcelUuid.aidl \
372 frameworks/base/core/java/android/view/KeyEvent.aidl \
373 frameworks/base/core/java/android/view/MotionEvent.aidl \
374 frameworks/base/core/java/android/view/Surface.aidl \
375 frameworks/base/core/java/android/view/WindowManager.aidl \
376 frameworks/base/core/java/android/widget/RemoteViews.aidl \
377 frameworks/base/core/java/com/android/internal/textservice/ISpellCheckerService.aidl \
378 frameworks/base/core/java/com/android/internal/textservice/ISpellCheckerSession.aidl \
379 frameworks/base/core/java/com/android/internal/textservice/ISpellCheckerSessionListener.aidl \
380 frameworks/base/core/java/com/android/internal/textservice/ITextServicesManager.aidl \
381 frameworks/base/core/java/com/android/internal/textservice/ITextServicesSessionListener.aidl \
382 frameworks/base/core/java/com/android/internal/view/IInputContext.aidl \
383 frameworks/base/core/java/com/android/internal/view/IInputMethod.aidl \
384 frameworks/base/core/java/com/android/internal/view/IInputMethodClient.aidl \
385 frameworks/base/core/java/com/android/internal/view/IInputMethodManager.aidl \
386 frameworks/base/core/java/com/android/internal/view/IInputMethodSession.aidl \
387 frameworks/base/graphics/java/android/graphics/Bitmap.aidl \
388 frameworks/base/graphics/java/android/graphics/Rect.aidl \
389 frameworks/base/graphics/java/android/graphics/Region.aidl \
390 frameworks/base/location/java/android/location/Criteria.aidl \
391 frameworks/base/location/java/android/location/Geofence.aidl \
392 frameworks/base/location/java/android/location/Location.aidl \
393 frameworks/base/location/java/android/location/LocationRequest.aidl \
394 frameworks/base/location/java/android/location/FusedBatchOptions.aidl \
395 frameworks/base/location/java/com/android/internal/location/ProviderProperties.aidl \
396 frameworks/base/location/java/com/android/internal/location/ProviderRequest.aidl \
397 frameworks/base/telephony/java/android/telephony/ServiceState.aidl \
398 frameworks/base/telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \
399 frameworks/base/telephony/java/com/android/internal/telephony/ITelephony.aidl \
400 frameworks/base/wifi/java/android/net/wifi/BatchedScanSettings.aidl \
401 frameworks/base/wifi/java/android/net/wifi/BatchedScanResult.aidl \
403 gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl
404 $(gen): PRIVATE_SRC_FILES := $(aidl_files)
405 ALL_SDK_FILES += $(gen)
406 $(gen): $(aidl_files) | $(AIDL)
407 @echo Aidl Preprocess: $@
408 $(hide) $(AIDL) --preprocess $@ $(PRIVATE_SRC_FILES)
411 # ============================================================
413 # TODO: deal with com/google/android/googleapps
414 packages_to_document := \
416 javax/microedition/khronos
418 # Search through the base framework dirs for these packages.
419 # The result will be relative to frameworks/base.
420 fwbase_dirs_to_document := \
422 $(patsubst $(LOCAL_PATH)/%,%, \
424 $(foreach dir, $(FRAMEWORKS_BASE_JAVA_SRC_DIRS), \
425 $(addprefix $(dir)/, $(packages_to_document)) \
430 # include definition of libcore_to_document
431 include libcore/Docs.mk
433 # include definition of junit_to_document
434 include external/junit/Common.mk
437 ../../external/apache-http/src/org/apache/http \
438 ../opt/telephony/src/java/android/provider \
439 ../opt/telephony/src/java/android/telephony \
440 ../opt/telephony/src/java/android/telephony/gsm \
441 ../opt/net/voip/src/java/android/net/rtp \
442 ../opt/net/voip/src/java/android/net/sip
444 # These are relative to frameworks/base
445 dirs_to_check_apis := \
446 $(fwbase_dirs_to_document) \
449 # These are relative to frameworks/base
450 # FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
451 dirs_to_document := \
452 $(dirs_to_check_apis) \
453 $(addprefix ../../, $(FRAMEWORKS_SUPPORT_JAVA_SRC_DIRS))
455 # These are relative to frameworks/base
457 $(FRAMEWORKS_BASE_SUBDIRS) \
460 # Common sources for doc check and api check
461 common_src_files := \
462 $(call find-other-html-files, $(html_dirs)) \
463 $(addprefix ../../libcore/, $(call libcore_to_document, $(LOCAL_PATH)/../../libcore)) \
464 $(addprefix ../../external/junit/, $(call junit_to_document, $(LOCAL_PATH)/../../external/junit))
466 # These are relative to frameworks/base
467 framework_docs_LOCAL_SRC_FILES := \
468 $(call find-other-java-files, $(dirs_to_document)) \
471 # These are relative to frameworks/base
472 framework_docs_LOCAL_API_CHECK_SRC_FILES := \
473 $(call find-other-java-files, $(dirs_to_check_apis)) \
476 # This is used by ide.mk as the list of source files that are
478 INTERNAL_SDK_SOURCE_DIRS := $(addprefix $(LOCAL_PATH)/,$(dirs_to_document))
480 framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
481 $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
483 framework_docs_LOCAL_INTERMEDIATE_SOURCES := \
484 $(framework_res_source_path)/android/R.java \
485 $(framework_res_source_path)/android/Manifest.java \
486 $(framework_res_source_path)/com/android/internal/R.java
488 framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES := \
500 framework_docs_LOCAL_JAVA_LIBRARIES := \
501 $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) \
502 $(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES)
504 framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
505 framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
506 # The since flag (-since N.xml API_LEVEL) is used to add API Level information
507 # to the reference documentation. Must be in order of oldest to newest.
508 framework_docs_LOCAL_DROIDDOC_OPTIONS := \
509 -knowntags ./frameworks/base/docs/knowntags.txt \
510 -since $(SRC_API_DIR)/1.xml 1 \
511 -since $(SRC_API_DIR)/2.xml 2 \
512 -since $(SRC_API_DIR)/3.xml 3 \
513 -since $(SRC_API_DIR)/4.xml 4 \
514 -since $(SRC_API_DIR)/5.xml 5 \
515 -since $(SRC_API_DIR)/6.xml 6 \
516 -since $(SRC_API_DIR)/7.xml 7 \
517 -since $(SRC_API_DIR)/8.xml 8 \
518 -since $(SRC_API_DIR)/9.xml 9 \
519 -since $(SRC_API_DIR)/10.xml 10 \
520 -since $(SRC_API_DIR)/11.xml 11 \
521 -since $(SRC_API_DIR)/12.xml 12 \
522 -since $(SRC_API_DIR)/13.xml 13 \
523 -since $(SRC_API_DIR)/14.txt 14 \
524 -since $(SRC_API_DIR)/15.txt 15 \
525 -since $(SRC_API_DIR)/16.txt 16 \
526 -since $(SRC_API_DIR)/17.txt 17 \
527 -since $(SRC_API_DIR)/18.txt 18 \
528 -since $(SRC_API_DIR)/19.txt 19 \
530 -overview $(LOCAL_PATH)/core/java/overview.html
532 framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR:= \
533 $(call intermediates-dir-for,JAVA_LIBRARIES,framework-base,,COMMON)
535 framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= \
536 $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR) \
537 $(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib),,COMMON)) \
538 $(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib)-res,,COMMON))
540 framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES := \
541 frameworks/base/docs/knowntags.txt
543 sample_dir := development/samples/browseable
544 new_sample_dir := developers/samples/android
546 # Whitelist of valid groups, used for default TOC grouping. Each sample must
547 # belong to one (and only one) group. Assign samples to groups by setting
548 # a sample.group var to one of these groups in the sample's _index.jd.
549 sample_groups := -samplegroup Background \
550 -samplegroup Connectivity \
551 -samplegroup Content \
554 -samplegroup Security \
555 -samplegroup Testing \
559 # the list here should match the list of samples included in the sdk samples package
560 # (see development/build/sdk.atree)
561 # remove htmlified samples for now -- samples are still available through the SDK
562 web_docs_sample_code_flags := \
563 -hdf android.hasSamples 1 \
564 -samplecode $(sample_dir)/BasicAccessibility \
565 samples/BasicAccessibility "" \
566 -samplecode $(sample_dir)/HorizontalPaging \
567 samples/HorizontalPaging "" \
568 -samplecode $(sample_dir)/ShareActionProvider \
569 samples/ShareActionProvider "" \
570 -samplecode $(sample_dir)/Styled \
572 -samplecode $(sample_dir)/BasicAndroidKeyStore \
573 samples/BasicAndroidKeyStore "" \
574 -samplecode $(sample_dir)/Basic \
576 -samplecode $(sample_dir)/ImmersiveMode \
577 samples/ImmersiveMode "" \
578 -samplecode $(sample_dir)/repeatingAlarm \
579 samples/repeatingAlarm "" \
580 -samplecode $(sample_dir)/TextLinkify \
581 samples/TextLinkify "" \
582 -samplecode $(sample_dir)/BasicMediaRouter \
583 samples/BasicMediaRouter "" \
584 -samplecode $(sample_dir)/BasicMultitouch \
585 samples/BasicMultitouch "" \
586 -samplecode $(sample_dir)/TextSwitcher \
587 samples/TextSwitcher "" \
588 -samplecode $(sample_dir)/ActivityInstrumentation \
589 samples/ActivityInstrumentation "" \
590 -samplecode $(sample_dir)/BorderlessButtons \
591 samples/BorderlessButtons "" \
592 -samplecode $(sample_dir)/BasicNotifications \
593 samples/BasicNotifications "" \
594 -samplecode $(sample_dir)/AdvancedImmersiveMode \
595 samples/AdvancedImmersiveMode "" \
596 -samplecode $(sample_dir)/BluetoothLeGatt \
597 samples/BluetoothLeGatt "" \
598 -samplecode $(sample_dir)/NetworkConnect \
599 samples/NetworkConnect "" \
600 -samplecode $(sample_dir)/BasicNetworking \
601 samples/BasicNetworking "" \
602 -samplecode $(sample_dir)/BasicMediaDecoder \
603 samples/BasicMediaDecoder "" \
604 -samplecode $(sample_dir)/BasicImmersiveMode \
605 samples/BasicImmersiveMode "" \
606 -samplecode $(sample_dir)/CustomChoiceList \
607 samples/CustomChoiceList "" \
608 -samplecode $(sample_dir)/BasicContactables \
609 samples/BasicContactables "" \
610 -samplecode $(sample_dir)/BasicGestureDetect \
611 samples/BasicGestureDetect "" \
612 -samplecode $(sample_dir)/DoneBar \
614 -samplecode $(sample_dir)/ListPopupMenu \
615 samples/ListPopupMenu "" \
616 -samplecode $(sample_dir)/AppRestrictions \
617 samples/AppRestrictions "" \
618 -samplecode $(sample_dir)/CustomNotifications \
619 samples/CustomNotifications "" \
620 -samplecode $(sample_dir)/BasicSyncAdapter \
621 samples/BasicSyncAdapter "" \
622 -samplecode $(sample_dir)/StorageClient \
623 samples/StorageClient ""
624 # -samplecode $(sample_dir)/StorageProvider \
625 # samples/StorageProvider ""
626 # -samplecode $(sample_dir)/AndroidBeamDemo \
627 # samples/AndroidBeamDemo "Android Beam Demo" \
628 # -samplecode $(sample_dir)/ApiDemos \
629 # samples/ApiDemos "API Demos" \
630 # -samplecode $(sample_dir)/Support4Demos \
631 # samples/Support4Demos "API 4+ Support Demos" \
632 # -samplecode $(sample_dir)/Support13Demos \
633 # samples/Support13Demos "API 13+ Support Demos" \
634 # -samplecode $(sample_dir)/BackupRestore \
635 # samples/BackupRestore "Backup and Restore" \
636 # -samplecode $(sample_dir)/BluetoothChat \
637 # samples/BluetoothChat "Bluetooth Chat" \
638 # -samplecode $(sample_dir)/BusinessCard \
639 # samples/BusinessCard "Business Card" \
640 # -samplecode $(sample_dir)/ContactManager \
641 # samples/ContactManager "Contact Manager" \
642 # -samplecode $(sample_dir)/CubeLiveWallpaper \
643 # samples/CubeLiveWallpaper "Cube Live Wallpaper" \
644 # -samplecode $(sample_dir)/Home \
645 # samples/Home "Home" \
646 # -samplecode $(sample_dir)/HoneycombGallery \
647 # samples/HoneycombGallery "Honeycomb Gallery" \
648 # -samplecode $(sample_dir)/JetBoy \
649 # samples/JetBoy "JetBoy" \
650 # -samplecode $(sample_dir)/KeyChainDemo \
651 # samples/KeyChainDemo "KeyChain Demo" \
652 # -samplecode $(sample_dir)/LunarLander \
653 # samples/LunarLander "Lunar Lander" \
654 # -samplecode $(sample_dir)/training/ads-and-ux \
655 # samples/training/ads-and-ux "Mobile Advertisement Integration" \
656 # -samplecode $(sample_dir)/MultiResolution \
657 # samples/MultiResolution "Multiple Resolutions" \
658 # -samplecode $(sample_dir)/training/multiscreen/newsreader \
659 # samples/newsreader "News Reader" \
660 # -samplecode $(sample_dir)/NotePad \
661 # samples/NotePad "Note Pad" \
662 # -samplecode $(sample_dir)/SpellChecker/SampleSpellCheckerService \
663 # samples/SpellChecker/SampleSpellCheckerService "Spell Checker Service" \
664 # -samplecode $(sample_dir)/SpellChecker/HelloSpellChecker \
665 # samples/SpellChecker/HelloSpellChecker "Spell Checker Client" \
666 # -samplecode $(sample_dir)/SampleSyncAdapter \
667 # samples/SampleSyncAdapter "Sample Sync Adapter" \
668 # -samplecode $(sample_dir)/RandomMusicPlayer \
669 # samples/RandomMusicPlayer "Random Music Player" \
670 # -samplecode $(sample_dir)/RenderScript \
671 # samples/RenderScript "RenderScript" \
672 # -samplecode $(sample_dir)/SearchableDictionary \
673 # samples/SearchableDictionary "Searchable Dictionary v2" \
674 # -samplecode $(sample_dir)/SipDemo \
675 # samples/SipDemo "SIP Demo" \
676 # -samplecode $(sample_dir)/Snake \
677 # samples/Snake "Snake" \
678 # -samplecode $(sample_dir)/SoftKeyboard \
679 # samples/SoftKeyboard "Soft Keyboard" \
680 # -samplecode $(sample_dir)/Spinner \
681 # samples/Spinner "Spinner" \
682 # -samplecode $(sample_dir)/SpinnerTest \
683 # samples/SpinnerTest "SpinnerTest" \
684 # -samplecode $(sample_dir)/StackWidget \
685 # samples/StackWidget "StackView Widget" \
686 # -samplecode $(sample_dir)/TicTacToeLib \
687 # samples/TicTacToeLib "TicTacToeLib" \
688 # -samplecode $(sample_dir)/TicTacToeMain \
689 # samples/TicTacToeMain "TicTacToeMain" \
690 # -samplecode $(sample_dir)/ToyVpn \
691 # samples/ToyVpn "Toy VPN Client" \
692 # -samplecode $(sample_dir)/USB \
693 # samples/USB "USB" \
694 # -samplecode $(sample_dir)/WeatherListWidget \
695 # samples/WeatherListWidget "Weather List Widget" \
696 # -samplecode $(sample_dir)/WiFiDirectDemo \
697 # samples/WiFiDirectDemo "Wi-Fi Direct Demo" \
698 # -samplecode $(sample_dir)/Wiktionary \
699 # samples/Wiktionary "Wiktionary" \
700 # -samplecode $(sample_dir)/WiktionarySimple \
701 # samples/WiktionarySimple "Wiktionary (Simplified)" \
702 # -samplecode $(sample_dir)/VoiceRecognitionService \
703 # samples/VoiceRecognitionService "Voice Recognition Service" \
704 # -samplecode $(sample_dir)/VoicemailProviderDemo \
705 # samples/VoicemailProviderDemo "Voicemail Provider Demo" \
706 # -samplecode $(sample_dir)/XmlAdapters \
707 # samples/XmlAdapters "XML Adapters" \
708 # -samplecode $(sample_dir)/TtsEngine \
709 # samples/TtsEngine "Text To Speech Engine" \
710 # -samplecode $(sample_dir)/training/device-management-policy \
711 # samples/training/device-management-policy "Device Management Policy"
714 ## SDK version identifiers used in the published docs
715 # major[.minor] version for current SDK. (full releases only)
716 framework_docs_SDK_VERSION:=4.4
717 # release version (ie "Release x") (full releases only)
718 framework_docs_SDK_REL_ID:=1
720 framework_docs_LOCAL_DROIDDOC_OPTIONS += \
721 -hdf sdk.version $(framework_docs_SDK_VERSION) \
722 -hdf sdk.rel.id $(framework_docs_SDK_REL_ID) \
725 # ==== the api stubs and current.xml ===========================
726 include $(CLEAR_VARS)
728 LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
729 LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
730 LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
731 LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
732 LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
733 LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
734 LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
735 LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
737 LOCAL_MODULE := api-stubs
739 LOCAL_DROIDDOC_OPTIONS:=\
740 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
741 -stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_stubs_current_intermediates/src \
742 -api $(INTERNAL_PLATFORM_API_FILE) \
745 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
747 LOCAL_UNINSTALLABLE_MODULE := true
749 include $(BUILD_DROIDDOC)
751 # $(gen), i.e. framework.aidl, is also needed while building against the current stub.
752 $(full_target): $(framework_built) $(gen)
753 $(INTERNAL_PLATFORM_API_FILE): $(full_target)
754 $(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE))
756 # ==== check javadoc comments but don't generate docs ========
757 include $(CLEAR_VARS)
759 LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
760 LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
761 LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
762 LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
763 LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
764 LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
765 LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
766 LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
768 LOCAL_MODULE := doc-comment-check
770 LOCAL_DROIDDOC_OPTIONS:=\
771 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
774 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
776 LOCAL_UNINSTALLABLE_MODULE := true
778 include $(BUILD_DROIDDOC)
780 # $(gen), i.e. framework.aidl, is also needed while building against the current stub.
781 $(full_target): $(framework_built) $(gen)
783 # Run this for checkbuild
785 checkbuild: doc-comment-check-docs
787 # ==== static html in the sdk ==================================
788 include $(CLEAR_VARS)
790 LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
791 LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
792 LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
793 LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
794 LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
795 LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
796 LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
797 LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
799 LOCAL_MODULE := offline-sdk
801 LOCAL_DROIDDOC_OPTIONS:=\
802 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
804 -title "Android SDK" \
805 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
806 -todo $(OUT_DOCS)/$(LOCAL_MODULE)-docs-todo.html \
807 -sdkvalues $(OUT_DOCS) \
808 -hdf android.whichdoc offline
809 # $(web_docs_sample_code_flags)
812 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
814 include $(BUILD_DROIDDOC)
816 static_doc_index_redirect := $(out_dir)/index.html
817 $(static_doc_index_redirect): \
818 $(LOCAL_PATH)/docs/docs-documentation-redirect.html | $(ACP)
819 $(hide) mkdir -p $(dir $@)
822 $(full_target): $(static_doc_index_redirect)
823 $(full_target): $(framework_built)
825 # ==== docs for the web (on the androiddevdocs app engine server) =======================
826 include $(CLEAR_VARS)
828 LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
829 LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
830 LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
831 LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
832 LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
833 LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
834 LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
835 LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
836 LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
837 LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /intl/
839 LOCAL_MODULE := online-sdk
841 LOCAL_DROIDDOC_OPTIONS:= \
842 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
844 -hdf android.whichdoc online \
846 $(web_docs_sample_code_flags)
848 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
850 include $(BUILD_DROIDDOC)
852 # ==== docs for the web (on the devsite app engine server) =======================
853 include $(CLEAR_VARS)
854 LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
855 LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
856 LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
857 LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
858 LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
859 LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
860 LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
861 LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
862 LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
863 # specify a second html input dir and an output path relative to OUT_DIR)
864 LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
868 LOCAL_DROIDDOC_OPTIONS:= \
869 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
872 -hdf android.whichdoc online \
874 # $(web_docs_sample_code_flags)
876 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
878 include $(BUILD_DROIDDOC)
880 # ==== docs that have all of the stuff that's @hidden =======================
881 include $(CLEAR_VARS)
883 LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
884 LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
885 LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
886 LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
887 LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
888 LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
889 LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
890 LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
892 LOCAL_MODULE := hidden
893 LOCAL_DROIDDOC_OPTIONS:=\
894 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
895 -title "Android SDK - Including hidden APIs."
898 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
900 include $(BUILD_DROIDDOC)
903 # ============================================================
905 # NOTICE notes for non-obvious sections
906 # apache-http - covered by the Apache Commons section.
910 ../../external/nist-sip/java \
911 ../../external/apache-http/src \
912 ../../external/tagsoup/src \
913 ../../external/libphonenumber/java/src
915 ext_src_files := $(call all-java-files-under,$(ext_dirs))
918 ../../external/libphonenumber/java/src
920 # ==== the library =========================================
921 include $(CLEAR_VARS)
923 LOCAL_SRC_FILES := $(ext_src_files)
925 LOCAL_NO_STANDARD_LIBRARIES := true
926 LOCAL_JAVA_LIBRARIES := core
927 LOCAL_JAVA_RESOURCE_DIRS := $(ext_res_dirs)
928 LOCAL_MODULE_TAGS := optional
931 LOCAL_DX_FLAGS := --core-library
933 include $(BUILD_JAVA_LIBRARY)
936 # Include subdirectory makefiles
937 # ============================================================
939 # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
940 # team really wants is to build the stuff defined by this makefile.
941 ifeq (,$(ONE_SHOT_MAKEFILE))
942 include $(call first-makefiles-under,$(LOCAL_PATH))