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