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