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