Android.mk revision acd6f5fcfae019f7bd1fdb47b42c7771049df645
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/webkit/EventLogTags.logtags \ 40 telephony/java/com/android/internal/telephony/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/IEventListener.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/IActivityWatcher.aidl \ 70 core/java/android/app/IAlarmManager.aidl \ 71 core/java/android/app/IBackupAgent.aidl \ 72 core/java/android/app/IInstrumentationWatcher.aidl \ 73 core/java/android/app/INotificationManager.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/IThumbnailReceiver.aidl \ 78 core/java/android/app/IThumbnailRetriever.aidl \ 79 core/java/android/app/ITransientNotification.aidl \ 80 core/java/android/app/IUiModeManager.aidl \ 81 core/java/android/app/IWallpaperManager.aidl \ 82 core/java/android/app/IWallpaperManagerCallback.aidl \ 83 core/java/android/app/admin/IDevicePolicyManager.aidl \ 84 core/java/android/app/backup/IBackupManager.aidl \ 85 core/java/android/app/backup/IFullBackupRestoreObserver.aidl \ 86 core/java/android/app/backup/IRestoreObserver.aidl \ 87 core/java/android/app/backup/IRestoreSession.aidl \ 88 core/java/android/bluetooth/IBluetooth.aidl \ 89 core/java/android/bluetooth/IBluetoothA2dp.aidl \ 90 core/java/android/bluetooth/IBluetoothCallback.aidl \ 91 core/java/android/bluetooth/IBluetoothHeadset.aidl \ 92 core/java/android/bluetooth/IBluetoothPbap.aidl \ 93 core/java/android/content/IClipboard.aidl \ 94 core/java/android/content/IContentService.aidl \ 95 core/java/android/content/IIntentReceiver.aidl \ 96 core/java/android/content/IIntentSender.aidl \ 97 core/java/android/content/IOnPrimaryClipChangedListener.aidl \ 98 core/java/android/content/ISyncAdapter.aidl \ 99 core/java/android/content/ISyncContext.aidl \ 100 core/java/android/content/ISyncStatusObserver.aidl \ 101 core/java/android/content/pm/IPackageDataObserver.aidl \ 102 core/java/android/content/pm/IPackageDeleteObserver.aidl \ 103 core/java/android/content/pm/IPackageInstallObserver.aidl \ 104 core/java/android/content/pm/IPackageManager.aidl \ 105 core/java/android/content/pm/IPackageMoveObserver.aidl \ 106 core/java/android/content/pm/IPackageStatsObserver.aidl \ 107 core/java/android/database/IContentObserver.aidl \ 108 core/java/android/hardware/usb/IUsbManager.aidl \ 109 core/java/android/net/IConnectivityManager.aidl \ 110 core/java/android/net/INetworkManagementEventObserver.aidl \ 111 core/java/android/net/IThrottleManager.aidl \ 112 core/java/android/nfc/ILlcpConnectionlessSocket.aidl \ 113 core/java/android/nfc/ILlcpServiceSocket.aidl \ 114 core/java/android/nfc/ILlcpSocket.aidl \ 115 core/java/android/nfc/INfcAdapter.aidl \ 116 core/java/android/nfc/INfcAdapterExtras.aidl \ 117 core/java/android/nfc/INfcTag.aidl \ 118 core/java/android/nfc/IP2pInitiator.aidl \ 119 core/java/android/nfc/IP2pTarget.aidl \ 120 core/java/android/os/IHardwareService.aidl \ 121 core/java/android/os/IMessenger.aidl \ 122 core/java/android/os/INetworkManagementService.aidl \ 123 core/java/android/os/INetStatService.aidl \ 124 core/java/android/os/IPermissionController.aidl \ 125 core/java/android/os/IPowerManager.aidl \ 126 core/java/android/os/IRemoteCallback.aidl \ 127 core/java/android/os/IVibratorService.aidl \ 128 core/java/android/service/wallpaper/IWallpaperConnection.aidl \ 129 core/java/android/service/wallpaper/IWallpaperEngine.aidl \ 130 core/java/android/service/wallpaper/IWallpaperService.aidl \ 131 core/java/android/view/accessibility/IAccessibilityManager.aidl \ 132 core/java/android/view/accessibility/IAccessibilityManagerClient.aidl \ 133 core/java/android/view/IApplicationToken.aidl \ 134 core/java/android/view/IOnKeyguardExitResult.aidl \ 135 core/java/android/view/IRotationWatcher.aidl \ 136 core/java/android/view/IWindow.aidl \ 137 core/java/android/view/IWindowManager.aidl \ 138 core/java/android/view/IWindowSession.aidl \ 139 core/java/android/speech/IRecognitionListener.aidl \ 140 core/java/android/speech/IRecognitionService.aidl \ 141 core/java/android/speech/tts/ITextToSpeechCallback.aidl \ 142 core/java/android/speech/tts/ITextToSpeechService.aidl \ 143 core/java/com/android/internal/app/IBatteryStats.aidl \ 144 core/java/com/android/internal/app/IUsageStats.aidl \ 145 core/java/com/android/internal/app/IMediaContainerService.aidl \ 146 core/java/com/android/internal/appwidget/IAppWidgetService.aidl \ 147 core/java/com/android/internal/appwidget/IAppWidgetHost.aidl \ 148 core/java/com/android/internal/backup/IBackupTransport.aidl \ 149 core/java/com/android/internal/os/IDropBoxManagerService.aidl \ 150 core/java/com/android/internal/os/IResultReceiver.aidl \ 151 core/java/com/android/internal/statusbar/IStatusBar.aidl \ 152 core/java/com/android/internal/statusbar/IStatusBarService.aidl \ 153 core/java/com/android/internal/view/IInputContext.aidl \ 154 core/java/com/android/internal/view/IInputContextCallback.aidl \ 155 core/java/com/android/internal/view/IInputMethod.aidl \ 156 core/java/com/android/internal/view/IInputMethodCallback.aidl \ 157 core/java/com/android/internal/view/IInputMethodClient.aidl \ 158 core/java/com/android/internal/view/IInputMethodManager.aidl \ 159 core/java/com/android/internal/view/IInputMethodSession.aidl \ 160 core/java/com/android/internal/widget/IRemoteViewsFactory.aidl \ 161 core/java/com/android/internal/widget/IRemoteViewsAdapterConnection.aidl \ 162 keystore/java/android/security/IKeyChainService.aidl \ 163 location/java/android/location/ICountryDetector.aidl \ 164 location/java/android/location/ICountryListener.aidl \ 165 location/java/android/location/IGeocodeProvider.aidl \ 166 location/java/android/location/IGpsStatusListener.aidl \ 167 location/java/android/location/IGpsStatusProvider.aidl \ 168 location/java/android/location/ILocationListener.aidl \ 169 location/java/android/location/ILocationManager.aidl \ 170 location/java/android/location/ILocationProvider.aidl \ 171 location/java/android/location/INetInitiatedListener.aidl \ 172 media/java/android/media/IAudioService.aidl \ 173 media/java/android/media/IAudioFocusDispatcher.aidl \ 174 media/java/android/media/IMediaScannerListener.aidl \ 175 media/java/android/media/IMediaScannerService.aidl \ 176 telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl \ 177 telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \ 178 telephony/java/com/android/internal/telephony/ITelephony.aidl \ 179 telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl \ 180 telephony/java/com/android/internal/telephony/IIccPhoneBook.aidl \ 181 telephony/java/com/android/internal/telephony/ISms.aidl \ 182 telephony/java/com/android/internal/telephony/IWapPushManager.aidl \ 183 wifi/java/android/net/wifi/IWifiManager.aidl \ 184 telephony/java/com/android/internal/telephony/IExtendedNetworkService.aidl \ 185 vpn/java/android/net/vpn/IVpnService.aidl \ 186 voip/java/android/net/sip/ISipSession.aidl \ 187 voip/java/android/net/sip/ISipSessionListener.aidl \ 188 voip/java/android/net/sip/ISipService.aidl 189# 190 191 192# FRAMEWORKS_BASE_JAVA_SRC_DIRS comes from build/core/pathmap.mk 193LOCAL_AIDL_INCLUDES += $(FRAMEWORKS_BASE_JAVA_SRC_DIRS) 194 195LOCAL_INTERMEDIATE_SOURCES := \ 196 $(framework_res_source_path)/android/R.java \ 197 $(framework_res_source_path)/android/Manifest.java \ 198 $(framework_res_source_path)/com/android/internal/R.java 199 200LOCAL_NO_STANDARD_LIBRARIES := true 201LOCAL_JAVA_LIBRARIES := bouncycastle core core-junit ext 202 203LOCAL_MODULE := framework 204LOCAL_MODULE_CLASS := JAVA_LIBRARIES 205 206LOCAL_NO_EMMA_INSTRUMENT := true 207LOCAL_NO_EMMA_COMPILE := true 208 209# List of classes and interfaces which should be loaded by the Zygote. 210LOCAL_JAVA_RESOURCE_FILES += $(LOCAL_PATH)/preloaded-classes 211 212#LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.txt 213 214LOCAL_DX_FLAGS := --core-library 215 216include $(BUILD_JAVA_LIBRARY) 217 218# Make sure that R.java and Manifest.java are built before we build 219# the source for this library. 220framework_res_R_stamp := \ 221 $(call intermediates-dir-for,APPS,framework-res,,COMMON)/src/R.stamp 222$(full_classes_compiled_jar): $(framework_res_R_stamp) 223 224# Make sure that framework-res is installed when framework is. 225$(LOCAL_INSTALLED_MODULE): | $(dir $(LOCAL_INSTALLED_MODULE))framework-res.apk 226 227framework_built := $(LOCAL_BUILT_MODULE) 228 229# AIDL files to be preprocessed and included in the SDK, 230# relative to the root of the build tree. 231# ============================================================ 232aidl_files := \ 233 frameworks/base/core/java/android/accounts/IAccountManager.aidl \ 234 frameworks/base/core/java/android/accounts/IAccountManagerResponse.aidl \ 235 frameworks/base/core/java/android/accounts/IAccountAuthenticator.aidl \ 236 frameworks/base/core/java/android/accounts/IAccountAuthenticatorResponse.aidl \ 237 frameworks/base/core/java/android/app/Notification.aidl \ 238 frameworks/base/core/java/android/app/PendingIntent.aidl \ 239 frameworks/base/core/java/android/bluetooth/BluetoothDevice.aidl \ 240 frameworks/base/core/java/android/content/ComponentName.aidl \ 241 frameworks/base/core/java/android/content/Intent.aidl \ 242 frameworks/base/core/java/android/content/IntentSender.aidl \ 243 frameworks/base/core/java/android/content/PeriodicSync.aidl \ 244 frameworks/base/core/java/android/content/SyncStats.aidl \ 245 frameworks/base/core/java/android/content/res/Configuration.aidl \ 246 frameworks/base/core/java/android/appwidget/AppWidgetProviderInfo.aidl \ 247 frameworks/base/core/java/android/net/Uri.aidl \ 248 frameworks/base/core/java/android/nfc/NdefMessage.aidl \ 249 frameworks/base/core/java/android/nfc/NdefRecord.aidl \ 250 frameworks/base/core/java/android/nfc/Tag.aidl \ 251 frameworks/base/core/java/android/os/Bundle.aidl \ 252 frameworks/base/core/java/android/os/DropBoxManager.aidl \ 253 frameworks/base/core/java/android/os/ParcelFileDescriptor.aidl \ 254 frameworks/base/core/java/android/os/ParcelUuid.aidl \ 255 frameworks/base/core/java/android/view/KeyEvent.aidl \ 256 frameworks/base/core/java/android/view/MotionEvent.aidl \ 257 frameworks/base/core/java/android/view/Surface.aidl \ 258 frameworks/base/core/java/android/view/WindowManager.aidl \ 259 frameworks/base/core/java/android/widget/RemoteViews.aidl \ 260 frameworks/base/core/java/com/android/internal/view/IInputContext.aidl \ 261 frameworks/base/core/java/com/android/internal/view/IInputMethod.aidl \ 262 frameworks/base/core/java/com/android/internal/view/IInputMethodCallback.aidl \ 263 frameworks/base/core/java/com/android/internal/view/IInputMethodClient.aidl \ 264 frameworks/base/core/java/com/android/internal/view/IInputMethodManager.aidl \ 265 frameworks/base/core/java/com/android/internal/view/IInputMethodSession.aidl \ 266 frameworks/base/graphics/java/android/graphics/Bitmap.aidl \ 267 frameworks/base/graphics/java/android/graphics/Rect.aidl \ 268 frameworks/base/graphics/java/android/graphics/Region.aidl \ 269 frameworks/base/location/java/android/location/Criteria.aidl \ 270 frameworks/base/location/java/android/location/Location.aidl \ 271 frameworks/base/telephony/java/android/telephony/ServiceState.aidl \ 272 frameworks/base/telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \ 273 frameworks/base/telephony/java/com/android/internal/telephony/ITelephony.aidl \ 274 frameworks/base/vpn/java/android/net/vpn/IVpnService.aidl \ 275 276gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl 277$(gen): PRIVATE_SRC_FILES := $(aidl_files) 278ALL_SDK_FILES += $(gen) 279$(gen): $(aidl_files) | $(AIDL) 280 @echo Aidl Preprocess: $@ 281 $(hide) $(AIDL) --preprocess $@ $(PRIVATE_SRC_FILES) 282 283# the documentation 284# ============================================================ 285 286# TODO: deal with com/google/android/googleapps 287packages_to_document := \ 288 android \ 289 javax/microedition/khronos 290 291# Search through the base framework dirs for these packages. 292# The result will be relative to frameworks/base. 293fwbase_dirs_to_document := \ 294 test-runner/src \ 295 $(patsubst $(LOCAL_PATH)/%,%, \ 296 $(wildcard \ 297 $(foreach dir, $(FRAMEWORKS_BASE_JAVA_SRC_DIRS), \ 298 $(addprefix $(dir)/, $(packages_to_document)) \ 299 ) \ 300 ) \ 301 ) 302 303# include definition of libcore_to_document 304include $(LOCAL_PATH)/../../libcore/Docs.mk 305 306non_base_dirs := \ 307 ../../external/apache-http/src/org/apache/http 308 309# These are relative to frameworks/base 310dirs_to_document := \ 311 $(fwbase_dirs_to_document) \ 312 $(non_base_dirs) 313 314html_dirs := \ 315 $(FRAMEWORKS_BASE_SUBDIRS) \ 316 $(non_base_dirs) 317 318# These are relative to frameworks/base 319framework_docs_LOCAL_SRC_FILES := \ 320 $(call find-other-java-files, $(dirs_to_document)) \ 321 $(call find-other-html-files, $(html_dirs)) \ 322 $(addprefix ../../libcore/, $(call libcore_to_document, $(LOCAL_PATH)/../../libcore)) 323 324# This is used by ide.mk as the list of source files that are 325# always included. 326INTERNAL_SDK_SOURCE_DIRS := $(addprefix $(LOCAL_PATH)/,$(dirs_to_document)) 327 328framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \ 329 $(FRAMEWORKS_BASE_JAVA_SRC_DIRS) 330 331framework_docs_LOCAL_INTERMEDIATE_SOURCES := \ 332 $(framework_res_source_path)/android/R.java \ 333 $(framework_res_source_path)/android/Manifest.java \ 334 $(framework_res_source_path)/com/android/internal/R.java 335 336framework_docs_LOCAL_JAVA_LIBRARIES := \ 337 bouncycastle \ 338 core \ 339 ext \ 340 framework \ 341 342framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES 343framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html 344# The since flag (-since N.xml API_LEVEL) is used to add API Level information 345# to the reference documentation. Must be in order of oldest to newest. 346framework_docs_LOCAL_DROIDDOC_OPTIONS := \ 347 -knowntags ./frameworks/base/docs/knowntags.txt \ 348 -since ./frameworks/base/api/1.xml 1 \ 349 -since ./frameworks/base/api/2.xml 2 \ 350 -since ./frameworks/base/api/3.xml 3 \ 351 -since ./frameworks/base/api/4.xml 4 \ 352 -since ./frameworks/base/api/5.xml 5 \ 353 -since ./frameworks/base/api/6.xml 6 \ 354 -since ./frameworks/base/api/7.xml 7 \ 355 -since ./frameworks/base/api/8.xml 8 \ 356 -since ./frameworks/base/api/9.xml 9 \ 357 -since ./frameworks/base/api/10.xml 10 \ 358 -since ./frameworks/base/api/11.xml 11 \ 359 -since ./frameworks/base/api/12.xml 12 \ 360 -werror -hide 113 \ 361 -overview $(LOCAL_PATH)/core/java/overview.html 362 363framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= $(call intermediates-dir-for,JAVA_LIBRARIES,framework) 364 365framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES := \ 366 frameworks/base/docs/knowntags.txt 367 368sample_dir := development/samples 369 370# the list here should match the list of samples included in the sdk samples package 371# (see development/build/sdk.atree) 372web_docs_sample_code_flags := \ 373 -hdf android.hasSamples 1 \ 374 -samplecode $(sample_dir)/AccessibilityService \ 375 resources/samples/AccessibilityService "Accessibility Service" \ 376 -samplecode $(sample_dir)/AccelerometerPlay \ 377 resources/samples/AccelerometerPlay "Accelerometer Play" \ 378 -samplecode $(sample_dir)/ApiDemos \ 379 resources/samples/ApiDemos "API Demos" \ 380 -samplecode $(sample_dir)/BackupRestore \ 381 resources/samples/BackupRestore "Backup and Restore" \ 382 -samplecode $(sample_dir)/BluetoothChat \ 383 resources/samples/BluetoothChat "Bluetooth Chat" \ 384 -samplecode $(sample_dir)/BusinessCard \ 385 resources/samples/BusinessCard "Business Card" \ 386 -samplecode $(sample_dir)/ContactManager \ 387 resources/samples/ContactManager "Contact Manager" \ 388 -samplecode $(sample_dir)/CubeLiveWallpaper \ 389 resources/samples/CubeLiveWallpaper "Cube Live Wallpaper" \ 390 -samplecode $(sample_dir)/Home \ 391 resources/samples/Home "Home" \ 392 -samplecode $(sample_dir)/HoneycombGallery \ 393 resources/samples/HoneycombGallery "Honeycomb Gallery" \ 394 -samplecode $(sample_dir)/JetBoy \ 395 resources/samples/JetBoy "JetBoy" \ 396 -samplecode $(sample_dir)/LunarLander \ 397 resources/samples/LunarLander "Lunar Lander" \ 398 -samplecode $(sample_dir)/MultiResolution \ 399 resources/samples/MultiResolution "Multiple Resolutions" \ 400 -samplecode $(sample_dir)/NFCDemo \ 401 resources/samples/NFCDemo "NFC Demo" \ 402 -samplecode $(sample_dir)/NotePad \ 403 resources/samples/NotePad "Note Pad" \ 404 -samplecode $(sample_dir)/SampleSyncAdapter \ 405 resources/samples/SampleSyncAdapter "Sample Sync Adapter" \ 406 -samplecode $(sample_dir)/RenderScript \ 407 resources/samples/RenderScript "RenderScript" \ 408 -samplecode $(sample_dir)/SearchableDictionary \ 409 resources/samples/SearchableDictionary "Searchable Dictionary v2" \ 410 -samplecode $(sample_dir)/SipDemo \ 411 resources/samples/SipDemo "SIP Demo" \ 412 -samplecode $(sample_dir)/Snake \ 413 resources/samples/Snake "Snake" \ 414 -samplecode $(sample_dir)/SoftKeyboard \ 415 resources/samples/SoftKeyboard "Soft Keyboard" \ 416 -samplecode $(sample_dir)/Spinner \ 417 resources/samples/Spinner "Spinner" \ 418 -samplecode $(sample_dir)/SpinnerTest \ 419 resources/samples/SpinnerTest "SpinnerTest" \ 420 -samplecode $(sample_dir)/StackWidget \ 421 resources/samples/StackWidget "StackView Widget" \ 422 -samplecode $(sample_dir)/TicTacToeLib \ 423 resources/samples/TicTacToeLib "TicTacToeLib" \ 424 -samplecode $(sample_dir)/TicTacToeMain \ 425 resources/samples/TicTacToeMain "TicTacToeMain" \ 426 -samplecode $(sample_dir)/USB \ 427 resources/samples/USB "USB" \ 428 -samplecode $(sample_dir)/WeatherListWidget \ 429 resources/samples/WeatherListWidget "Weather List Widget" \ 430 -samplecode $(sample_dir)/Wiktionary \ 431 resources/samples/Wiktionary "Wiktionary" \ 432 -samplecode $(sample_dir)/WiktionarySimple \ 433 resources/samples/WiktionarySimple "Wiktionary (Simplified)" \ 434 -samplecode $(sample_dir)/VoiceRecognitionService \ 435 resources/samples/VoiceRecognitionService "Voice Recognition Service" \ 436 -samplecode $(sample_dir)/VoicemailProviderDemo \ 437 resources/samples/VoicemailProviderDemo "Voicemail Provider Demo" \ 438 -samplecode $(sample_dir)/XmlAdapters \ 439 resources/samples/XmlAdapters "XML Adapters" 440 441## SDK version identifiers used in the published docs 442 # major[.minor] version for current SDK. (full releases only) 443framework_docs_SDK_VERSION:=3.1 444 # release version (ie "Release x") (full releases only) 445framework_docs_SDK_REL_ID:=1 446 447framework_docs_LOCAL_DROIDDOC_OPTIONS += \ 448 -hdf sdk.version $(framework_docs_SDK_VERSION) \ 449 -hdf sdk.rel.id $(framework_docs_SDK_REL_ID) \ 450 -hdf sdk.preview 0 \ 451 452# ==== the api stubs and current.xml =========================== 453include $(CLEAR_VARS) 454 455LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) 456LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES) 457LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) 458LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) 459LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) 460LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) 461LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) 462LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) 463 464LOCAL_MODULE := api-stubs 465 466LOCAL_DROIDDOC_OPTIONS:=\ 467 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ 468 -stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_stubs_current_intermediates/src \ 469 -api $(INTERNAL_PLATFORM_API_FILE) \ 470 -nodocs 471 472LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk 473 474LOCAL_UNINSTALLABLE_MODULE := true 475 476include $(BUILD_DROIDDOC) 477 478# $(gen), i.e. framework.aidl, is also needed while building against the current stub. 479$(full_target): $(framework_built) $(gen) 480$(INTERNAL_PLATFORM_API_FILE): $(full_target) 481$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE)) 482 483# ==== check javadoc comments but don't generate docs ======== 484include $(CLEAR_VARS) 485 486LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) 487LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES) 488LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) 489LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) 490LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) 491LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) 492LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) 493LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) 494 495LOCAL_MODULE := doc-comment-check 496 497LOCAL_DROIDDOC_OPTIONS:=\ 498 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ 499 -parsecomments 500 501LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk 502 503LOCAL_UNINSTALLABLE_MODULE := true 504 505include $(BUILD_DROIDDOC) 506 507# $(gen), i.e. framework.aidl, is also needed while building against the current stub. 508$(full_target): $(framework_built) $(gen) 509 510droidcore: doc-comment-check-docs 511 512# ==== static html in the sdk ================================== 513include $(CLEAR_VARS) 514 515LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) 516LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES) 517LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) 518LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) 519LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) 520LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) 521LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) 522LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) 523 524LOCAL_MODULE := offline-sdk 525 526LOCAL_DROIDDOC_OPTIONS:=\ 527 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ 528 $(web_docs_sample_code_flags) \ 529 -offlinemode \ 530 -title "Android SDK" \ 531 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \ 532 -todo $(OUT_DOCS)/$(LOCAL_MODULE)-docs-todo.html \ 533 -sdkvalues $(OUT_DOCS) \ 534 -hdf android.whichdoc offline 535 536 537LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk 538 539include $(BUILD_DROIDDOC) 540 541static_doc_index_redirect := $(out_dir)/index.html 542$(static_doc_index_redirect): \ 543 $(LOCAL_PATH)/docs/docs-documentation-redirect.html | $(ACP) 544 $(hide) mkdir -p $(dir $@) 545 $(hide) $(ACP) $< $@ 546 547$(full_target): $(static_doc_index_redirect) 548$(full_target): $(framework_built) 549 550# ==== docs for the web (on the google app engine server) ======================= 551include $(CLEAR_VARS) 552 553LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) 554LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES) 555LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES) 556LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) 557LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) 558LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) 559LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) 560LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) 561LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) 562 563LOCAL_MODULE := online-sdk 564 565LOCAL_DROIDDOC_OPTIONS:= \ 566 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ 567 $(web_docs_sample_code_flags) \ 568 -toroot / \ 569 -hdf android.whichdoc online \ 570 -hdf template.showLanguageMenu true 571 572LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk 573 574include $(BUILD_DROIDDOC) 575 576# explicitly specify that online-sdk depends on framework-res and any generated docs 577$(full_target): framework-res-package-target 578 579# ==== docs that have all of the stuff that's @hidden ======================= 580include $(CLEAR_VARS) 581 582LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) 583LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES) 584LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) framework 585LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) 586LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) 587LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) 588LOCAL_ADDITIONAL_JAVA_DIR:=$(call intermediates-dir-for,JAVA_LIBRARIES,framework) 589LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES) 590 591LOCAL_MODULE := hidden 592LOCAL_DROIDDOC_OPTIONS:=\ 593 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ 594 -title "Android SDK - Including hidden APIs." 595# -hidden 596 597LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk 598 599include $(BUILD_DROIDDOC) 600 601# Build ext.jar 602# ============================================================ 603 604# NOTICE notes for non-obvious sections 605# apache-http - covered by the Apache Commons section. 606 607 608ext_dirs := \ 609 ../../external/nist-sip/java \ 610 ../../external/apache-http/src \ 611 ../../external/tagsoup/src \ 612 ../../external/libphonenumber/java/src 613 614ext_src_files := $(call all-java-files-under,$(ext_dirs)) 615 616ext_res_dirs := \ 617 ../../external/libphonenumber/java/src 618 619# ==== the library ========================================= 620include $(CLEAR_VARS) 621 622LOCAL_SRC_FILES := $(ext_src_files) 623 624LOCAL_NO_STANDARD_LIBRARIES := true 625LOCAL_JAVA_LIBRARIES := core 626LOCAL_JAVA_RESOURCE_DIRS := $(ext_res_dirs) 627LOCAL_MODULE_TAGS := optional 628LOCAL_MODULE := ext 629 630LOCAL_NO_EMMA_INSTRUMENT := true 631LOCAL_NO_EMMA_COMPILE := true 632 633LOCAL_DX_FLAGS := --core-library 634 635include $(BUILD_JAVA_LIBRARY) 636 637 638# Include subdirectory makefiles 639# ============================================================ 640 641# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework 642# team really wants is to build the stuff defined by this makefile. 643ifeq (,$(ONE_SHOT_MAKEFILE)) 644include $(call first-makefiles-under,$(LOCAL_PATH)) 645endif 646