The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 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 | # |
| 16 | LOCAL_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. |
| 27 | framework-res-source-path := APPS/framework-res_intermediates/src |
| 28 | |
| 29 | # the library |
| 30 | # ============================================================ |
| 31 | include $(CLEAR_VARS) |
| 32 | |
| 33 | # FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk |
| 34 | LOCAL_SRC_FILES := $(call find-other-java-files,$(FRAMEWORKS_BASE_SUBDIRS)) |
| 35 | |
| 36 | # The following filters out code we are temporarily not including at all. |
| 37 | # TODO: Move AWT and beans (and associated harmony code) back into libcore. |
| 38 | # TODO: Maybe remove javax.microedition entirely? |
| 39 | # TODO: Move SyncML (org.mobilecontrol.*) into its own library. |
| 40 | LOCAL_SRC_FILES := $(filter-out \ |
| 41 | org/mobilecontrol/% \ |
| 42 | ,$(LOCAL_SRC_FILES)) |
| 43 | |
| 44 | ## READ ME: ######################################################## |
| 45 | ## |
Mike Lockwood | e932f7f | 2009-04-06 10:51:26 -0700 | [diff] [blame] | 46 | ## When updating this list of aidl files, consider if that aidl is |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 47 | ## part of the SDK API. If it is, also add it to the list below that |
| 48 | ## is preprocessed and distributed with the SDK. This list should |
| 49 | ## not contain any aidl files for parcelables, but the one below should |
| 50 | ## if you intend for 3rd parties to be able to send those objects |
| 51 | ## across process boundaries. |
| 52 | ## |
| 53 | ## READ ME: ######################################################## |
| 54 | LOCAL_SRC_FILES += \ |
| 55 | core/java/android/accounts/IAccountsService.aidl \ |
| 56 | core/java/android/app/IActivityPendingResult.aidl \ |
| 57 | core/java/android/app/IActivityWatcher.aidl \ |
| 58 | core/java/android/app/IAlarmManager.aidl \ |
| 59 | core/java/android/app/IInstrumentationWatcher.aidl \ |
| 60 | core/java/android/app/IIntentReceiver.aidl \ |
| 61 | core/java/android/app/IIntentSender.aidl \ |
| 62 | core/java/android/app/INotificationManager.aidl \ |
| 63 | core/java/android/app/ISearchManager.aidl \ |
| 64 | core/java/android/app/IServiceConnection.aidl \ |
| 65 | core/java/android/app/IStatusBar.aidl \ |
| 66 | core/java/android/app/IThumbnailReceiver.aidl \ |
| 67 | core/java/android/app/ITransientNotification.aidl \ |
| 68 | core/java/android/app/IWallpaperService.aidl \ |
| 69 | core/java/android/app/IWallpaperServiceCallback.aidl \ |
Christopher Tate | 487529a | 2009-04-29 14:03:25 -0700 | [diff] [blame] | 70 | core/java/android/backup/IBackupManager.aidl \ |
| 71 | core/java/android/backup/IBackupService.aidl \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 72 | core/java/android/bluetooth/IBluetoothA2dp.aidl \ |
| 73 | core/java/android/bluetooth/IBluetoothDevice.aidl \ |
| 74 | core/java/android/bluetooth/IBluetoothDeviceCallback.aidl \ |
| 75 | core/java/android/bluetooth/IBluetoothHeadset.aidl \ |
| 76 | core/java/android/content/ISyncAdapter.aidl \ |
| 77 | core/java/android/content/ISyncContext.aidl \ |
| 78 | core/java/android/content/pm/IPackageDataObserver.aidl \ |
| 79 | core/java/android/content/pm/IPackageDeleteObserver.aidl \ |
| 80 | core/java/android/content/pm/IPackageInstallObserver.aidl \ |
| 81 | core/java/android/content/pm/IPackageManager.aidl \ |
| 82 | core/java/android/content/pm/IPackageStatsObserver.aidl \ |
| 83 | core/java/android/database/IContentObserver.aidl \ |
| 84 | core/java/android/hardware/ISensorService.aidl \ |
| 85 | core/java/android/net/IConnectivityManager.aidl \ |
| 86 | core/java/android/os/ICheckinService.aidl \ |
| 87 | core/java/android/os/IHardwareService.aidl \ |
| 88 | core/java/android/os/IMessenger.aidl \ |
| 89 | core/java/android/os/IMountService.aidl \ |
| 90 | core/java/android/os/INetStatService.aidl \ |
| 91 | core/java/android/os/IParentalControlCallback.aidl \ |
| 92 | core/java/android/os/IPermissionController.aidl \ |
| 93 | core/java/android/os/IPowerManager.aidl \ |
| 94 | core/java/android/text/IClipboard.aidl \ |
| 95 | core/java/android/view/IApplicationToken.aidl \ |
| 96 | core/java/android/view/IOnKeyguardExitResult.aidl \ |
| 97 | core/java/android/view/IRotationWatcher.aidl \ |
| 98 | core/java/android/view/IWindow.aidl \ |
| 99 | core/java/android/view/IWindowManager.aidl \ |
| 100 | core/java/android/view/IWindowSession.aidl \ |
Brandon Ballinger | 181a44d | 2009-04-16 14:31:48 -0700 | [diff] [blame] | 101 | core/java/android/speech/IRecognitionListener.aidl \ |
| 102 | core/java/android/speech/IRecognitionService.aidl \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 103 | core/java/com/android/internal/app/IBatteryStats.aidl \ |
| 104 | core/java/com/android/internal/app/IUsageStats.aidl \ |
The Android Open Source Project | c39a6e0 | 2009-03-11 12:11:56 -0700 | [diff] [blame] | 105 | core/java/com/android/internal/appwidget/IAppWidgetService.aidl \ |
| 106 | core/java/com/android/internal/appwidget/IAppWidgetHost.aidl \ |
Christopher Tate | 487529a | 2009-04-29 14:03:25 -0700 | [diff] [blame] | 107 | core/java/com/android/internal/backup/IBackupTransport.aidl \ |
The Android Open Source Project | c39a6e0 | 2009-03-11 12:11:56 -0700 | [diff] [blame] | 108 | core/java/com/android/internal/os/IResultReceiver.aidl \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 109 | core/java/com/android/internal/view/IInputContext.aidl \ |
| 110 | core/java/com/android/internal/view/IInputContextCallback.aidl \ |
| 111 | core/java/com/android/internal/view/IInputMethod.aidl \ |
| 112 | core/java/com/android/internal/view/IInputMethodCallback.aidl \ |
| 113 | core/java/com/android/internal/view/IInputMethodClient.aidl \ |
| 114 | core/java/com/android/internal/view/IInputMethodManager.aidl \ |
| 115 | core/java/com/android/internal/view/IInputMethodSession.aidl \ |
| 116 | im/java/android/im/IImPlugin.aidl \ |
Mike Lockwood | a55c321 | 2009-04-15 11:10:11 -0400 | [diff] [blame] | 117 | location/java/android/location/IGeocodeProvider.aidl \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 118 | location/java/android/location/IGpsStatusListener.aidl \ |
Mike Lockwood | e932f7f | 2009-04-06 10:51:26 -0700 | [diff] [blame] | 119 | location/java/android/location/ILocationCollector.aidl \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 120 | location/java/android/location/ILocationListener.aidl \ |
| 121 | location/java/android/location/ILocationManager.aidl \ |
Mike Lockwood | e932f7f | 2009-04-06 10:51:26 -0700 | [diff] [blame] | 122 | location/java/android/location/ILocationProvider.aidl \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 123 | media/java/android/media/IAudioService.aidl \ |
| 124 | media/java/android/media/IMediaScannerListener.aidl \ |
| 125 | media/java/android/media/IMediaScannerService.aidl \ |
| 126 | telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl \ |
| 127 | telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \ |
| 128 | telephony/java/com/android/internal/telephony/ITelephony.aidl \ |
| 129 | telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl \ |
Wink Saville | 767a662 | 2009-04-02 01:37:02 -0700 | [diff] [blame] | 130 | telephony/java/com/android/internal/telephony/IIccPhoneBook.aidl \ |
| 131 | telephony/java/com/android/internal/telephony/ISms.aidl \ |
John Wang | 38e260a | 2009-03-27 16:38:58 -0700 | [diff] [blame] | 132 | wifi/java/android/net/wifi/IWifiManager.aidl \ |
| 133 | telephony/java/com/android/internal/telephony/IExtendedNetworkService.aidl |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 134 | |
| 135 | # FRAMEWORKS_BASE_JAVA_SRC_DIRS comes from build/core/pathmap.mk |
| 136 | LOCAL_AIDL_INCLUDES += $(FRAMEWORKS_BASE_JAVA_SRC_DIRS) |
| 137 | |
| 138 | LOCAL_INTERMEDIATE_SOURCES := \ |
| 139 | $(framework-res-source-path)/android/R.java \ |
| 140 | $(framework-res-source-path)/android/Manifest.java \ |
| 141 | $(framework-res-source-path)/com/android/internal/R.java |
| 142 | |
| 143 | LOCAL_NO_STANDARD_LIBRARIES := true |
| 144 | LOCAL_JAVA_LIBRARIES := core ext |
| 145 | |
| 146 | LOCAL_MODULE := framework |
| 147 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 148 | |
| 149 | # List of classes and interfaces which should be loaded by the Zygote. |
| 150 | LOCAL_JAVA_RESOURCE_FILES += $(LOCAL_PATH)/preloaded-classes |
| 151 | |
| 152 | #LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.txt |
| 153 | |
| 154 | LOCAL_DX_FLAGS := --core-library |
| 155 | |
| 156 | include $(BUILD_JAVA_LIBRARY) |
| 157 | |
| 158 | # Make sure that R.java and Manifest.java are built before we build |
| 159 | # the source for this library. |
| 160 | framework_res_R_stamp := \ |
| 161 | $(call intermediates-dir-for,APPS,framework-res,,COMMON)/src/R.stamp |
| 162 | $(full_classes_compiled_jar): $(framework_res_R_stamp) |
| 163 | |
| 164 | # Make sure that framework-res is installed when framework is. |
| 165 | $(LOCAL_INSTALLED_MODULE): | $(dir $(LOCAL_INSTALLED_MODULE))framework-res.apk |
| 166 | |
| 167 | framework_built := $(LOCAL_BUILT_MODULE) |
| 168 | |
| 169 | # AIDL files to be preprocessed and included in the SDK, |
| 170 | # relative to the root of the build tree. |
| 171 | # ============================================================ |
| 172 | aidl_files := \ |
| 173 | frameworks/base/core/java/android/accounts/IAccountsService.aidl \ |
| 174 | frameworks/base/core/java/android/app/Notification.aidl \ |
| 175 | frameworks/base/core/java/android/app/PendingIntent.aidl \ |
| 176 | frameworks/base/core/java/android/content/ComponentName.aidl \ |
| 177 | frameworks/base/core/java/android/content/Intent.aidl \ |
| 178 | frameworks/base/core/java/android/content/SyncStats.aidl \ |
| 179 | frameworks/base/core/java/android/content/res/Configuration.aidl \ |
The Android Open Source Project | c39a6e0 | 2009-03-11 12:11:56 -0700 | [diff] [blame] | 180 | frameworks/base/core/java/android/appwidget/AppWidgetProviderInfo.aidl \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 181 | frameworks/base/core/java/android/net/Uri.aidl \ |
| 182 | frameworks/base/core/java/android/os/Bundle.aidl \ |
| 183 | frameworks/base/core/java/android/os/ParcelFileDescriptor.aidl \ |
| 184 | frameworks/base/core/java/android/view/KeyEvent.aidl \ |
| 185 | frameworks/base/core/java/android/view/MotionEvent.aidl \ |
| 186 | frameworks/base/core/java/android/view/Surface.aidl \ |
| 187 | frameworks/base/core/java/android/view/WindowManager.aidl \ |
| 188 | frameworks/base/core/java/android/widget/RemoteViews.aidl \ |
| 189 | frameworks/base/core/java/com/android/internal/view/IInputContext.aidl \ |
| 190 | frameworks/base/core/java/com/android/internal/view/IInputMethod.aidl \ |
| 191 | frameworks/base/core/java/com/android/internal/view/IInputMethodCallback.aidl \ |
| 192 | frameworks/base/core/java/com/android/internal/view/IInputMethodClient.aidl \ |
| 193 | frameworks/base/core/java/com/android/internal/view/IInputMethodManager.aidl \ |
| 194 | frameworks/base/core/java/com/android/internal/view/IInputMethodSession.aidl \ |
| 195 | frameworks/base/graphics/java/android/graphics/Bitmap.aidl \ |
| 196 | frameworks/base/graphics/java/android/graphics/Rect.aidl \ |
| 197 | frameworks/base/graphics/java/android/graphics/Region.aidl \ |
| 198 | frameworks/base/im/java/android/im/IImPlugin.aidl \ |
| 199 | frameworks/base/location/java/android/location/Criteria.aidl \ |
| 200 | frameworks/base/location/java/android/location/Location.aidl \ |
| 201 | frameworks/base/telephony/java/android/telephony/ServiceState.aidl \ |
| 202 | frameworks/base/telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \ |
| 203 | frameworks/base/telephony/java/com/android/internal/telephony/ITelephony.aidl |
| 204 | |
| 205 | gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl |
| 206 | $(gen): PRIVATE_SRC_FILES := $(aidl_files) |
| 207 | ALL_SDK_FILES += $(gen) |
| 208 | $(gen): $(aidl_files) | $(AIDL) |
| 209 | @echo Aidl Preprocess: $@ |
| 210 | $(hide) $(AIDL) --preprocess $@ $(PRIVATE_SRC_FILES) |
| 211 | |
| 212 | # the documentation |
| 213 | # ============================================================ |
| 214 | |
| 215 | # TODO: deal with com/google/android/googleapps |
| 216 | packages_to_document := \ |
| 217 | android \ |
| 218 | javax/microedition/khronos |
| 219 | |
| 220 | # Search through the base framework dirs for these packages. |
| 221 | # The result will be relative to frameworks/base. |
| 222 | fwbase_dirs_to_document := \ |
| 223 | test-runner \ |
| 224 | $(patsubst $(LOCAL_PATH)/%,%, \ |
| 225 | $(wildcard \ |
| 226 | $(foreach dir, $(FRAMEWORKS_BASE_JAVA_SRC_DIRS), \ |
| 227 | $(addprefix $(dir)/, $(packages_to_document)) \ |
| 228 | ) \ |
| 229 | ) \ |
| 230 | ) |
| 231 | |
| 232 | # These are relative to dalvik/libcore |
| 233 | # Intentionally not included from libcore: |
| 234 | # icu openssl suncompat support |
| 235 | libcore_to_document := \ |
| 236 | annotation/src/main/java/java \ |
| 237 | archive/src/main/java/java \ |
| 238 | auth/src/main/java/javax \ |
| 239 | awt-kernel/src/main/java/java \ |
| 240 | concurrent/src/main/java \ |
| 241 | crypto/src/main/java/javax \ |
| 242 | dalvik/src/main/java/dalvik \ |
| 243 | json/src/main/java \ |
| 244 | junit/src/main/java \ |
| 245 | logging/src/main/java/java \ |
| 246 | luni/src/main/java/java \ |
| 247 | luni-kernel/src/main/java/java \ |
| 248 | math/src/main/java/java \ |
| 249 | nio/src/main/java/java \ |
| 250 | nio_char/src/main/java/java \ |
| 251 | prefs/src/main/java/java \ |
| 252 | regex/src/main/java/java \ |
| 253 | security/src/main/java/java \ |
| 254 | security/src/main/java/javax \ |
| 255 | security-kernel/src/main/java/java \ |
| 256 | sql/src/main/java/java \ |
| 257 | sql/src/main/java/javax \ |
| 258 | text/src/main/java/java \ |
| 259 | x-net/src/main/java/javax \ |
| 260 | xml/src/main/java/javax \ |
| 261 | xml/src/main/java/org/xml/sax \ |
| 262 | xml/src/main/java/org/xmlpull/v1 \ |
| 263 | xml/src/main/java/org/w3c |
| 264 | |
| 265 | non_base_dirs := \ |
| 266 | ../../external/apache-http/src/org/apache/http |
| 267 | |
| 268 | # These are relative to frameworks/base |
| 269 | dirs_to_document := \ |
| 270 | $(fwbase_dirs_to_document) \ |
| 271 | $(non_base_dirs) \ |
| 272 | $(addprefix ../../dalvik/libcore/, $(libcore_to_document)) |
| 273 | |
| 274 | html_dirs := \ |
| 275 | $(FRAMEWORKS_BASE_SUBDIRS) \ |
| 276 | $(non_base_dirs) |
| 277 | |
| 278 | # These are relative to frameworks/base |
| 279 | framework_docs_LOCAL_SRC_FILES := \ |
| 280 | $(call find-other-java-files, $(dirs_to_document)) \ |
| 281 | $(call find-other-html-files, $(html_dirs)) |
| 282 | |
| 283 | framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \ |
| 284 | $(FRAMEWORKS_BASE_JAVA_SRC_DIRS) |
| 285 | |
| 286 | framework_docs_LOCAL_INTERMEDIATE_SOURCES := \ |
| 287 | $(framework-res-source-path)/android/R.java \ |
| 288 | $(framework-res-source-path)/android/Manifest.java \ |
| 289 | $(framework-res-source-path)/com/android/internal/R.java |
| 290 | |
| 291 | framework_docs_LOCAL_JAVA_LIBRARIES := \ |
| 292 | core \ |
| 293 | ext \ |
| 294 | |
| 295 | framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 296 | framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html |
| 297 | framework_docs_LOCAL_DROIDDOC_OPTIONS := \ |
| 298 | -error 1 -error 2 -warning 3 -error 4 -error 6 -error 8 \ |
| 299 | -overview $(LOCAL_PATH)/core/java/overview.html |
| 300 | |
| 301 | framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:=$(call intermediates-dir-for,JAVA_LIBRARIES,framework) |
| 302 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 303 | sample_dir := development/samples |
| 304 | |
| 305 | web_docs_sample_code_flags := \ |
| 306 | -hdf android.hasSamples 1 \ |
| 307 | -samplecode $(sample_dir)/ApiDemos \ |
| 308 | guide/samples/ApiDemos "API Demos" \ |
| 309 | -samplecode $(sample_dir)/LunarLander \ |
| 310 | guide/samples/LunarLander "Lunar Lander" \ |
| 311 | -samplecode $(sample_dir)/NotePad \ |
| 312 | guide/samples/NotePad "Note Pad" |
| 313 | |
Dirk Dougherty | e90232b | 2009-04-21 01:00:12 -0700 | [diff] [blame] | 314 | # SDK version identifiers used in the published docs. |
| 315 | |
| 316 | # major[.minor] version for SDK. Typically identical to the |
| 317 | # most current Android platform version included in the SDK package. |
| 318 | framework_docs_SDK_VERSION := 1.5 |
| 319 | # release version for SDK (ie "Release x") |
| 320 | framework_docs_SDK_REL_ID := 1 |
| 321 | framework_docs_SDK_CURRENT_DIR := $(framework_docs_SDK_VERSION)_r$(framework_docs_SDK_REL_ID) |
| 322 | |
| 323 | framework_docs_LOCAL_DROIDDOC_OPTIONS += \ |
| 324 | -hdf sdk.version $(framework_docs_SDK_VERSION) \ |
| 325 | -hdf sdk.rel.id $(framework_docs_SDK_REL_ID) \ |
| 326 | -hdf sdk.current $(framework_docs_SDK_CURRENT_DIR) |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 327 | |
| 328 | # ==== static html in the sdk ================================== |
| 329 | include $(CLEAR_VARS) |
| 330 | |
| 331 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
| 332 | LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES) |
| 333 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 334 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 335 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 336 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 337 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 338 | |
| 339 | LOCAL_MODULE := offline-sdk |
| 340 | |
| 341 | LOCAL_DROIDDOC_OPTIONS:=\ |
| 342 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
| 343 | -title "Android SDK" \ |
| 344 | -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \ |
| 345 | -todo $(OUT_DOCS)/$(LOCAL_MODULE)-docs-todo.html \ |
| 346 | -stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_stubs_current_intermediates/src \ |
| 347 | -apixml $(INTERNAL_PLATFORM_API_FILE) \ |
| 348 | -sdkvalues $(OUT_DOCS) \ |
| 349 | -warning 3 \ |
| 350 | -hdf android.whichdoc offline |
| 351 | |
| 352 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk |
| 353 | LOCAL_DROIDDOC_CUSTOM_ASSET_DIR:=assets-sdk |
| 354 | |
| 355 | include $(BUILD_DROIDDOC) |
| 356 | |
| 357 | static_doc_index_redirect := $(out_dir)/index.html |
| 358 | $(static_doc_index_redirect): \ |
Dirk Dougherty | e90232b | 2009-04-21 01:00:12 -0700 | [diff] [blame] | 359 | $(LOCAL_PATH)/docs/docs-documentation-redirect.html | $(ACP) |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 360 | $(hide) mkdir -p $(dir $@) |
| 361 | $(hide) $(ACP) $< $@ |
| 362 | |
| 363 | $(full_target): $(static_doc_index_redirect) |
| 364 | $(full_target): $(framework_built) |
| 365 | $(INTERNAL_PLATFORM_API_FILE): $(full_target) |
| 366 | $(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE)) |
| 367 | |
| 368 | |
| 369 | # ==== docs for the web (on the google app engine server) ======================= |
| 370 | include $(CLEAR_VARS) |
| 371 | |
| 372 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
| 373 | LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES) |
| 374 | LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES) |
| 375 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) |
| 376 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 377 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 378 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 379 | LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR) |
| 380 | |
| 381 | LOCAL_MODULE := online-sdk |
| 382 | |
| 383 | LOCAL_DROIDDOC_OPTIONS:= \ |
Dirk Dougherty | e90232b | 2009-04-21 01:00:12 -0700 | [diff] [blame] | 384 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
| 385 | $(web_docs_sample_code_flags) \ |
| 386 | -toroot / \ |
| 387 | -hdf android.whichdoc online |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 388 | |
| 389 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk |
| 390 | LOCAL_DROIDDOC_CUSTOM_ASSET_DIR:=assets-sdk |
| 391 | |
| 392 | include $(BUILD_DROIDDOC) |
| 393 | |
| 394 | |
| 395 | # ==== docs that have all of the stuff that's @hidden ======================= |
| 396 | include $(CLEAR_VARS) |
| 397 | |
| 398 | LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES) |
| 399 | LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES) |
| 400 | LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) framework |
| 401 | LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS) |
| 402 | LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH) |
| 403 | LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR) |
| 404 | LOCAL_ADDITIONAL_JAVA_DIR:=$(call intermediates-dir-for,JAVA_LIBRARIES,framework) |
| 405 | |
| 406 | LOCAL_MODULE := hidden |
| 407 | LOCAL_DROIDDOC_OPTIONS:=\ |
| 408 | $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ |
| 409 | -title "Android SDK - Including hidden APIs." |
| 410 | # -hidden |
| 411 | |
| 412 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk |
| 413 | LOCAL_DROIDDOC_CUSTOM_ASSET_DIR:=assets-sdk |
| 414 | |
| 415 | include $(BUILD_DROIDDOC) |
| 416 | |
| 417 | # Build ext.jar |
| 418 | # ============================================================ |
| 419 | |
| 420 | ext_dirs := \ |
| 421 | ../../external/apache-http/src \ |
| 422 | ../../external/gdata/src \ |
| 423 | ../../external/protobuf/src \ |
| 424 | ../../external/tagsoup/src |
| 425 | |
| 426 | ext_src_files := $(call all-java-files-under,$(ext_dirs)) |
| 427 | |
| 428 | # ==== the library ========================================= |
| 429 | include $(CLEAR_VARS) |
| 430 | |
| 431 | LOCAL_SRC_FILES := $(ext_src_files) |
| 432 | |
| 433 | LOCAL_NO_STANDARD_LIBRARIES := true |
| 434 | LOCAL_JAVA_LIBRARIES := core |
| 435 | LOCAL_STATIC_JAVA_LIBRARIES := libgoogleclient |
| 436 | |
| 437 | LOCAL_MODULE := ext |
| 438 | |
| 439 | include $(BUILD_JAVA_LIBRARY) |
| 440 | |
| 441 | |
| 442 | # Include subdirectory makefiles |
| 443 | # ============================================================ |
| 444 | |
| 445 | # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework |
| 446 | # team really wants is to build the stuff defined by this makefile. |
| 447 | ifeq (,$(ONE_SHOT_MAKEFILE)) |
| 448 | include $(call first-makefiles-under,$(LOCAL_PATH)) |
| 449 | endif |
Wink Saville | 767a662 | 2009-04-02 01:37:02 -0700 | [diff] [blame] | 450 | |
| 451 | |