OSDN Git Service

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