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