Android.mk revision 94a873de0f6d2e1579bc2634712d9212fbe87dc8
1#
2# Copyright (C) 2008 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16LOCAL_PATH := $(call my-dir)
17
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.
27framework_res_source_path := APPS/framework-res_intermediates/src
28
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# ============================================================
34
35# embedded builds use nothing in frameworks/base
36ifneq ($(ANDROID_BUILD_EMBEDDED),true)
37
38include $(CLEAR_VARS)
39
40# FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
41LOCAL_SRC_FILES := $(call find-other-java-files,$(FRAMEWORKS_BASE_SUBDIRS))
42
43# EventLogTags files.
44LOCAL_SRC_FILES += \
45       core/java/android/content/EventLogTags.logtags \
46       core/java/android/speech/tts/EventLogTags.logtags \
47       core/java/android/webkit/EventLogTags.logtags \
48
49## READ ME: ########################################################
50##
51## When updating this list of aidl files, consider if that aidl is
52## part of the SDK API.  If it is, also add it to the list below that
53## is preprocessed and distributed with the SDK.  This list should
54## not contain any aidl files for parcelables, but the one below should
55## if you intend for 3rd parties to be able to send those objects
56## across process boundaries.
57##
58## READ ME: ########################################################
59LOCAL_SRC_FILES += \
60	core/java/android/accessibilityservice/IAccessibilityServiceConnection.aidl \
61	core/java/android/accessibilityservice/IAccessibilityServiceClient.aidl \
62	core/java/android/accounts/IAccountManager.aidl \
63	core/java/android/accounts/IAccountManagerResponse.aidl \
64	core/java/android/accounts/IAccountAuthenticator.aidl \
65	core/java/android/accounts/IAccountAuthenticatorResponse.aidl \
66	core/java/android/app/IActivityContainer.aidl \
67	core/java/android/app/IActivityContainerCallback.aidl \
68	core/java/android/app/IActivityController.aidl \
69	core/java/android/app/IActivityPendingResult.aidl \
70	core/java/android/app/IAlarmManager.aidl \
71	core/java/android/app/IAppTask.aidl \
72	core/java/android/app/IBackupAgent.aidl \
73	core/java/android/app/IInstrumentationWatcher.aidl \
74	core/java/android/app/INotificationManager.aidl \
75	core/java/android/app/IProcessObserver.aidl \
76	core/java/android/app/ISearchManager.aidl \
77	core/java/android/app/ISearchManagerCallback.aidl \
78	core/java/android/app/IServiceConnection.aidl \
79	core/java/android/app/IStopUserCallback.aidl \
80	core/java/android/app/task/ITaskCallback.aidl \
81	core/java/android/app/task/ITaskService.aidl \
82	core/java/android/app/IThumbnailRetriever.aidl \
83	core/java/android/app/ITransientNotification.aidl \
84	core/java/android/app/IUiAutomationConnection.aidl \
85	core/java/android/app/IUiModeManager.aidl \
86	core/java/android/app/IUserSwitchObserver.aidl \
87	core/java/android/app/IWallpaperManager.aidl \
88	core/java/android/app/IWallpaperManagerCallback.aidl \
89	core/java/android/app/admin/IDevicePolicyManager.aidl \
90	core/java/android/app/trust/ITrustManager.aidl \
91	core/java/android/app/trust/ITrustListener.aidl \
92	core/java/android/app/backup/IBackupManager.aidl \
93	core/java/android/app/backup/IFullBackupRestoreObserver.aidl \
94	core/java/android/app/backup/IRestoreObserver.aidl \
95	core/java/android/app/backup/IRestoreSession.aidl \
96	core/java/android/app/maintenance/IIdleCallback.aidl \
97	core/java/android/app/maintenance/IIdleService.aidl \
98	core/java/android/bluetooth/IBluetooth.aidl \
99	core/java/android/bluetooth/IBluetoothA2dp.aidl \
100	core/java/android/bluetooth/IBluetoothCallback.aidl \
101	core/java/android/bluetooth/IBluetoothHeadset.aidl \
102	core/java/android/bluetooth/IBluetoothHeadsetPhone.aidl \
103	core/java/android/bluetooth/IBluetoothHealth.aidl \
104	core/java/android/bluetooth/IBluetoothHealthCallback.aidl \
105	core/java/android/bluetooth/IBluetoothInputDevice.aidl \
106	core/java/android/bluetooth/IBluetoothPan.aidl \
107	core/java/android/bluetooth/IBluetoothManager.aidl \
108	core/java/android/bluetooth/IBluetoothManagerCallback.aidl \
109	core/java/android/bluetooth/IBluetoothPbap.aidl \
110	core/java/android/bluetooth/IBluetoothMap.aidl \
111	core/java/android/bluetooth/IBluetoothStateChangeCallback.aidl \
112	core/java/android/bluetooth/IBluetoothGatt.aidl \
113	core/java/android/bluetooth/IBluetoothGattCallback.aidl \
114	core/java/android/bluetooth/IBluetoothGattServerCallback.aidl \
115	core/java/android/content/IClipboard.aidl \
116	core/java/android/content/IContentService.aidl \
117	core/java/android/content/IIntentReceiver.aidl \
118	core/java/android/content/IIntentSender.aidl \
119	core/java/android/content/IOnPrimaryClipChangedListener.aidl \
120	core/java/android/content/ISyncAdapter.aidl \
121	core/java/android/content/ISyncContext.aidl \
122	core/java/android/content/ISyncServiceAdapter.aidl \
123	core/java/android/content/ISyncStatusObserver.aidl \
124	core/java/android/content/pm/ILauncherApps.aidl \
125	core/java/android/content/pm/IOnAppsChangedListener.aidl \
126	core/java/android/content/pm/IPackageDataObserver.aidl \
127	core/java/android/content/pm/IPackageDeleteObserver.aidl \
128	core/java/android/content/pm/IPackageInstallObserver.aidl \
129	core/java/android/content/pm/IPackageInstallObserver2.aidl \
130	core/java/android/content/pm/IPackageInstaller.aidl \
131	core/java/android/content/pm/IPackageInstallerSession.aidl \
132	core/java/android/content/pm/IPackageManager.aidl \
133	core/java/android/content/pm/IPackageMoveObserver.aidl \
134	core/java/android/content/pm/IPackageStatsObserver.aidl \
135	core/java/android/database/IContentObserver.aidl \
136	core/java/android/hardware/ICameraService.aidl \
137	core/java/android/hardware/ICameraServiceListener.aidl \
138	core/java/android/hardware/ICamera.aidl \
139	core/java/android/hardware/ICameraClient.aidl \
140	core/java/android/hardware/IConsumerIrService.aidl \
141	core/java/android/hardware/IProCameraUser.aidl \
142	core/java/android/hardware/IProCameraCallbacks.aidl \
143	core/java/android/hardware/camera2/ICameraDeviceUser.aidl \
144	core/java/android/hardware/camera2/ICameraDeviceCallbacks.aidl \
145	core/java/android/hardware/ISerialManager.aidl \
146	core/java/android/hardware/display/IDisplayManager.aidl \
147	core/java/android/hardware/display/IDisplayManagerCallback.aidl \
148	core/java/android/hardware/hdmi/IHdmiCecListener.aidl \
149	core/java/android/hardware/hdmi/IHdmiCecService.aidl \
150	core/java/android/hardware/hdmi/IHdmiControlCallback.aidl \
151	core/java/android/hardware/hdmi/IHdmiControlService.aidl \
152	core/java/android/hardware/input/IInputManager.aidl \
153	core/java/android/hardware/input/IInputDevicesChangedListener.aidl \
154	core/java/android/hardware/location/IFusedLocationHardware.aidl \
155	core/java/android/hardware/location/IFusedLocationHardwareSink.aidl \
156	core/java/android/hardware/location/IGeofenceHardware.aidl \
157	core/java/android/hardware/location/IGeofenceHardwareCallback.aidl \
158	core/java/android/hardware/location/IGeofenceHardwareMonitorCallback.aidl \
159	core/java/android/hardware/usb/IUsbManager.aidl \
160	core/java/android/net/IConnectivityManager.aidl \
161	core/java/android/net/INetworkManagementEventObserver.aidl \
162	core/java/android/net/INetworkPolicyListener.aidl \
163	core/java/android/net/INetworkPolicyManager.aidl \
164	core/java/android/net/INetworkScoreCache.aidl \
165	core/java/android/net/INetworkScoreService.aidl \
166	core/java/android/net/INetworkStatsService.aidl \
167	core/java/android/net/INetworkStatsSession.aidl \
168	core/java/android/net/nsd/INsdManager.aidl \
169	core/java/android/nfc/IAppCallback.aidl \
170	core/java/android/nfc/INfcAdapter.aidl \
171	core/java/android/nfc/INfcAdapterExtras.aidl \
172	core/java/android/nfc/INfcTag.aidl \
173	core/java/android/nfc/INfcCardEmulation.aidl \
174	core/java/android/nfc/INfcUnlockSettings.aidl \
175	core/java/android/os/IBatteryPropertiesListener.aidl \
176	core/java/android/os/IBatteryPropertiesRegistrar.aidl \
177	core/java/android/os/ICancellationSignal.aidl \
178	core/java/android/os/IHardwareService.aidl \
179	core/java/android/os/IMessenger.aidl \
180	core/java/android/os/INetworkActivityListener.aidl \
181	core/java/android/os/INetworkManagementService.aidl \
182	core/java/android/os/IPermissionController.aidl \
183	core/java/android/os/IPowerManager.aidl \
184	core/java/android/os/IRemoteCallback.aidl \
185	core/java/android/os/ISchedulingPolicyService.aidl \
186	core/java/android/os/IUpdateLock.aidl \
187	core/java/android/os/IUserManager.aidl \
188	core/java/android/os/IVibratorService.aidl \
189	core/java/android/service/notification/INotificationListener.aidl \
190	core/java/android/service/notification/IConditionListener.aidl \
191	core/java/android/service/notification/IConditionProvider.aidl \
192	core/java/android/print/ILayoutResultCallback.aidl \
193	core/java/android/print/IPrinterDiscoveryObserver.aidl \
194	core/java/android/print/IPrintDocumentAdapter.aidl \
195	core/java/android/print/IPrintDocumentAdapterObserver.aidl \
196	core/java/android/print/IPrintJobStateChangeListener.aidl \
197	core/java/android/print/IPrintManager.aidl \
198	core/java/android/print/IPrintSpooler.aidl \
199	core/java/android/print/IPrintSpoolerCallbacks.aidl \
200	core/java/android/print/IPrintSpoolerClient.aidl \
201	core/java/android/print/IWriteResultCallback.aidl \
202	core/java/android/printservice/IPrintService.aidl \
203	core/java/android/printservice/IPrintServiceClient.aidl \
204	core/java/android/service/dreams/IDozeHardware.aidl \
205	core/java/android/service/dreams/IDreamManager.aidl \
206	core/java/android/service/dreams/IDreamService.aidl \
207	core/java/android/service/fingerprint/IFingerprintService.aidl \
208	core/java/android/service/fingerprint/IFingerprintServiceReceiver.aidl \
209	core/java/android/service/trust/ITrustAgentService.aidl \
210	core/java/android/service/trust/ITrustAgentServiceCallback.aidl \
211	core/java/android/service/voice/IVoiceInteractionService.aidl \
212	core/java/android/service/voice/IVoiceInteractionSession.aidl \
213	core/java/android/service/voice/IVoiceInteractionSessionService.aidl \
214	core/java/android/service/wallpaper/IWallpaperConnection.aidl \
215	core/java/android/service/wallpaper/IWallpaperEngine.aidl \
216	core/java/android/service/wallpaper/IWallpaperService.aidl \
217	core/java/android/tv/ITvInputClient.aidl \
218	core/java/android/tv/ITvInputManager.aidl \
219	core/java/android/tv/ITvInputService.aidl \
220	core/java/android/tv/ITvInputServiceCallback.aidl \
221	core/java/android/tv/ITvInputSession.aidl \
222	core/java/android/tv/ITvInputSessionCallback.aidl \
223	core/java/android/view/accessibility/IAccessibilityInteractionConnection.aidl\
224	core/java/android/view/accessibility/IAccessibilityInteractionConnectionCallback.aidl\
225	core/java/android/view/accessibility/IAccessibilityManager.aidl \
226	core/java/android/view/accessibility/IAccessibilityManagerClient.aidl \
227	core/java/android/view/IApplicationToken.aidl \
228	core/java/android/view/IAssetAtlas.aidl \
229	core/java/android/view/IInputFilter.aidl \
230	core/java/android/view/IInputFilterHost.aidl \
231	core/java/android/view/IOnKeyguardExitResult.aidl \
232	core/java/android/view/IRotationWatcher.aidl \
233	core/java/android/view/IWindow.aidl \
234	core/java/android/view/IWindowFocusObserver.aidl \
235	core/java/android/view/IWindowId.aidl \
236	core/java/android/view/IWindowManager.aidl \
237	core/java/android/view/IWindowSession.aidl \
238	core/java/android/speech/IRecognitionListener.aidl \
239	core/java/android/speech/IRecognitionService.aidl \
240	core/java/android/speech/tts/ITextToSpeechCallback.aidl \
241	core/java/android/speech/tts/ITextToSpeechService.aidl \
242	core/java/com/android/internal/app/IAppOpsCallback.aidl \
243	core/java/com/android/internal/app/IAppOpsService.aidl \
244	core/java/com/android/internal/app/IBatteryStats.aidl \
245	core/java/com/android/internal/app/IProcessStats.aidl \
246	core/java/com/android/internal/app/IUsageStats.aidl \
247	core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl \
248	core/java/com/android/internal/app/IVoiceInteractor.aidl \
249	core/java/com/android/internal/app/IVoiceInteractorCallback.aidl \
250	core/java/com/android/internal/app/IVoiceInteractorRequest.aidl \
251	core/java/com/android/internal/app/IMediaContainerService.aidl \
252	core/java/com/android/internal/appwidget/IAppWidgetService.aidl \
253	core/java/com/android/internal/appwidget/IAppWidgetHost.aidl \
254	core/java/com/android/internal/backup/IBackupTransport.aidl \
255	core/java/com/android/internal/backup/IObbBackupService.aidl \
256	core/java/com/android/internal/policy/IFaceLockCallback.aidl \
257	core/java/com/android/internal/policy/IFaceLockInterface.aidl \
258	core/java/com/android/internal/policy/IKeyguardShowCallback.aidl \
259	core/java/com/android/internal/policy/IKeyguardExitCallback.aidl \
260	core/java/com/android/internal/policy/IKeyguardService.aidl \
261	core/java/com/android/internal/os/IDropBoxManagerService.aidl \
262	core/java/com/android/internal/os/IResultReceiver.aidl \
263	core/java/com/android/internal/statusbar/IStatusBar.aidl \
264	core/java/com/android/internal/statusbar/IStatusBarService.aidl \
265	core/java/com/android/internal/textservice/ISpellCheckerService.aidl \
266	core/java/com/android/internal/textservice/ISpellCheckerSession.aidl \
267	core/java/com/android/internal/textservice/ISpellCheckerSessionListener.aidl \
268	core/java/com/android/internal/textservice/ITextServicesManager.aidl \
269	core/java/com/android/internal/textservice/ITextServicesSessionListener.aidl \
270	core/java/com/android/internal/view/IInputContext.aidl \
271	core/java/com/android/internal/view/IInputContextCallback.aidl \
272	core/java/com/android/internal/view/IInputMethod.aidl \
273	core/java/com/android/internal/view/IInputMethodClient.aidl \
274	core/java/com/android/internal/view/IInputMethodManager.aidl \
275	core/java/com/android/internal/view/IInputMethodSession.aidl \
276	core/java/com/android/internal/view/IInputSessionCallback.aidl \
277	core/java/com/android/internal/widget/ILockSettings.aidl \
278	core/java/com/android/internal/widget/IRemoteViewsFactory.aidl \
279	core/java/com/android/internal/widget/IRemoteViewsAdapterConnection.aidl \
280	keystore/java/android/security/IKeyChainAliasCallback.aidl \
281	keystore/java/android/security/IKeyChainService.aidl \
282	location/java/android/location/ICountryDetector.aidl \
283	location/java/android/location/ICountryListener.aidl \
284	location/java/android/location/IFusedProvider.aidl \
285	location/java/android/location/IGeocodeProvider.aidl \
286	location/java/android/location/IGeofenceProvider.aidl \
287	location/java/android/location/IGpsStatusListener.aidl \
288	location/java/android/location/IGpsStatusProvider.aidl \
289	location/java/android/location/ILocationListener.aidl \
290	location/java/android/location/ILocationManager.aidl \
291	location/java/android/location/IFusedGeofenceHardware.aidl \
292	location/java/android/location/IGpsGeofenceHardware.aidl \
293	location/java/android/location/INetInitiatedListener.aidl \
294	location/java/com/android/internal/location/ILocationProvider.aidl \
295	media/java/android/media/IAudioService.aidl \
296	media/java/android/media/IAudioFocusDispatcher.aidl \
297	media/java/android/media/IAudioRoutesObserver.aidl \
298	media/java/android/media/IMediaHTTPConnection.aidl \
299	media/java/android/media/IMediaHTTPService.aidl \
300	media/java/android/media/IMediaRouterClient.aidl \
301	media/java/android/media/IMediaRouterService.aidl \
302	media/java/android/media/IMediaScannerListener.aidl \
303	media/java/android/media/IMediaScannerService.aidl \
304	media/java/android/media/IRemoteControlClient.aidl \
305	media/java/android/media/IRemoteControlDisplay.aidl \
306	media/java/android/media/IRemoteDisplayCallback.aidl \
307	media/java/android/media/IRemoteDisplayProvider.aidl \
308	media/java/android/media/IRemoteVolumeObserver.aidl \
309	media/java/android/media/IRingtonePlayer.aidl \
310        media/java/android/media/routeprovider/IRouteConnection.aidl \
311        media/java/android/media/routeprovider/IRouteProvider.aidl \
312        media/java/android/media/routeprovider/IRouteProviderCallback.aidl \
313        media/java/android/media/session/ISessionController.aidl \
314        media/java/android/media/session/ISessionControllerCallback.aidl \
315        media/java/android/media/session/ISession.aidl \
316        media/java/android/media/session/ISessionCallback.aidl \
317        media/java/android/media/session/ISessionManager.aidl \
318	telecomm/java/com/android/internal/telecomm/ICallService.aidl \
319	telecomm/java/com/android/internal/telecomm/ICallServiceAdapter.aidl \
320	telecomm/java/com/android/internal/telecomm/ICallServiceLookupResponse.aidl \
321	telecomm/java/com/android/internal/telecomm/ICallServiceProvider.aidl \
322	telecomm/java/com/android/internal/telecomm/ICallServiceSelector.aidl \
323	telecomm/java/com/android/internal/telecomm/ICallServiceSelectorAdapter.aidl \
324	telecomm/java/com/android/internal/telecomm/IInCallAdapter.aidl \
325	telecomm/java/com/android/internal/telecomm/IInCallService.aidl \
326	telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl \
327	telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \
328	telephony/java/com/android/internal/telephony/ITelephony.aidl \
329	telephony/java/com/android/internal/telephony/IThirdPartyCallListener.aidl \
330	telephony/java/com/android/internal/telephony/IThirdPartyCallProvider.aidl \
331	telephony/java/com/android/internal/telephony/IThirdPartyCallSendDtmfCallback.aidl \
332	telephony/java/com/android/internal/telephony/IThirdPartyCallService.aidl \
333	telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl \
334	telephony/java/com/android/internal/telephony/ISms.aidl \
335	telephony/java/com/android/internal/telephony/IWapPushManager.aidl \
336	wifi/java/android/net/wifi/IWifiManager.aidl \
337	wifi/java/android/net/wifi/passpoint/IPasspointManager.aidl \
338	wifi/java/android/net/wifi/p2p/IWifiP2pManager.aidl \
339	wifi/java/android/net/wifi/IWifiScanner.aidl \
340	packages/services/PacProcessor/com/android/net/IProxyService.aidl \
341	packages/services/Proxy/com/android/net/IProxyCallback.aidl \
342	packages/services/Proxy/com/android/net/IProxyPortListener.aidl \
343
344# FRAMEWORKS_BASE_JAVA_SRC_DIRS comes from build/core/pathmap.mk
345LOCAL_AIDL_INCLUDES += $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
346
347LOCAL_INTERMEDIATE_SOURCES := \
348			$(framework_res_source_path)/android/R.java \
349			$(framework_res_source_path)/android/Manifest.java \
350			$(framework_res_source_path)/com/android/internal/R.java
351
352LOCAL_NO_STANDARD_LIBRARIES := true
353LOCAL_JAVA_LIBRARIES := bouncycastle conscrypt core core-junit ext okhttp
354
355LOCAL_MODULE := framework-base
356
357LOCAL_RMTYPEDEFS := true
358
359include $(BUILD_STATIC_JAVA_LIBRARY)
360
361# Make sure that R.java and Manifest.java are built before we build
362# the source for this library.
363framework_res_R_stamp := \
364	$(call intermediates-dir-for,APPS,framework-res,,COMMON)/src/R.stamp
365$(full_classes_compiled_jar): $(framework_res_R_stamp)
366
367# Build part 1 of the framework library.
368# ============================================================
369include $(CLEAR_VARS)
370
371LOCAL_MODULE := framework
372LOCAL_MODULE_CLASS := JAVA_LIBRARIES
373LOCAL_NO_STANDARD_LIBRARIES := true
374LOCAL_STATIC_JAVA_LIBRARIES := framework-base
375LOCAL_DX_FLAGS := --core-library
376
377# Packages to include, use \* wildcard to include descendants.
378LOCAL_JAR_PACKAGES := android\*
379
380# List of classes and interfaces which should be loaded by the Zygote.
381LOCAL_JAVA_RESOURCE_FILES += $(LOCAL_PATH)/preloaded-classes
382
383include $(BUILD_JAVA_LIBRARY)
384framework_module := $(LOCAL_INSTALLED_MODULE)
385
386# Build part 2 of the framework library.
387# ============================================================
388include $(CLEAR_VARS)
389
390LOCAL_MODULE := framework2
391LOCAL_MODULE_CLASS := JAVA_LIBRARIES
392LOCAL_NO_STANDARD_LIBRARIES := true
393LOCAL_STATIC_JAVA_LIBRARIES := framework-base
394LOCAL_DX_FLAGS := --core-library
395
396# Packages to include, use \* wildcard to include descendants.
397LOCAL_JAR_PACKAGES := com\* javax\*
398
399include $(BUILD_JAVA_LIBRARY)
400framework2_module := $(LOCAL_INSTALLED_MODULE)
401
402# Make sure that all framework modules are installed when framework is.
403# ============================================================
404$(framework_module): | $(dir $(framework_module))framework-res.apk
405$(framework_module): | $(dir $(framework_module))framework2.jar
406
407framework_built := $(call java-lib-deps,framework framework2)
408
409# Copy AIDL files to be preprocessed and included in the SDK,
410# specified relative to the root of the build tree.
411# ============================================================
412include $(CLEAR_VARS)
413
414aidl_files := \
415	frameworks/base/core/java/android/accounts/IAccountManager.aidl \
416	frameworks/base/core/java/android/accounts/IAccountManagerResponse.aidl \
417	frameworks/base/core/java/android/accounts/IAccountAuthenticator.aidl \
418	frameworks/base/core/java/android/accounts/IAccountAuthenticatorResponse.aidl \
419	frameworks/base/core/java/android/app/Notification.aidl \
420	frameworks/base/core/java/android/app/PendingIntent.aidl \
421	frameworks/base/core/java/android/appwidget/AppWidgetProviderInfo.aidl \
422	frameworks/base/core/java/android/bluetooth/BluetoothDevice.aidl \
423	frameworks/base/core/java/android/bluetooth/BluetoothHealthAppConfiguration.aidl \
424	frameworks/base/core/java/android/content/ComponentName.aidl \
425	frameworks/base/core/java/android/content/ContentValues.aidl \
426	frameworks/base/core/java/android/content/Intent.aidl \
427	frameworks/base/core/java/android/content/IntentSender.aidl \
428	frameworks/base/core/java/android/content/PeriodicSync.aidl \
429	frameworks/base/core/java/android/content/SyncRequest.aidl \
430	frameworks/base/core/java/android/content/SyncStats.aidl \
431	frameworks/base/core/java/android/content/res/Configuration.aidl \
432	frameworks/base/core/java/android/database/CursorWindow.aidl \
433	frameworks/base/core/java/android/hardware/location/GeofenceHardwareRequestParcelable.aidl \
434	frameworks/base/core/java/android/net/Uri.aidl \
435	frameworks/base/core/java/android/nfc/NdefMessage.aidl \
436	frameworks/base/core/java/android/nfc/NdefRecord.aidl \
437	frameworks/base/core/java/android/nfc/Tag.aidl \
438	frameworks/base/core/java/android/os/Bundle.aidl \
439	frameworks/base/core/java/android/os/DropBoxManager.aidl \
440	frameworks/base/core/java/android/os/ParcelFileDescriptor.aidl \
441	frameworks/base/core/java/android/os/ParcelUuid.aidl \
442	frameworks/base/core/java/android/print/PrinterInfo.aidl \
443	frameworks/base/core/java/android/print/PageRange.aidl \
444	frameworks/base/core/java/android/print/PrintAttributes.aidl \
445	frameworks/base/core/java/android/print/PrinterCapabilitiesInfo.aidl \
446	frameworks/base/core/java/android/print/PrinterId.aidl \
447	frameworks/base/core/java/android/print/PrintJobId.aidl \
448	frameworks/base/core/java/android/print/PrintJobInfo.aidl \
449	frameworks/base/core/java/android/view/accessibility/AccessibilityEvent.aidl \
450	frameworks/base/core/java/android/view/accessibility/AccessibilityNodeInfo.aidl \
451	frameworks/base/core/java/android/view/accessibility/AccessibilityRecord.aidl \
452	frameworks/base/core/java/android/view/accessibility/AccessibilityWindowInfo.aidl \
453	frameworks/base/core/java/android/view/KeyEvent.aidl \
454	frameworks/base/core/java/android/view/MotionEvent.aidl \
455	frameworks/base/core/java/android/view/Surface.aidl \
456	frameworks/base/core/java/android/view/WindowManager.aidl \
457	frameworks/base/core/java/android/view/WindowAnimationFrameStats.aidl \
458	frameworks/base/core/java/android/view/WindowContentFrameStats.aidl \
459	frameworks/base/core/java/android/widget/RemoteViews.aidl \
460	frameworks/base/core/java/com/android/internal/textservice/ISpellCheckerService.aidl \
461	frameworks/base/core/java/com/android/internal/textservice/ISpellCheckerSession.aidl \
462	frameworks/base/core/java/com/android/internal/textservice/ISpellCheckerSessionListener.aidl \
463	frameworks/base/core/java/com/android/internal/textservice/ITextServicesManager.aidl \
464	frameworks/base/core/java/com/android/internal/textservice/ITextServicesSessionListener.aidl \
465	frameworks/base/core/java/com/android/internal/view/IInputContext.aidl \
466	frameworks/base/core/java/com/android/internal/view/IInputMethod.aidl \
467	frameworks/base/core/java/com/android/internal/view/IInputMethodClient.aidl \
468	frameworks/base/core/java/com/android/internal/view/IInputMethodManager.aidl \
469	frameworks/base/core/java/com/android/internal/view/IInputMethodSession.aidl \
470	frameworks/base/graphics/java/android/graphics/Bitmap.aidl \
471	frameworks/base/graphics/java/android/graphics/Rect.aidl \
472	frameworks/base/graphics/java/android/graphics/Region.aidl \
473	frameworks/base/location/java/android/location/Criteria.aidl \
474	frameworks/base/location/java/android/location/Geofence.aidl \
475	frameworks/base/location/java/android/location/Location.aidl \
476	frameworks/base/location/java/android/location/LocationRequest.aidl \
477	frameworks/base/location/java/android/location/FusedBatchOptions.aidl \
478	frameworks/base/location/java/com/android/internal/location/ProviderProperties.aidl \
479	frameworks/base/location/java/com/android/internal/location/ProviderRequest.aidl \
480	frameworks/base/telephony/java/android/telephony/ServiceState.aidl \
481	frameworks/base/telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \
482	frameworks/base/telephony/java/com/android/internal/telephony/ITelephony.aidl \
483	frameworks/base/wifi/java/android/net/wifi/BatchedScanSettings.aidl \
484	frameworks/base/wifi/java/android/net/wifi/BatchedScanResult.aidl \
485
486gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl
487$(gen): PRIVATE_SRC_FILES := $(aidl_files)
488ALL_SDK_FILES += $(gen)
489$(gen): $(aidl_files) | $(AIDL)
490		@echo Aidl Preprocess: $@
491		$(hide) $(AIDL) --preprocess $@ $(PRIVATE_SRC_FILES)
492
493# the documentation
494# ============================================================
495
496# TODO: deal with com/google/android/googleapps
497packages_to_document := \
498	android \
499	javax/microedition/khronos
500
501# Search through the base framework dirs for these packages.
502# The result will be relative to frameworks/base.
503fwbase_dirs_to_document := \
504	test-runner/src \
505	$(patsubst $(LOCAL_PATH)/%,%, \
506	  $(wildcard \
507	    $(foreach dir, $(FRAMEWORKS_BASE_JAVA_SRC_DIRS), \
508	      $(addprefix $(dir)/, $(packages_to_document)) \
509	     ) \
510	   ) \
511	 )
512
513# include definition of libcore_to_document
514include libcore/Docs.mk
515
516# include definition of junit_to_document
517include external/junit/Common.mk
518
519non_base_dirs := \
520	../../external/apache-http/src/org/apache/http \
521	../opt/telephony/src/java/android/provider \
522	../opt/telephony/src/java/android/telephony \
523	../opt/telephony/src/java/android/telephony/gsm \
524	../opt/net/voip/src/java/android/net/rtp \
525	../opt/net/voip/src/java/android/net/sip
526
527# These are relative to frameworks/base
528dirs_to_check_apis := \
529  $(fwbase_dirs_to_document) \
530	$(non_base_dirs)
531
532# These are relative to frameworks/base
533# FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
534dirs_to_document := \
535	$(dirs_to_check_apis) \
536  $(addprefix ../../, $(FRAMEWORKS_SUPPORT_JAVA_SRC_DIRS))
537
538# These are relative to frameworks/base
539html_dirs := \
540	$(FRAMEWORKS_BASE_SUBDIRS) \
541	$(non_base_dirs)
542
543# Common sources for doc check and api check
544common_src_files := \
545	$(call find-other-html-files, $(html_dirs)) \
546	$(addprefix ../../libcore/, $(libcore_to_document)) \
547	$(addprefix ../../external/junit/, $(junit_to_document))
548
549# These are relative to frameworks/base
550framework_docs_LOCAL_SRC_FILES := \
551	$(call find-other-java-files, $(dirs_to_document)) \
552	$(common_src_files)
553
554# These are relative to frameworks/base
555framework_docs_LOCAL_API_CHECK_SRC_FILES := \
556	$(call find-other-java-files, $(dirs_to_check_apis)) \
557	$(common_src_files)
558
559# This is used by ide.mk as the list of source files that are
560# always included.
561INTERNAL_SDK_SOURCE_DIRS := $(addprefix $(LOCAL_PATH)/,$(dirs_to_document))
562
563framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
564	$(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
565
566framework_docs_LOCAL_INTERMEDIATE_SOURCES := \
567	$(framework_res_source_path)/android/R.java \
568	$(framework_res_source_path)/android/Manifest.java \
569	$(framework_res_source_path)/com/android/internal/R.java
570
571framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES := \
572	bouncycastle \
573	conscrypt \
574	core \
575	okhttp \
576	ext \
577	framework \
578	framework2 \
579	mms-common \
580	telephony-common \
581	voip-common
582
583framework_docs_LOCAL_JAVA_LIBRARIES := \
584	$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) \
585	$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES)
586
587framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
588framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
589# The since flag (-since N.xml API_LEVEL) is used to add API Level information
590# to the reference documentation. Must be in order of oldest to newest.
591framework_docs_LOCAL_DROIDDOC_OPTIONS := \
592    -knowntags ./frameworks/base/docs/knowntags.txt \
593    -since $(SRC_API_DIR)/1.xml 1 \
594    -since $(SRC_API_DIR)/2.xml 2 \
595    -since $(SRC_API_DIR)/3.xml 3 \
596    -since $(SRC_API_DIR)/4.xml 4 \
597    -since $(SRC_API_DIR)/5.xml 5 \
598    -since $(SRC_API_DIR)/6.xml 6 \
599    -since $(SRC_API_DIR)/7.xml 7 \
600    -since $(SRC_API_DIR)/8.xml 8 \
601    -since $(SRC_API_DIR)/9.xml 9 \
602    -since $(SRC_API_DIR)/10.xml 10 \
603    -since $(SRC_API_DIR)/11.xml 11 \
604    -since $(SRC_API_DIR)/12.xml 12 \
605    -since $(SRC_API_DIR)/13.xml 13 \
606    -since $(SRC_API_DIR)/14.txt 14 \
607    -since $(SRC_API_DIR)/15.txt 15 \
608    -since $(SRC_API_DIR)/16.txt 16 \
609    -since $(SRC_API_DIR)/17.txt 17 \
610    -since $(SRC_API_DIR)/18.txt 18 \
611    -since $(SRC_API_DIR)/19.txt 19 \
612		-werror -hide 113 \
613		-overview $(LOCAL_PATH)/core/java/overview.html
614
615framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR:= \
616	$(call intermediates-dir-for,JAVA_LIBRARIES,framework-base,,COMMON)
617
618framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= \
619	$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR) \
620	$(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib),,COMMON)) \
621	$(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib)-res,,COMMON))
622
623framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES := \
624    frameworks/base/docs/knowntags.txt
625
626samples_dir := development/samples/browseable
627
628# Whitelist of valid groups, used for default TOC grouping. Each sample must
629# belong to one (and only one) group. Assign samples to groups by setting
630# a sample.group var to one of these groups in the sample's _index.jd.
631sample_groups := -samplegroup Background \
632                 -samplegroup Connectivity \
633                 -samplegroup Content \
634                 -samplegroup Input \
635                 -samplegroup Media \
636                 -samplegroup RenderScript \
637                 -samplegroup Security \
638                 -samplegroup Sensors \
639                 -samplegroup Testing \
640                 -samplegroup UI \
641                 -samplegroup Views
642
643## SDK version identifiers used in the published docs
644  # major[.minor] version for current SDK. (full releases only)
645framework_docs_SDK_VERSION:=4.4
646  # release version (ie "Release x")  (full releases only)
647framework_docs_SDK_REL_ID:=1
648
649framework_docs_LOCAL_DROIDDOC_OPTIONS += \
650		-hdf sdk.version $(framework_docs_SDK_VERSION) \
651		-hdf sdk.rel.id $(framework_docs_SDK_REL_ID) \
652		-hdf sdk.preview 0
653
654# ====  the api stubs and current.xml ===========================
655include $(CLEAR_VARS)
656
657LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
658LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
659LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
660LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
661LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
662LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
663LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
664LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
665
666LOCAL_MODULE := api-stubs
667
668LOCAL_DROIDDOC_OPTIONS:=\
669		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
670		-stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_stubs_current_intermediates/src \
671		-api $(INTERNAL_PLATFORM_API_FILE) \
672		-removedApi $(INTERNAL_PLATFORM_REMOVED_API_FILE) \
673		-nodocs
674
675LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
676
677LOCAL_UNINSTALLABLE_MODULE := true
678
679include $(BUILD_DROIDDOC)
680
681# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
682$(full_target): $(framework_built) $(gen)
683$(INTERNAL_PLATFORM_API_FILE): $(full_target)
684$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE))
685
686# ====  the private api stubs ===================================
687include $(CLEAR_VARS)
688
689LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
690LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
691LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
692LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
693LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
694LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
695LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
696LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
697
698LOCAL_MODULE := private-api-stubs
699
700LOCAL_DROIDDOC_OPTIONS:=\
701		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
702		-stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_private_stubs_current_intermediates/src \
703        -showAnnotation android.annotation.PrivateApi \
704		-nodocs
705
706LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
707
708LOCAL_UNINSTALLABLE_MODULE := true
709
710include $(BUILD_DROIDDOC)
711
712# ====  check javadoc comments but don't generate docs ========
713include $(CLEAR_VARS)
714
715LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
716LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
717LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
718LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
719LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
720LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
721LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
722LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
723
724LOCAL_MODULE := doc-comment-check
725
726LOCAL_DROIDDOC_OPTIONS:=\
727		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
728		-parsecomments
729
730LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
731
732LOCAL_UNINSTALLABLE_MODULE := true
733
734include $(BUILD_DROIDDOC)
735
736# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
737$(full_target): $(framework_built) $(gen)
738
739# Run this for checkbuild
740checkbuild: doc-comment-check-docs
741# Check comment when you are updating the API
742update-api: doc-comment-check-docs
743
744# ====  static html in the sdk ==================================
745include $(CLEAR_VARS)
746
747LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
748LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
749LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
750LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
751LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
752LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
753LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
754LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
755
756LOCAL_MODULE := offline-sdk
757
758LOCAL_DROIDDOC_OPTIONS:=\
759		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
760		-offlinemode \
761		-title "Android SDK" \
762		-proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
763		-todo $(OUT_DOCS)/$(LOCAL_MODULE)-docs-todo.html \
764		-sdkvalues $(OUT_DOCS) \
765		-hdf android.whichdoc offline
766
767LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
768
769include $(BUILD_DROIDDOC)
770
771static_doc_index_redirect := $(out_dir)/index.html
772$(static_doc_index_redirect): \
773	$(LOCAL_PATH)/docs/docs-documentation-redirect.html | $(ACP)
774	$(hide) mkdir -p $(dir $@)
775	$(hide) $(ACP) $< $@
776
777$(full_target): $(static_doc_index_redirect)
778$(full_target): $(framework_built)
779
780# ==== docs for the web (on the androiddevdocs app engine server) =======================
781include $(CLEAR_VARS)
782
783LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
784LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
785LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
786LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
787LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
788LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
789LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
790LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
791LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
792LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
793
794LOCAL_MODULE := online-sdk
795
796LOCAL_DROIDDOC_OPTIONS:= \
797		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
798		-toroot / \
799		-hdf android.whichdoc online \
800		$(sample_groups) \
801		-hdf android.hasSamples true \
802		-samplesdir $(samples_dir)
803
804LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
805
806include $(BUILD_DROIDDOC)
807
808# ==== docs for the web (on the devsite app engine server) =======================
809include $(CLEAR_VARS)
810LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
811LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
812LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
813LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
814LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
815LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
816LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
817LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
818LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
819# specify a second html input dir and an output path relative to OUT_DIR)
820LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl/intl /
821
822LOCAL_MODULE := ds
823
824LOCAL_DROIDDOC_OPTIONS:= \
825		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
826		-devsite \
827		-toroot / \
828		-hdf android.whichdoc online \
829		-hdf devsite true
830
831LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
832
833include $(BUILD_DROIDDOC)
834
835# ==== docs that have all of the stuff that's @hidden =======================
836include $(CLEAR_VARS)
837
838LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
839LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
840LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
841LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
842LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
843LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
844LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
845LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
846
847LOCAL_MODULE := hidden
848LOCAL_DROIDDOC_OPTIONS:=\
849		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
850		-title "Android SDK - Including hidden APIs."
851#		-hidden
852
853LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
854
855include $(BUILD_DROIDDOC)
856
857# Build ext.jar
858# ============================================================
859
860# NOTICE notes for non-obvious sections
861# apache-http - covered by the Apache Commons section.
862
863
864ext_dirs := \
865	../../external/nist-sip/java \
866	../../external/apache-http/src \
867	../../external/tagsoup/src \
868	../../external/libphonenumber/java/src
869
870ext_src_files := $(call all-java-files-under,$(ext_dirs))
871
872ext_res_dirs := \
873	../../external/libphonenumber/java/src
874
875# ====  the library  =========================================
876include $(CLEAR_VARS)
877
878LOCAL_SRC_FILES := $(ext_src_files)
879
880LOCAL_NO_STANDARD_LIBRARIES := true
881LOCAL_JAVA_LIBRARIES := core
882LOCAL_JAVA_RESOURCE_DIRS := $(ext_res_dirs)
883LOCAL_MODULE_TAGS := optional
884LOCAL_MODULE := ext
885
886LOCAL_DX_FLAGS := --core-library
887
888include $(BUILD_JAVA_LIBRARY)
889
890
891# Include subdirectory makefiles
892# ============================================================
893
894# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
895# team really wants is to build the stuff defined by this makefile.
896ifeq (,$(ONE_SHOT_MAKEFILE))
897include $(call first-makefiles-under,$(LOCAL_PATH))
898endif
899
900endif # ANDROID_BUILD_EMBEDDED
901