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