blob: 6e292a8f6d1bfee709df41442d9127ab37f65427 [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001#
2# Copyright (C) 2008 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16LOCAL_PATH := $(call my-dir)
17
18# We have a special case here where we build the library's resources
19# independently from its code, so we need to find where the resource
20# class source got placed in the course of building the resources.
21# Thus, the magic here.
22# Also, this module cannot depend directly on the R.java file; if it
23# did, the PRIVATE_* vars for R.java wouldn't be guaranteed to be correct.
24# Instead, it depends on the R.stamp file, which lists the corresponding
25# R.java file as a prerequisite.
26# TODO: find a more appropriate way to do this.
27framework-res-source-path := APPS/framework-res_intermediates/src
28
29# the library
30# ============================================================
31include $(CLEAR_VARS)
32
33# FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
34LOCAL_SRC_FILES := $(call find-other-java-files,$(FRAMEWORKS_BASE_SUBDIRS))
35
36# 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.
40LOCAL_SRC_FILES := $(filter-out \
41 org/mobilecontrol/% \
42 ,$(LOCAL_SRC_FILES))
43
Dave Borta833cbb2009-04-22 17:33:12 -070044# 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.
50ifeq ($(TARGET_BUILD_TYPE),debug)
51 LOCAL_SRC_FILES += $(call find-other-java-files,core/config/debug)
52else
53 LOCAL_SRC_FILES += $(call find-other-java-files,core/config/ndebug)
54endif
55
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080056## READ ME: ########################################################
57##
Mike Lockwoode932f7f2009-04-06 10:51:26 -070058## When updating this list of aidl files, consider if that aidl is
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080059## 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: ########################################################
66LOCAL_SRC_FILES += \
svetoslavganov75986cf2009-05-14 22:28:01 -070067 core/java/android/accessibilityservice/IAccessibilityServiceConnection.aidl \
68 core/java/android/accessibilityservice/IEventListener.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080069 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 Tate181fafa2009-05-14 11:12:14 -070073 core/java/android/app/IBackupAgent.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080074 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 Bringert8d17f3f2009-06-05 13:22:28 +010079 core/java/android/app/ISearchManagerCallback.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080080 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 Tate487529a2009-04-29 14:03:25 -070086 core/java/android/backup/IBackupManager.aidl \
Christopher Tate8c850b72009-06-07 19:33:20 -070087 core/java/android/backup/IRestoreSession.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080088 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 Hackborn231cc602009-04-27 17:10:36 -070092 core/java/android/content/IContentService.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080093 core/java/android/content/ISyncAdapter.aidl \
94 core/java/android/content/ISyncContext.aidl \
Dianne Hackborn231cc602009-04-27 17:10:36 -070095 core/java/android/content/ISyncStatusObserver.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080096 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 \
svetoslavganov75986cf2009-05-14 22:28:01 -0700113 core/java/android/view/accessibility/IAccessibilityManager.aidl \
114 core/java/android/view/accessibility/IAccessibilityManagerClient.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800115 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 Ballinger181a44d2009-04-16 14:31:48 -0700121 core/java/android/speech/IRecognitionListener.aidl \
122 core/java/android/speech/IRecognitionService.aidl \
Charles Chenf85aa5a2009-06-10 10:39:55 -0700123 core/java/android/speech/tts/ITts.aidl \
124 core/java/android/speech/tts/ITtsCallback.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800125 core/java/com/android/internal/app/IBatteryStats.aidl \
126 core/java/com/android/internal/app/IUsageStats.aidl \
The Android Open Source Projectc39a6e02009-03-11 12:11:56 -0700127 core/java/com/android/internal/appwidget/IAppWidgetService.aidl \
128 core/java/com/android/internal/appwidget/IAppWidgetHost.aidl \
Christopher Tate487529a2009-04-29 14:03:25 -0700129 core/java/com/android/internal/backup/IBackupTransport.aidl \
The Android Open Source Projectc39a6e02009-03-11 12:11:56 -0700130 core/java/com/android/internal/os/IResultReceiver.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800131 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 Lockwooda55c3212009-04-15 11:10:11 -0400139 location/java/android/location/IGeocodeProvider.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800140 location/java/android/location/IGpsStatusListener.aidl \
Mike Lockwood15e3d0f2009-05-01 07:53:28 -0400141 location/java/android/location/IGpsStatusProvider.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800142 location/java/android/location/ILocationListener.aidl \
143 location/java/android/location/ILocationManager.aidl \
Mike Lockwoode932f7f2009-04-06 10:51:26 -0700144 location/java/android/location/ILocationProvider.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800145 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 Saville767a6622009-04-02 01:37:02 -0700152 telephony/java/com/android/internal/telephony/IIccPhoneBook.aidl \
153 telephony/java/com/android/internal/telephony/ISms.aidl \
John Wang38e260a2009-03-27 16:38:58 -0700154 wifi/java/android/net/wifi/IWifiManager.aidl \
Raphael9207b1e2009-06-08 21:57:16 -0700155 telephony/java/com/android/internal/telephony/IExtendedNetworkService.aidl \
Hung-ying Tyan55567ef2009-06-03 23:56:34 +0800156 vpn/java/android/net/vpn/IVpnService.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800157
158# FRAMEWORKS_BASE_JAVA_SRC_DIRS comes from build/core/pathmap.mk
159LOCAL_AIDL_INCLUDES += $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
160
161LOCAL_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
166LOCAL_NO_STANDARD_LIBRARIES := true
167LOCAL_JAVA_LIBRARIES := core ext
168
169LOCAL_MODULE := framework
170LOCAL_MODULE_CLASS := JAVA_LIBRARIES
171
172# List of classes and interfaces which should be loaded by the Zygote.
173LOCAL_JAVA_RESOURCE_FILES += $(LOCAL_PATH)/preloaded-classes
174
175#LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.txt
176
177LOCAL_DX_FLAGS := --core-library
178
179include $(BUILD_JAVA_LIBRARY)
180
181# Make sure that R.java and Manifest.java are built before we build
182# the source for this library.
183framework_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
190framework_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# ============================================================
195aidl_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 Projectc39a6e02009-03-11 12:11:56 -0700203 frameworks/base/core/java/android/appwidget/AppWidgetProviderInfo.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800204 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 \
Raphaeld8b51a22009-06-08 22:05:22 -0700226 frameworks/base/telephony/java/com/android/internal/telephony/ITelephony.aidl \
Hung-ying Tyan55567ef2009-06-03 23:56:34 +0800227 frameworks/base/vpn/java/android/net/vpn/IVpnService.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800228
229gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl
230$(gen): PRIVATE_SRC_FILES := $(aidl_files)
231ALL_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
240packages_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.
246fwbase_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 Borta833cbb2009-04-22 17:33:12 -0700256# 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.
259fwbase_dirs_to_document += core/config/sdk
260
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800261# These are relative to dalvik/libcore
262# Intentionally not included from libcore:
263# icu openssl suncompat support
264libcore_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
294non_base_dirs := \
295 ../../external/apache-http/src/org/apache/http
296
297# These are relative to frameworks/base
298dirs_to_document := \
299 $(fwbase_dirs_to_document) \
300 $(non_base_dirs) \
301 $(addprefix ../../dalvik/libcore/, $(libcore_to_document))
302
303html_dirs := \
304 $(FRAMEWORKS_BASE_SUBDIRS) \
305 $(non_base_dirs)
306
307# These are relative to frameworks/base
308framework_docs_LOCAL_SRC_FILES := \
309 $(call find-other-java-files, $(dirs_to_document)) \
310 $(call find-other-html-files, $(html_dirs))
311
312framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
313 $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
314
315framework_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
320framework_docs_LOCAL_JAVA_LIBRARIES := \
321 core \
322 ext \
323
324framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
325framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
326framework_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
330framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:=$(call intermediates-dir-for,JAVA_LIBRARIES,framework)
331
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800332sample_dir := development/samples
333
334web_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 Doughertye90232b2009-04-21 01:00:12 -0700343# 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.
347framework_docs_SDK_VERSION := 1.5
348# release version for SDK (ie "Release x")
Dirk Dougherty3f9de8b2009-05-22 16:04:18 -0700349framework_docs_SDK_REL_ID := 2
Dirk Doughertye90232b2009-04-21 01:00:12 -0700350framework_docs_SDK_CURRENT_DIR := $(framework_docs_SDK_VERSION)_r$(framework_docs_SDK_REL_ID)
351
352framework_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 Project9066cfe2009-03-03 19:31:44 -0800356
357# ==== static html in the sdk ==================================
358include $(CLEAR_VARS)
359
360LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
361LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
362LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
363LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
364LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
365LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
366LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
367
368LOCAL_MODULE := offline-sdk
369
370LOCAL_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
381LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
382LOCAL_DROIDDOC_CUSTOM_ASSET_DIR:=assets-sdk
383
384include $(BUILD_DROIDDOC)
385
386static_doc_index_redirect := $(out_dir)/index.html
387$(static_doc_index_redirect): \
Dirk Doughertye90232b2009-04-21 01:00:12 -0700388 $(LOCAL_PATH)/docs/docs-documentation-redirect.html | $(ACP)
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800389 $(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) =======================
399include $(CLEAR_VARS)
400
401LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
402LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
403LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
404LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
405LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
406LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
407LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
408LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
409
410LOCAL_MODULE := online-sdk
411
412LOCAL_DROIDDOC_OPTIONS:= \
Dirk Doughertye90232b2009-04-21 01:00:12 -0700413 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
414 $(web_docs_sample_code_flags) \
415 -toroot / \
416 -hdf android.whichdoc online
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800417
418LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
419LOCAL_DROIDDOC_CUSTOM_ASSET_DIR:=assets-sdk
420
421include $(BUILD_DROIDDOC)
422
423
424# ==== docs that have all of the stuff that's @hidden =======================
425include $(CLEAR_VARS)
426
427LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
428LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
429LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) framework
430LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
431LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
432LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
433LOCAL_ADDITIONAL_JAVA_DIR:=$(call intermediates-dir-for,JAVA_LIBRARIES,framework)
434
435LOCAL_MODULE := hidden
436LOCAL_DROIDDOC_OPTIONS:=\
437 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
438 -title "Android SDK - Including hidden APIs."
439# -hidden
440
441LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
442LOCAL_DROIDDOC_CUSTOM_ASSET_DIR:=assets-sdk
443
444include $(BUILD_DROIDDOC)
445
446# Build ext.jar
447# ============================================================
448
449ext_dirs := \
450 ../../external/apache-http/src \
451 ../../external/gdata/src \
452 ../../external/protobuf/src \
453 ../../external/tagsoup/src
454
455ext_src_files := $(call all-java-files-under,$(ext_dirs))
456
457# ==== the library =========================================
458include $(CLEAR_VARS)
459
460LOCAL_SRC_FILES := $(ext_src_files)
461
462LOCAL_NO_STANDARD_LIBRARIES := true
463LOCAL_JAVA_LIBRARIES := core
464LOCAL_STATIC_JAVA_LIBRARIES := libgoogleclient
465
466LOCAL_MODULE := ext
467
468include $(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.
476ifeq (,$(ONE_SHOT_MAKEFILE))
477include $(call first-makefiles-under,$(LOCAL_PATH))
478endif
Wink Saville767a6622009-04-02 01:37:02 -0700479
480