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