blob: 42a6b3102550f98e6d895c07b269bc2aa7aaf137 [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 += \
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 Tate487529a2009-04-29 14:03:25 -070082 core/java/android/backup/IBackupManager.aidl \
83 core/java/android/backup/IBackupService.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080084 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 Ballinger181a44d2009-04-16 14:31:48 -0700113 core/java/android/speech/IRecognitionListener.aidl \
114 core/java/android/speech/IRecognitionService.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800115 core/java/com/android/internal/app/IBatteryStats.aidl \
116 core/java/com/android/internal/app/IUsageStats.aidl \
The Android Open Source Projectc39a6e02009-03-11 12:11:56 -0700117 core/java/com/android/internal/appwidget/IAppWidgetService.aidl \
118 core/java/com/android/internal/appwidget/IAppWidgetHost.aidl \
Christopher Tate487529a2009-04-29 14:03:25 -0700119 core/java/com/android/internal/backup/IBackupTransport.aidl \
The Android Open Source Projectc39a6e02009-03-11 12:11:56 -0700120 core/java/com/android/internal/os/IResultReceiver.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800121 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 Lockwooda55c3212009-04-15 11:10:11 -0400129 location/java/android/location/IGeocodeProvider.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800130 location/java/android/location/IGpsStatusListener.aidl \
Mike Lockwood15e3d0f2009-05-01 07:53:28 -0400131 location/java/android/location/IGpsStatusProvider.aidl \
Mike Lockwoode932f7f2009-04-06 10:51:26 -0700132 location/java/android/location/ILocationCollector.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800133 location/java/android/location/ILocationListener.aidl \
134 location/java/android/location/ILocationManager.aidl \
Mike Lockwoode932f7f2009-04-06 10:51:26 -0700135 location/java/android/location/ILocationProvider.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800136 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 Saville767a6622009-04-02 01:37:02 -0700143 telephony/java/com/android/internal/telephony/IIccPhoneBook.aidl \
144 telephony/java/com/android/internal/telephony/ISms.aidl \
John Wang38e260a2009-03-27 16:38:58 -0700145 wifi/java/android/net/wifi/IWifiManager.aidl \
146 telephony/java/com/android/internal/telephony/IExtendedNetworkService.aidl
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800147
148# FRAMEWORKS_BASE_JAVA_SRC_DIRS comes from build/core/pathmap.mk
149LOCAL_AIDL_INCLUDES += $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
150
151LOCAL_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
156LOCAL_NO_STANDARD_LIBRARIES := true
157LOCAL_JAVA_LIBRARIES := core ext
158
159LOCAL_MODULE := framework
160LOCAL_MODULE_CLASS := JAVA_LIBRARIES
161
162# List of classes and interfaces which should be loaded by the Zygote.
163LOCAL_JAVA_RESOURCE_FILES += $(LOCAL_PATH)/preloaded-classes
164
165#LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.txt
166
167LOCAL_DX_FLAGS := --core-library
168
169include $(BUILD_JAVA_LIBRARY)
170
171# Make sure that R.java and Manifest.java are built before we build
172# the source for this library.
173framework_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
180framework_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# ============================================================
185aidl_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 Projectc39a6e02009-03-11 12:11:56 -0700193 frameworks/base/core/java/android/appwidget/AppWidgetProviderInfo.aidl \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800194 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
218gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl
219$(gen): PRIVATE_SRC_FILES := $(aidl_files)
220ALL_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
229packages_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.
235fwbase_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 Borta833cbb2009-04-22 17:33:12 -0700245# 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.
248fwbase_dirs_to_document += core/config/sdk
249
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800250# These are relative to dalvik/libcore
251# Intentionally not included from libcore:
252# icu openssl suncompat support
253libcore_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
283non_base_dirs := \
284 ../../external/apache-http/src/org/apache/http
285
286# These are relative to frameworks/base
287dirs_to_document := \
288 $(fwbase_dirs_to_document) \
289 $(non_base_dirs) \
290 $(addprefix ../../dalvik/libcore/, $(libcore_to_document))
291
292html_dirs := \
293 $(FRAMEWORKS_BASE_SUBDIRS) \
294 $(non_base_dirs)
295
296# These are relative to frameworks/base
297framework_docs_LOCAL_SRC_FILES := \
298 $(call find-other-java-files, $(dirs_to_document)) \
299 $(call find-other-html-files, $(html_dirs))
300
301framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
302 $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
303
304framework_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
309framework_docs_LOCAL_JAVA_LIBRARIES := \
310 core \
311 ext \
312
313framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
314framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
315framework_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
319framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:=$(call intermediates-dir-for,JAVA_LIBRARIES,framework)
320
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800321sample_dir := development/samples
322
323web_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 Doughertye90232b2009-04-21 01:00:12 -0700332# 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.
336framework_docs_SDK_VERSION := 1.5
337# release version for SDK (ie "Release x")
338framework_docs_SDK_REL_ID := 1
339framework_docs_SDK_CURRENT_DIR := $(framework_docs_SDK_VERSION)_r$(framework_docs_SDK_REL_ID)
340
341framework_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 Project9066cfe2009-03-03 19:31:44 -0800345
346# ==== static html in the sdk ==================================
347include $(CLEAR_VARS)
348
349LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
350LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
351LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
352LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
353LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
354LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
355LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
356
357LOCAL_MODULE := offline-sdk
358
359LOCAL_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
370LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
371LOCAL_DROIDDOC_CUSTOM_ASSET_DIR:=assets-sdk
372
373include $(BUILD_DROIDDOC)
374
375static_doc_index_redirect := $(out_dir)/index.html
376$(static_doc_index_redirect): \
Dirk Doughertye90232b2009-04-21 01:00:12 -0700377 $(LOCAL_PATH)/docs/docs-documentation-redirect.html | $(ACP)
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800378 $(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) =======================
388include $(CLEAR_VARS)
389
390LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
391LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
392LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
393LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
394LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
395LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
396LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
397LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
398
399LOCAL_MODULE := online-sdk
400
401LOCAL_DROIDDOC_OPTIONS:= \
Dirk Doughertye90232b2009-04-21 01:00:12 -0700402 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
403 $(web_docs_sample_code_flags) \
404 -toroot / \
405 -hdf android.whichdoc online
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800406
407LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
408LOCAL_DROIDDOC_CUSTOM_ASSET_DIR:=assets-sdk
409
410include $(BUILD_DROIDDOC)
411
412
413# ==== docs that have all of the stuff that's @hidden =======================
414include $(CLEAR_VARS)
415
416LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
417LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
418LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) framework
419LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
420LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
421LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
422LOCAL_ADDITIONAL_JAVA_DIR:=$(call intermediates-dir-for,JAVA_LIBRARIES,framework)
423
424LOCAL_MODULE := hidden
425LOCAL_DROIDDOC_OPTIONS:=\
426 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
427 -title "Android SDK - Including hidden APIs."
428# -hidden
429
430LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
431LOCAL_DROIDDOC_CUSTOM_ASSET_DIR:=assets-sdk
432
433include $(BUILD_DROIDDOC)
434
435# Build ext.jar
436# ============================================================
437
438ext_dirs := \
439 ../../external/apache-http/src \
440 ../../external/gdata/src \
441 ../../external/protobuf/src \
442 ../../external/tagsoup/src
443
444ext_src_files := $(call all-java-files-under,$(ext_dirs))
445
446# ==== the library =========================================
447include $(CLEAR_VARS)
448
449LOCAL_SRC_FILES := $(ext_src_files)
450
451LOCAL_NO_STANDARD_LIBRARIES := true
452LOCAL_JAVA_LIBRARIES := core
453LOCAL_STATIC_JAVA_LIBRARIES := libgoogleclient
454
455LOCAL_MODULE := ext
456
457include $(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.
465ifeq (,$(ONE_SHOT_MAKEFILE))
466include $(call first-makefiles-under,$(LOCAL_PATH))
467endif
Wink Saville767a6622009-04-02 01:37:02 -0700468
469