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