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