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