2009-03-03 19:31:44 -08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2008 The Android Open Source Project
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
# We have a special case here where we build the library's resources
|
|
|
|
# independently from its code, so we need to find where the resource
|
|
|
|
# class source got placed in the course of building the resources.
|
|
|
|
# Thus, the magic here.
|
|
|
|
# Also, this module cannot depend directly on the R.java file; if it
|
|
|
|
# did, the PRIVATE_* vars for R.java wouldn't be guaranteed to be correct.
|
|
|
|
# Instead, it depends on the R.stamp file, which lists the corresponding
|
|
|
|
# R.java file as a prerequisite.
|
|
|
|
# TODO: find a more appropriate way to do this.
|
2010-07-14 19:58:30 -07:00
|
|
|
framework_res_source_path := APPS/framework-res_intermediates/src
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
# the library
|
|
|
|
# ============================================================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
# FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
|
|
|
|
LOCAL_SRC_FILES := $(call find-other-java-files,$(FRAMEWORKS_BASE_SUBDIRS))
|
|
|
|
|
2010-02-07 22:25:34 -08:00
|
|
|
# EventLogTags files.
|
2010-02-10 19:27:58 -08:00
|
|
|
LOCAL_SRC_FILES += \
|
|
|
|
core/java/android/content/EventLogTags.logtags \
|
|
|
|
core/java/android/webkit/EventLogTags.logtags \
|
|
|
|
telephony/java/com/android/internal/telephony/EventLogTags.logtags \
|
2010-02-07 22:25:34 -08:00
|
|
|
|
2009-03-03 19:31:44 -08:00
|
|
|
# The following filters out code we are temporarily not including at all.
|
|
|
|
# TODO: Move AWT and beans (and associated harmony code) back into libcore.
|
|
|
|
# TODO: Maybe remove javax.microedition entirely?
|
|
|
|
# TODO: Move SyncML (org.mobilecontrol.*) into its own library.
|
|
|
|
LOCAL_SRC_FILES := $(filter-out \
|
|
|
|
org/mobilecontrol/% \
|
|
|
|
,$(LOCAL_SRC_FILES))
|
|
|
|
|
|
|
|
## READ ME: ########################################################
|
|
|
|
##
|
2009-04-06 10:52:24 -07:00
|
|
|
## When updating this list of aidl files, consider if that aidl is
|
2009-03-03 19:31:44 -08:00
|
|
|
## part of the SDK API. If it is, also add it to the list below that
|
|
|
|
## is preprocessed and distributed with the SDK. This list should
|
|
|
|
## not contain any aidl files for parcelables, but the one below should
|
|
|
|
## if you intend for 3rd parties to be able to send those objects
|
|
|
|
## across process boundaries.
|
|
|
|
##
|
|
|
|
## READ ME: ########################################################
|
|
|
|
LOCAL_SRC_FILES += \
|
2009-05-14 22:28:01 -07:00
|
|
|
core/java/android/accessibilityservice/IAccessibilityServiceConnection.aidl \
|
2009-07-14 12:51:00 -07:00
|
|
|
core/java/android/accessibilityservice/IEventListener.aidl \
|
2009-03-24 22:48:12 -07:00
|
|
|
core/java/android/accounts/IAccountManager.aidl \
|
|
|
|
core/java/android/accounts/IAccountManagerResponse.aidl \
|
|
|
|
core/java/android/accounts/IAccountAuthenticator.aidl \
|
|
|
|
core/java/android/accounts/IAccountAuthenticatorResponse.aidl \
|
2009-07-13 13:07:51 -07:00
|
|
|
core/java/android/app/IActivityController.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
core/java/android/app/IActivityPendingResult.aidl \
|
|
|
|
core/java/android/app/IActivityWatcher.aidl \
|
|
|
|
core/java/android/app/IAlarmManager.aidl \
|
2009-07-13 13:07:51 -07:00
|
|
|
core/java/android/app/IBackupAgent.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
core/java/android/app/IInstrumentationWatcher.aidl \
|
|
|
|
core/java/android/app/INotificationManager.aidl \
|
2011-05-20 15:29:23 -07:00
|
|
|
core/java/android/app/IProcessObserver.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
core/java/android/app/ISearchManager.aidl \
|
2009-06-05 13:22:28 +01:00
|
|
|
core/java/android/app/ISearchManagerCallback.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
core/java/android/app/IServiceConnection.aidl \
|
|
|
|
core/java/android/app/IThumbnailReceiver.aidl \
|
2011-04-08 18:14:09 -07:00
|
|
|
core/java/android/app/IThumbnailRetriever.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
core/java/android/app/ITransientNotification.aidl \
|
2010-02-09 23:09:17 +01:00
|
|
|
core/java/android/app/IUiModeManager.aidl \
|
2009-08-05 21:29:42 -07:00
|
|
|
core/java/android/app/IWallpaperManager.aidl \
|
|
|
|
core/java/android/app/IWallpaperManagerCallback.aidl \
|
2010-02-26 17:25:54 -08:00
|
|
|
core/java/android/app/admin/IDevicePolicyManager.aidl \
|
2010-03-05 15:46:30 -08:00
|
|
|
core/java/android/app/backup/IBackupManager.aidl \
|
Full local backup infrastructure
This is the basic infrastructure for pulling a full(*) backup of the
device's data over an adb(**) connection to the local device. The
basic process consists of these interacting pieces:
1. The framework's BackupManagerService, which coordinates the
collection of app data and routing to the destination.
2. A new framework-provided BackupAgent implementation called
FullBackupAgent, which is instantiated in the target applications'
processes in turn, and knows how to emit a datastream that contains
all of the app's saved data files.
3. A new shell-level program called "bu" that is used to bridge from
adb to the framework's Backup Manager.
4. adb itself, which now knows how to use 'bu' to kick off a backup
operation and pull the resulting data stream to the desktop host.
5. A system-provided application that verifies with the user that
an attempted backup/restore operation is in fact expected and to
be allowed.
The full agent implementation is not used during normal operation of
the delta-based app-customized remote backup process. Instead it's
used during user-confirmed *full* backup of applications and all their
data to a local destination, e.g. via the adb connection.
The output format is 'tar'. This makes it very easy for the end
user to examine the resulting dataset, e.g. for purpose of extracting
files for debug purposes; as well as making it easy to contemplate
adding things like a direct gzip stage to the data pipeline during
backup/restore. It also makes it convenient to construct and maintain
synthetic backup datasets for testing purposes.
Within the tar format, certain artificial conventions are used.
All files are stored within top-level directories according to
their semantic origin:
apps/pkgname/a/ : Application .apk file itself
apps/pkgname/obb/: The application's associated .obb containers
apps/pkgname/f/ : The subtree rooted at the getFilesDir() location
apps/pkgname/db/ : The subtree rooted at the getDatabasePath() parent
apps/pkgname/sp/ : The subtree rooted at the getSharedPrefsFile() parent
apps/pkgname/r/ : Files stored relative to the root of the app's file tree
apps/pkgname/c/ : Reserved for the app's getCacheDir() tree; not stored.
For each package, the first entry in the tar stream is a file called
"_manifest", nominally rooted at apps/pkgname. This file contains some
metadata about the package whose data is stored in the archive.
The contents of shared storage can optionally be included in the tar
stream. It is placed in the synthetic location:
shared/...
uid/gid are ignored; app uids are assigned at install time, and the
app's data is handled from within its own execution environment, so
will automatically have the app's correct uid.
Forward-locked .apk files are never backed up. System-partition
.apk files are not backed up unless they have been overridden by a
post-factory upgrade, in which case the current .apk *is* backed up --
i.e. the .apk that matches the on-disk data. The manifest preceding
each application's portion of the tar stream provides version numbers
and signature blocks for version checking, as well as an indication
of whether the restore logic should expect to install the .apk before
extracting the data.
System packages can designate their own full backup agents. This is
to manage things like the settings provider which (a) cannot be shut
down on the fly in order to do a clean snapshot of their file trees,
and (b) manage data that is not only irrelevant but actively hostile
to non-identical devices -- CDMA telephony settings would seriously
mess up a GSM device if emplaced there blind, for example.
When a full backup or restore is initiated from adb, the system will
present a confirmation UI that the user must explicitly respond to
within a short [~ 30 seconds] timeout. This is to avoid the
possibility of malicious desktop-side software secretly grabbing a copy
of all the user's data for nefarious purposes.
(*) The backup is not strictly a full mirror. In particular, the
settings database is not cloned; it is handled the same way that
it is in cloud backup/restore. This is because some settings
are actively destructive if cloned onto a different (or
especially a different-model) device: telephony settings and
AndroidID are good examples of this.
(**) On the framework side it doesn't care that it's adb; it just
sends the tar stream to a file descriptor. This can easily be
retargeted around whatever transport we might decide to use
in the future.
KNOWN ISSUES:
* the security UI is desperately ugly; no proper designs have yet
been done for it
* restore is not yet implemented
* shared storage backup is not yet implemented
* symlinks aren't yet handled, though some infrastructure for
dealing with them has been put in place.
Change-Id: Ia8347611e23b398af36ea22c36dff0a276b1ce91
2011-04-01 14:43:32 -07:00
|
|
|
core/java/android/app/backup/IFullBackupRestoreObserver.aidl \
|
2010-03-05 15:46:30 -08:00
|
|
|
core/java/android/app/backup/IRestoreObserver.aidl \
|
|
|
|
core/java/android/app/backup/IRestoreSession.aidl \
|
2009-08-14 18:33:38 -07:00
|
|
|
core/java/android/bluetooth/IBluetooth.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
core/java/android/bluetooth/IBluetoothA2dp.aidl \
|
2009-10-07 07:44:03 +02:00
|
|
|
core/java/android/bluetooth/IBluetoothCallback.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
core/java/android/bluetooth/IBluetoothHeadset.aidl \
|
2011-04-01 16:33:09 -07:00
|
|
|
core/java/android/bluetooth/IBluetoothHealthCallback.aidl \
|
2009-07-02 16:36:02 +08:00
|
|
|
core/java/android/bluetooth/IBluetoothPbap.aidl \
|
2010-08-04 17:48:03 -07:00
|
|
|
core/java/android/content/IClipboard.aidl \
|
2009-07-13 13:07:51 -07:00
|
|
|
core/java/android/content/IContentService.aidl \
|
2009-06-12 10:09:58 -07:00
|
|
|
core/java/android/content/IIntentReceiver.aidl \
|
|
|
|
core/java/android/content/IIntentSender.aidl \
|
2010-08-04 17:48:03 -07:00
|
|
|
core/java/android/content/IOnPrimaryClipChangedListener.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
core/java/android/content/ISyncAdapter.aidl \
|
|
|
|
core/java/android/content/ISyncContext.aidl \
|
2009-07-13 13:07:51 -07:00
|
|
|
core/java/android/content/ISyncStatusObserver.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
core/java/android/content/pm/IPackageDataObserver.aidl \
|
|
|
|
core/java/android/content/pm/IPackageDeleteObserver.aidl \
|
|
|
|
core/java/android/content/pm/IPackageInstallObserver.aidl \
|
|
|
|
core/java/android/content/pm/IPackageManager.aidl \
|
2010-02-19 09:19:34 -08:00
|
|
|
core/java/android/content/pm/IPackageMoveObserver.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
core/java/android/content/pm/IPackageStatsObserver.aidl \
|
|
|
|
core/java/android/database/IContentObserver.aidl \
|
2011-03-01 08:04:54 -08:00
|
|
|
core/java/android/hardware/usb/IUsbManager.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
core/java/android/net/IConnectivityManager.aidl \
|
2010-01-22 16:07:46 -08:00
|
|
|
core/java/android/net/INetworkManagementEventObserver.aidl \
|
2010-05-17 17:27:30 -04:00
|
|
|
core/java/android/net/IThrottleManager.aidl \
|
2011-05-19 17:12:49 -07:00
|
|
|
core/java/android/net/INetworkPolicyListener.aidl \
|
2011-05-03 20:27:17 -07:00
|
|
|
core/java/android/net/INetworkPolicyManager.aidl \
|
2011-05-24 18:39:45 -07:00
|
|
|
core/java/android/net/INetworkStatsService.aidl \
|
2010-10-14 19:16:35 -07:00
|
|
|
core/java/android/nfc/ILlcpConnectionlessSocket.aidl \
|
|
|
|
core/java/android/nfc/ILlcpServiceSocket.aidl \
|
|
|
|
core/java/android/nfc/ILlcpSocket.aidl \
|
2011-05-24 02:57:37 -07:00
|
|
|
core/java/android/nfc/INdefPushCallback.aidl \
|
2010-10-14 19:16:35 -07:00
|
|
|
core/java/android/nfc/INfcAdapter.aidl \
|
2011-03-08 11:43:30 -08:00
|
|
|
core/java/android/nfc/INfcAdapterExtras.aidl \
|
2010-10-14 19:16:35 -07:00
|
|
|
core/java/android/nfc/INfcTag.aidl \
|
|
|
|
core/java/android/nfc/IP2pInitiator.aidl \
|
|
|
|
core/java/android/nfc/IP2pTarget.aidl \
|
2010-05-17 17:27:30 -04:00
|
|
|
core/java/android/os/IHardwareService.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
core/java/android/os/IMessenger.aidl \
|
2010-01-14 10:25:07 -08:00
|
|
|
core/java/android/os/INetworkManagementService.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
core/java/android/os/IPermissionController.aidl \
|
|
|
|
core/java/android/os/IPowerManager.aidl \
|
2011-04-20 12:12:33 -07:00
|
|
|
core/java/android/os/IRemoteCallback.aidl \
|
2009-11-24 00:30:52 -05:00
|
|
|
core/java/android/os/IVibratorService.aidl \
|
2011-04-20 12:12:33 -07:00
|
|
|
core/java/android/service/wallpaper/IWallpaperConnection.aidl \
|
|
|
|
core/java/android/service/wallpaper/IWallpaperEngine.aidl \
|
|
|
|
core/java/android/service/wallpaper/IWallpaperService.aidl \
|
|
|
|
core/java/android/view/accessibility/IAccessibilityInteractionConnection.aidl\
|
|
|
|
core/java/android/view/accessibility/IAccessibilityInteractionConnectionCallback.aidl\
|
2009-05-14 22:28:01 -07:00
|
|
|
core/java/android/view/accessibility/IAccessibilityManager.aidl \
|
|
|
|
core/java/android/view/accessibility/IAccessibilityManagerClient.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
core/java/android/view/IApplicationToken.aidl \
|
|
|
|
core/java/android/view/IOnKeyguardExitResult.aidl \
|
|
|
|
core/java/android/view/IRotationWatcher.aidl \
|
|
|
|
core/java/android/view/IWindow.aidl \
|
|
|
|
core/java/android/view/IWindowManager.aidl \
|
|
|
|
core/java/android/view/IWindowSession.aidl \
|
2009-09-15 11:19:58 -07:00
|
|
|
core/java/android/speech/IRecognitionListener.aidl \
|
|
|
|
core/java/android/speech/IRecognitionService.aidl \
|
2011-03-08 16:00:40 +00:00
|
|
|
core/java/android/speech/tts/ITextToSpeechCallback.aidl \
|
|
|
|
core/java/android/speech/tts/ITextToSpeechService.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
core/java/com/android/internal/app/IBatteryStats.aidl \
|
|
|
|
core/java/com/android/internal/app/IUsageStats.aidl \
|
2010-01-25 12:19:12 -08:00
|
|
|
core/java/com/android/internal/app/IMediaContainerService.aidl \
|
2009-03-11 12:11:56 -07:00
|
|
|
core/java/com/android/internal/appwidget/IAppWidgetService.aidl \
|
|
|
|
core/java/com/android/internal/appwidget/IAppWidgetHost.aidl \
|
2009-04-29 14:03:25 -07:00
|
|
|
core/java/com/android/internal/backup/IBackupTransport.aidl \
|
2009-11-12 11:32:50 -08:00
|
|
|
core/java/com/android/internal/os/IDropBoxManagerService.aidl \
|
2009-03-11 12:11:56 -07:00
|
|
|
core/java/com/android/internal/os/IResultReceiver.aidl \
|
2010-05-02 16:28:15 -07:00
|
|
|
core/java/com/android/internal/statusbar/IStatusBar.aidl \
|
|
|
|
core/java/com/android/internal/statusbar/IStatusBarService.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
core/java/com/android/internal/view/IInputContext.aidl \
|
|
|
|
core/java/com/android/internal/view/IInputContextCallback.aidl \
|
|
|
|
core/java/com/android/internal/view/IInputMethod.aidl \
|
|
|
|
core/java/com/android/internal/view/IInputMethodCallback.aidl \
|
|
|
|
core/java/com/android/internal/view/IInputMethodClient.aidl \
|
|
|
|
core/java/com/android/internal/view/IInputMethodManager.aidl \
|
|
|
|
core/java/com/android/internal/view/IInputMethodSession.aidl \
|
2010-07-16 11:18:17 -07:00
|
|
|
core/java/com/android/internal/widget/IRemoteViewsFactory.aidl \
|
2011-01-11 18:05:01 -08:00
|
|
|
core/java/com/android/internal/widget/IRemoteViewsAdapterConnection.aidl \
|
2011-06-09 15:05:35 -07:00
|
|
|
keystore/java/android/security/IKeyChainAliasCallback.aidl \
|
2011-04-11 09:03:51 -07:00
|
|
|
keystore/java/android/security/IKeyChainService.aidl \
|
2010-07-13 15:32:16 +08:00
|
|
|
location/java/android/location/ICountryDetector.aidl \
|
|
|
|
location/java/android/location/ICountryListener.aidl \
|
2009-04-15 11:10:11 -04:00
|
|
|
location/java/android/location/IGeocodeProvider.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
location/java/android/location/IGpsStatusListener.aidl \
|
2009-05-01 07:53:28 -04:00
|
|
|
location/java/android/location/IGpsStatusProvider.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
location/java/android/location/ILocationListener.aidl \
|
|
|
|
location/java/android/location/ILocationManager.aidl \
|
2009-04-06 10:52:24 -07:00
|
|
|
location/java/android/location/ILocationProvider.aidl \
|
2009-08-18 18:28:45 -04:00
|
|
|
location/java/android/location/INetInitiatedListener.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
media/java/android/media/IAudioService.aidl \
|
2010-01-28 11:56:42 -08:00
|
|
|
media/java/android/media/IAudioFocusDispatcher.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
media/java/android/media/IMediaScannerListener.aidl \
|
|
|
|
media/java/android/media/IMediaScannerService.aidl \
|
|
|
|
telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl \
|
|
|
|
telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \
|
|
|
|
telephony/java/com/android/internal/telephony/ITelephony.aidl \
|
|
|
|
telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl \
|
2009-04-02 11:00:54 -07:00
|
|
|
telephony/java/com/android/internal/telephony/IIccPhoneBook.aidl \
|
|
|
|
telephony/java/com/android/internal/telephony/ISms.aidl \
|
2010-08-20 08:10:00 +09:00
|
|
|
telephony/java/com/android/internal/telephony/IWapPushManager.aidl \
|
2009-03-27 18:24:06 -07:00
|
|
|
wifi/java/android/net/wifi/IWifiManager.aidl \
|
2009-06-08 21:57:16 -07:00
|
|
|
telephony/java/com/android/internal/telephony/IExtendedNetworkService.aidl \
|
2010-08-05 12:17:37 +08:00
|
|
|
voip/java/android/net/sip/ISipSession.aidl \
|
|
|
|
voip/java/android/net/sip/ISipSessionListener.aidl \
|
|
|
|
voip/java/android/net/sip/ISipService.aidl
|
|
|
|
#
|
2009-03-03 19:31:44 -08:00
|
|
|
|
2009-12-08 12:47:12 -08:00
|
|
|
|
2009-03-03 19:31:44 -08:00
|
|
|
# FRAMEWORKS_BASE_JAVA_SRC_DIRS comes from build/core/pathmap.mk
|
|
|
|
LOCAL_AIDL_INCLUDES += $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
|
|
|
|
|
|
|
|
LOCAL_INTERMEDIATE_SOURCES := \
|
2010-07-14 19:58:30 -07:00
|
|
|
$(framework_res_source_path)/android/R.java \
|
|
|
|
$(framework_res_source_path)/android/Manifest.java \
|
|
|
|
$(framework_res_source_path)/com/android/internal/R.java
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
LOCAL_NO_STANDARD_LIBRARIES := true
|
2010-06-30 00:54:29 -07:00
|
|
|
LOCAL_JAVA_LIBRARIES := bouncycastle core core-junit ext
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
LOCAL_MODULE := framework
|
|
|
|
LOCAL_MODULE_CLASS := JAVA_LIBRARIES
|
|
|
|
|
2010-03-16 19:08:54 -07:00
|
|
|
LOCAL_NO_EMMA_INSTRUMENT := true
|
|
|
|
LOCAL_NO_EMMA_COMPILE := true
|
|
|
|
|
2009-03-03 19:31:44 -08:00
|
|
|
# List of classes and interfaces which should be loaded by the Zygote.
|
|
|
|
LOCAL_JAVA_RESOURCE_FILES += $(LOCAL_PATH)/preloaded-classes
|
|
|
|
|
|
|
|
#LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.txt
|
|
|
|
|
|
|
|
LOCAL_DX_FLAGS := --core-library
|
|
|
|
|
|
|
|
include $(BUILD_JAVA_LIBRARY)
|
|
|
|
|
|
|
|
# Make sure that R.java and Manifest.java are built before we build
|
|
|
|
# the source for this library.
|
|
|
|
framework_res_R_stamp := \
|
|
|
|
$(call intermediates-dir-for,APPS,framework-res,,COMMON)/src/R.stamp
|
|
|
|
$(full_classes_compiled_jar): $(framework_res_R_stamp)
|
|
|
|
|
|
|
|
# Make sure that framework-res is installed when framework is.
|
|
|
|
$(LOCAL_INSTALLED_MODULE): | $(dir $(LOCAL_INSTALLED_MODULE))framework-res.apk
|
|
|
|
|
|
|
|
framework_built := $(LOCAL_BUILT_MODULE)
|
|
|
|
|
|
|
|
# AIDL files to be preprocessed and included in the SDK,
|
|
|
|
# relative to the root of the build tree.
|
|
|
|
# ============================================================
|
|
|
|
aidl_files := \
|
2009-03-24 22:48:12 -07:00
|
|
|
frameworks/base/core/java/android/accounts/IAccountManager.aidl \
|
|
|
|
frameworks/base/core/java/android/accounts/IAccountManagerResponse.aidl \
|
|
|
|
frameworks/base/core/java/android/accounts/IAccountAuthenticator.aidl \
|
|
|
|
frameworks/base/core/java/android/accounts/IAccountAuthenticatorResponse.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
frameworks/base/core/java/android/app/Notification.aidl \
|
|
|
|
frameworks/base/core/java/android/app/PendingIntent.aidl \
|
2009-11-04 17:23:55 -08:00
|
|
|
frameworks/base/core/java/android/bluetooth/BluetoothDevice.aidl \
|
2011-04-01 16:33:09 -07:00
|
|
|
frameworks/base/core/java/android/bluetooth/BluetoothHealthAppConfiguration.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
frameworks/base/core/java/android/content/ComponentName.aidl \
|
|
|
|
frameworks/base/core/java/android/content/Intent.aidl \
|
2009-06-12 10:09:58 -07:00
|
|
|
frameworks/base/core/java/android/content/IntentSender.aidl \
|
2010-01-27 12:17:49 -08:00
|
|
|
frameworks/base/core/java/android/content/PeriodicSync.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
frameworks/base/core/java/android/content/SyncStats.aidl \
|
|
|
|
frameworks/base/core/java/android/content/res/Configuration.aidl \
|
2009-03-11 12:11:56 -07:00
|
|
|
frameworks/base/core/java/android/appwidget/AppWidgetProviderInfo.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
frameworks/base/core/java/android/net/Uri.aidl \
|
2010-10-14 19:16:35 -07:00
|
|
|
frameworks/base/core/java/android/nfc/NdefMessage.aidl \
|
|
|
|
frameworks/base/core/java/android/nfc/NdefRecord.aidl \
|
|
|
|
frameworks/base/core/java/android/nfc/Tag.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
frameworks/base/core/java/android/os/Bundle.aidl \
|
2009-11-12 11:32:50 -08:00
|
|
|
frameworks/base/core/java/android/os/DropBoxManager.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
frameworks/base/core/java/android/os/ParcelFileDescriptor.aidl \
|
2009-09-28 12:33:17 -07:00
|
|
|
frameworks/base/core/java/android/os/ParcelUuid.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
frameworks/base/core/java/android/view/KeyEvent.aidl \
|
|
|
|
frameworks/base/core/java/android/view/MotionEvent.aidl \
|
|
|
|
frameworks/base/core/java/android/view/Surface.aidl \
|
|
|
|
frameworks/base/core/java/android/view/WindowManager.aidl \
|
|
|
|
frameworks/base/core/java/android/widget/RemoteViews.aidl \
|
|
|
|
frameworks/base/core/java/com/android/internal/view/IInputContext.aidl \
|
|
|
|
frameworks/base/core/java/com/android/internal/view/IInputMethod.aidl \
|
|
|
|
frameworks/base/core/java/com/android/internal/view/IInputMethodCallback.aidl \
|
|
|
|
frameworks/base/core/java/com/android/internal/view/IInputMethodClient.aidl \
|
|
|
|
frameworks/base/core/java/com/android/internal/view/IInputMethodManager.aidl \
|
|
|
|
frameworks/base/core/java/com/android/internal/view/IInputMethodSession.aidl \
|
|
|
|
frameworks/base/graphics/java/android/graphics/Bitmap.aidl \
|
|
|
|
frameworks/base/graphics/java/android/graphics/Rect.aidl \
|
|
|
|
frameworks/base/graphics/java/android/graphics/Region.aidl \
|
|
|
|
frameworks/base/location/java/android/location/Criteria.aidl \
|
|
|
|
frameworks/base/location/java/android/location/Location.aidl \
|
|
|
|
frameworks/base/telephony/java/android/telephony/ServiceState.aidl \
|
|
|
|
frameworks/base/telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \
|
2009-06-08 22:05:22 -07:00
|
|
|
frameworks/base/telephony/java/com/android/internal/telephony/ITelephony.aidl \
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl
|
|
|
|
$(gen): PRIVATE_SRC_FILES := $(aidl_files)
|
|
|
|
ALL_SDK_FILES += $(gen)
|
|
|
|
$(gen): $(aidl_files) | $(AIDL)
|
|
|
|
@echo Aidl Preprocess: $@
|
|
|
|
$(hide) $(AIDL) --preprocess $@ $(PRIVATE_SRC_FILES)
|
|
|
|
|
|
|
|
# the documentation
|
|
|
|
# ============================================================
|
|
|
|
|
|
|
|
# TODO: deal with com/google/android/googleapps
|
|
|
|
packages_to_document := \
|
|
|
|
android \
|
|
|
|
javax/microedition/khronos
|
|
|
|
|
|
|
|
# Search through the base framework dirs for these packages.
|
|
|
|
# The result will be relative to frameworks/base.
|
|
|
|
fwbase_dirs_to_document := \
|
2010-02-19 10:49:27 -08:00
|
|
|
test-runner/src \
|
2009-03-03 19:31:44 -08:00
|
|
|
$(patsubst $(LOCAL_PATH)/%,%, \
|
|
|
|
$(wildcard \
|
|
|
|
$(foreach dir, $(FRAMEWORKS_BASE_JAVA_SRC_DIRS), \
|
|
|
|
$(addprefix $(dir)/, $(packages_to_document)) \
|
|
|
|
) \
|
|
|
|
) \
|
|
|
|
)
|
|
|
|
|
2011-01-05 17:52:36 -08:00
|
|
|
# include definition of libcore_to_document
|
|
|
|
include $(LOCAL_PATH)/../../libcore/Docs.mk
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
non_base_dirs := \
|
2010-02-01 17:47:48 -08:00
|
|
|
../../external/apache-http/src/org/apache/http
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
# These are relative to frameworks/base
|
|
|
|
dirs_to_document := \
|
|
|
|
$(fwbase_dirs_to_document) \
|
2011-03-24 14:14:28 -07:00
|
|
|
$(non_base_dirs)
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
html_dirs := \
|
|
|
|
$(FRAMEWORKS_BASE_SUBDIRS) \
|
|
|
|
$(non_base_dirs)
|
|
|
|
|
|
|
|
# These are relative to frameworks/base
|
|
|
|
framework_docs_LOCAL_SRC_FILES := \
|
|
|
|
$(call find-other-java-files, $(dirs_to_document)) \
|
2011-03-24 14:14:28 -07:00
|
|
|
$(call find-other-html-files, $(html_dirs)) \
|
|
|
|
$(addprefix ../../libcore/, $(call libcore_to_document, $(LOCAL_PATH)/../../libcore))
|
2009-03-03 19:31:44 -08:00
|
|
|
|
2010-05-17 18:21:44 -07:00
|
|
|
# This is used by ide.mk as the list of source files that are
|
|
|
|
# always included.
|
|
|
|
INTERNAL_SDK_SOURCE_DIRS := $(addprefix $(LOCAL_PATH)/,$(dirs_to_document))
|
|
|
|
|
2009-03-03 19:31:44 -08:00
|
|
|
framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
|
|
|
|
$(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
|
|
|
|
|
|
|
|
framework_docs_LOCAL_INTERMEDIATE_SOURCES := \
|
2010-07-14 19:58:30 -07:00
|
|
|
$(framework_res_source_path)/android/R.java \
|
|
|
|
$(framework_res_source_path)/android/Manifest.java \
|
|
|
|
$(framework_res_source_path)/com/android/internal/R.java
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
framework_docs_LOCAL_JAVA_LIBRARIES := \
|
2010-06-30 00:54:29 -07:00
|
|
|
bouncycastle \
|
2009-03-03 19:31:44 -08:00
|
|
|
core \
|
|
|
|
ext \
|
2009-12-10 17:08:14 -08:00
|
|
|
framework \
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
|
2010-08-27 15:05:39 -04:00
|
|
|
framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
|
2009-07-31 13:03:36 -07:00
|
|
|
# The since flag (-since N.xml API_LEVEL) is used to add API Level information
|
|
|
|
# to the reference documentation. Must be in order of oldest to newest.
|
2009-03-03 19:31:44 -08:00
|
|
|
framework_docs_LOCAL_DROIDDOC_OPTIONS := \
|
2010-09-16 11:56:03 -04:00
|
|
|
-knowntags ./frameworks/base/docs/knowntags.txt \
|
2009-07-31 13:03:36 -07:00
|
|
|
-since ./frameworks/base/api/1.xml 1 \
|
|
|
|
-since ./frameworks/base/api/2.xml 2 \
|
|
|
|
-since ./frameworks/base/api/3.xml 3 \
|
2009-08-24 14:45:00 -07:00
|
|
|
-since ./frameworks/base/api/4.xml 4 \
|
2009-10-16 15:25:15 -07:00
|
|
|
-since ./frameworks/base/api/5.xml 5 \
|
2009-11-18 23:06:16 -08:00
|
|
|
-since ./frameworks/base/api/6.xml 6 \
|
2009-12-16 21:41:10 -08:00
|
|
|
-since ./frameworks/base/api/7.xml 7 \
|
2010-04-19 12:00:15 -07:00
|
|
|
-since ./frameworks/base/api/8.xml 8 \
|
2010-10-18 18:41:52 -07:00
|
|
|
-since ./frameworks/base/api/9.xml 9 \
|
2011-01-26 17:40:35 -08:00
|
|
|
-since ./frameworks/base/api/10.xml 10 \
|
2011-02-07 16:35:46 -08:00
|
|
|
-since ./frameworks/base/api/11.xml 11 \
|
2011-03-29 16:25:16 -07:00
|
|
|
-since ./frameworks/base/api/12.xml 12 \
|
2011-06-21 10:14:44 -07:00
|
|
|
-since ./frameworks/base/api/13.xml 13 \
|
2010-09-16 15:42:20 -04:00
|
|
|
-werror -hide 113 \
|
2009-03-03 19:31:44 -08:00
|
|
|
-overview $(LOCAL_PATH)/core/java/overview.html
|
|
|
|
|
2011-05-17 13:12:42 -07:00
|
|
|
framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= $(call intermediates-dir-for,JAVA_LIBRARIES,framework,,COMMON)
|
2010-09-16 11:56:03 -04:00
|
|
|
|
|
|
|
framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES := \
|
|
|
|
frameworks/base/docs/knowntags.txt
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
sample_dir := development/samples
|
|
|
|
|
2010-02-08 10:53:12 -08:00
|
|
|
# the list here should match the list of samples included in the sdk samples package
|
|
|
|
# (see development/build/sdk.atree)
|
2009-03-03 19:31:44 -08:00
|
|
|
web_docs_sample_code_flags := \
|
|
|
|
-hdf android.hasSamples 1 \
|
2010-11-24 16:03:21 -08:00
|
|
|
-samplecode $(sample_dir)/AccessibilityService \
|
|
|
|
resources/samples/AccessibilityService "Accessibility Service" \
|
2010-11-24 16:17:52 -08:00
|
|
|
-samplecode $(sample_dir)/AccelerometerPlay \
|
|
|
|
resources/samples/AccelerometerPlay "Accelerometer Play" \
|
2011-06-16 13:31:57 -07:00
|
|
|
-samplecode $(sample_dir)/ApiDemos \
|
2011-01-19 18:14:50 -08:00
|
|
|
resources/samples/ApiDemos "API Demos" \
|
2011-06-16 13:31:57 -07:00
|
|
|
-samplecode $(sample_dir)/Support4Demos \
|
|
|
|
resources/samples/Support4Demos "API 4+ Support Demos" \
|
|
|
|
-samplecode $(sample_dir)/Support13Demos \
|
|
|
|
resources/samples/Support13Demos "API 13+ Support Demos" \
|
2010-04-07 11:15:45 -07:00
|
|
|
-samplecode $(sample_dir)/BackupRestore \
|
|
|
|
resources/samples/BackupRestore "Backup and Restore" \
|
2009-12-10 16:25:06 -08:00
|
|
|
-samplecode $(sample_dir)/BluetoothChat \
|
|
|
|
resources/samples/BluetoothChat "Bluetooth Chat" \
|
2010-01-07 16:26:39 -08:00
|
|
|
-samplecode $(sample_dir)/BusinessCard \
|
|
|
|
resources/samples/BusinessCard "Business Card" \
|
2009-12-10 16:25:06 -08:00
|
|
|
-samplecode $(sample_dir)/ContactManager \
|
|
|
|
resources/samples/ContactManager "Contact Manager" \
|
2011-01-19 18:14:50 -08:00
|
|
|
-samplecode $(sample_dir)/CubeLiveWallpaper \
|
|
|
|
resources/samples/CubeLiveWallpaper "Cube Live Wallpaper" \
|
2009-08-24 14:45:00 -07:00
|
|
|
-samplecode $(sample_dir)/Home \
|
2009-12-10 16:25:06 -08:00
|
|
|
resources/samples/Home "Home" \
|
2011-02-04 14:28:22 -08:00
|
|
|
-samplecode $(sample_dir)/HoneycombGallery \
|
|
|
|
resources/samples/HoneycombGallery "Honeycomb Gallery" \
|
2009-08-24 14:45:00 -07:00
|
|
|
-samplecode $(sample_dir)/JetBoy \
|
2009-12-10 16:25:06 -08:00
|
|
|
resources/samples/JetBoy "JetBoy" \
|
2009-03-03 19:31:44 -08:00
|
|
|
-samplecode $(sample_dir)/LunarLander \
|
2009-12-10 16:25:06 -08:00
|
|
|
resources/samples/LunarLander "Lunar Lander" \
|
|
|
|
-samplecode $(sample_dir)/MultiResolution \
|
|
|
|
resources/samples/MultiResolution "Multiple Resolutions" \
|
2011-01-19 18:14:50 -08:00
|
|
|
-samplecode $(sample_dir)/NFCDemo \
|
|
|
|
resources/samples/NFCDemo "NFC Demo" \
|
2009-03-03 19:31:44 -08:00
|
|
|
-samplecode $(sample_dir)/NotePad \
|
2009-12-10 16:25:06 -08:00
|
|
|
resources/samples/NotePad "Note Pad" \
|
2010-06-04 13:38:43 -07:00
|
|
|
-samplecode $(sample_dir)/SampleSyncAdapter \
|
|
|
|
resources/samples/SampleSyncAdapter "Sample Sync Adapter" \
|
2011-06-07 01:23:02 -04:00
|
|
|
-samplecode $(sample_dir)/RandomMusicPlayer \
|
|
|
|
resources/samples/RandomMusicPlayer "Random Music Player" \
|
2011-02-28 15:53:15 -08:00
|
|
|
-samplecode $(sample_dir)/RenderScript \
|
|
|
|
resources/samples/RenderScript "RenderScript" \
|
2009-08-29 13:17:53 -07:00
|
|
|
-samplecode $(sample_dir)/SearchableDictionary \
|
2010-05-07 15:08:36 -07:00
|
|
|
resources/samples/SearchableDictionary "Searchable Dictionary v2" \
|
2010-11-02 22:26:11 -07:00
|
|
|
-samplecode $(sample_dir)/SipDemo \
|
|
|
|
resources/samples/SipDemo "SIP Demo" \
|
2009-08-24 14:45:00 -07:00
|
|
|
-samplecode $(sample_dir)/Snake \
|
2009-12-10 16:25:06 -08:00
|
|
|
resources/samples/Snake "Snake" \
|
2009-08-24 14:45:00 -07:00
|
|
|
-samplecode $(sample_dir)/SoftKeyboard \
|
2009-12-10 16:25:06 -08:00
|
|
|
resources/samples/SoftKeyboard "Soft Keyboard" \
|
2010-04-14 14:40:59 -07:00
|
|
|
-samplecode $(sample_dir)/Spinner \
|
|
|
|
resources/samples/Spinner "Spinner" \
|
|
|
|
-samplecode $(sample_dir)/SpinnerTest \
|
|
|
|
resources/samples/SpinnerTest "SpinnerTest" \
|
2011-02-10 18:57:45 -08:00
|
|
|
-samplecode $(sample_dir)/StackWidget \
|
2011-02-15 10:58:34 -08:00
|
|
|
resources/samples/StackWidget "StackView Widget" \
|
2010-05-08 21:22:11 -07:00
|
|
|
-samplecode $(sample_dir)/TicTacToeLib \
|
|
|
|
resources/samples/TicTacToeLib "TicTacToeLib" \
|
|
|
|
-samplecode $(sample_dir)/TicTacToeMain \
|
|
|
|
resources/samples/TicTacToeMain "TicTacToeMain" \
|
2011-05-02 17:49:05 -07:00
|
|
|
-samplecode $(sample_dir)/USB \
|
|
|
|
resources/samples/USB "USB" \
|
2011-02-10 19:11:33 -08:00
|
|
|
-samplecode $(sample_dir)/WeatherListWidget \
|
2011-02-15 10:58:34 -08:00
|
|
|
resources/samples/WeatherListWidget "Weather List Widget" \
|
2009-12-10 16:25:06 -08:00
|
|
|
-samplecode $(sample_dir)/Wiktionary \
|
|
|
|
resources/samples/Wiktionary "Wiktionary" \
|
|
|
|
-samplecode $(sample_dir)/WiktionarySimple \
|
2010-02-12 14:09:55 -08:00
|
|
|
resources/samples/WiktionarySimple "Wiktionary (Simplified)" \
|
|
|
|
-samplecode $(sample_dir)/VoiceRecognitionService \
|
2010-06-23 16:53:35 -07:00
|
|
|
resources/samples/VoiceRecognitionService "Voice Recognition Service" \
|
2011-05-19 13:21:48 +01:00
|
|
|
-samplecode $(sample_dir)/VoicemailProviderDemo \
|
|
|
|
resources/samples/VoicemailProviderDemo "Voicemail Provider Demo" \
|
2010-06-23 16:53:35 -07:00
|
|
|
-samplecode $(sample_dir)/XmlAdapters \
|
2011-06-23 10:43:27 +01:00
|
|
|
resources/samples/XmlAdapters "XML Adapters" \
|
|
|
|
-samplecode $(sample_dir)/TtsEngine \
|
|
|
|
resources/samples/TtsEngine "Text To Speech Engine"
|
2009-03-03 19:31:44 -08:00
|
|
|
|
2009-08-05 19:04:18 -07:00
|
|
|
## SDK version identifiers used in the published docs
|
|
|
|
# major[.minor] version for current SDK. (full releases only)
|
2011-05-05 14:49:47 -07:00
|
|
|
framework_docs_SDK_VERSION:=3.1
|
2009-08-05 19:04:18 -07:00
|
|
|
# release version (ie "Release x") (full releases only)
|
2011-02-07 16:35:46 -08:00
|
|
|
framework_docs_SDK_REL_ID:=1
|
2009-04-20 17:56:34 -07:00
|
|
|
|
|
|
|
framework_docs_LOCAL_DROIDDOC_OPTIONS += \
|
|
|
|
-hdf sdk.version $(framework_docs_SDK_VERSION) \
|
2010-11-29 14:28:13 -08:00
|
|
|
-hdf sdk.rel.id $(framework_docs_SDK_REL_ID) \
|
2011-02-07 16:35:46 -08:00
|
|
|
-hdf sdk.preview 0 \
|
2009-03-03 19:31:44 -08:00
|
|
|
|
2009-07-20 11:57:12 -04:00
|
|
|
# ==== the api stubs and current.xml ===========================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
|
|
|
LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
|
|
|
|
LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
|
|
|
|
LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
|
|
|
|
LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
|
|
|
|
LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
|
|
|
|
LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
|
2010-09-16 11:56:03 -04:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
2009-07-20 11:57:12 -04:00
|
|
|
|
|
|
|
LOCAL_MODULE := api-stubs
|
|
|
|
|
|
|
|
LOCAL_DROIDDOC_OPTIONS:=\
|
|
|
|
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
|
|
|
-stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_stubs_current_intermediates/src \
|
2011-03-09 13:34:39 -08:00
|
|
|
-api $(INTERNAL_PLATFORM_API_FILE) \
|
2009-07-20 11:57:12 -04:00
|
|
|
-nodocs
|
|
|
|
|
|
|
|
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
|
|
|
|
|
2010-09-01 10:41:35 -07:00
|
|
|
LOCAL_UNINSTALLABLE_MODULE := true
|
|
|
|
|
2009-07-20 11:57:12 -04:00
|
|
|
include $(BUILD_DROIDDOC)
|
|
|
|
|
2010-05-07 15:00:10 -07:00
|
|
|
# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
|
|
|
|
$(full_target): $(framework_built) $(gen)
|
2009-07-20 11:57:12 -04:00
|
|
|
$(INTERNAL_PLATFORM_API_FILE): $(full_target)
|
|
|
|
$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE))
|
|
|
|
|
2010-08-27 17:13:22 -04:00
|
|
|
# ==== check javadoc comments but don't generate docs ========
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
|
|
|
LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
|
|
|
|
LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
|
|
|
|
LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
|
|
|
|
LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
|
|
|
|
LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
|
|
|
|
LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
|
2010-09-16 11:56:03 -04:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
2010-08-27 17:13:22 -04:00
|
|
|
|
|
|
|
LOCAL_MODULE := doc-comment-check
|
|
|
|
|
|
|
|
LOCAL_DROIDDOC_OPTIONS:=\
|
|
|
|
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
|
|
|
-parsecomments
|
|
|
|
|
|
|
|
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
|
|
|
|
|
2010-09-01 10:41:35 -07:00
|
|
|
LOCAL_UNINSTALLABLE_MODULE := true
|
|
|
|
|
2010-08-27 17:13:22 -04:00
|
|
|
include $(BUILD_DROIDDOC)
|
|
|
|
|
|
|
|
# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
|
|
|
|
$(full_target): $(framework_built) $(gen)
|
|
|
|
|
|
|
|
droidcore: doc-comment-check-docs
|
|
|
|
|
2009-03-03 19:31:44 -08:00
|
|
|
# ==== static html in the sdk ==================================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
|
|
|
LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
|
|
|
|
LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
|
|
|
|
LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
|
|
|
|
LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
|
|
|
|
LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
|
|
|
|
LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
|
2010-09-16 11:56:03 -04:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
LOCAL_MODULE := offline-sdk
|
|
|
|
|
|
|
|
LOCAL_DROIDDOC_OPTIONS:=\
|
|
|
|
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
2009-11-19 20:19:49 -08:00
|
|
|
$(web_docs_sample_code_flags) \
|
2009-11-20 10:44:21 -08:00
|
|
|
-offlinemode \
|
2009-03-03 19:31:44 -08:00
|
|
|
-title "Android SDK" \
|
|
|
|
-proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
|
|
|
|
-todo $(OUT_DOCS)/$(LOCAL_MODULE)-docs-todo.html \
|
|
|
|
-sdkvalues $(OUT_DOCS) \
|
2010-08-25 12:12:57 -07:00
|
|
|
-hdf android.whichdoc offline
|
2009-08-05 19:04:18 -07:00
|
|
|
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
|
|
|
|
|
|
|
|
include $(BUILD_DROIDDOC)
|
|
|
|
|
|
|
|
static_doc_index_redirect := $(out_dir)/index.html
|
|
|
|
$(static_doc_index_redirect): \
|
2009-04-20 17:56:34 -07:00
|
|
|
$(LOCAL_PATH)/docs/docs-documentation-redirect.html | $(ACP)
|
2009-03-03 19:31:44 -08:00
|
|
|
$(hide) mkdir -p $(dir $@)
|
|
|
|
$(hide) $(ACP) $< $@
|
|
|
|
|
|
|
|
$(full_target): $(static_doc_index_redirect)
|
|
|
|
$(full_target): $(framework_built)
|
|
|
|
|
|
|
|
# ==== docs for the web (on the google app engine server) =======================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
|
|
|
LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
|
|
|
|
LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
|
|
|
|
LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
|
|
|
|
LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
|
|
|
|
LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
|
|
|
|
LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
|
2010-09-16 11:56:03 -04:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
LOCAL_MODULE := online-sdk
|
|
|
|
|
|
|
|
LOCAL_DROIDDOC_OPTIONS:= \
|
2009-04-20 17:56:34 -07:00
|
|
|
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
|
|
|
$(web_docs_sample_code_flags) \
|
|
|
|
-toroot / \
|
2009-07-07 17:37:13 -07:00
|
|
|
-hdf android.whichdoc online \
|
|
|
|
-hdf template.showLanguageMenu true
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
|
|
|
|
|
|
|
|
include $(BUILD_DROIDDOC)
|
|
|
|
|
2010-08-25 18:13:02 -07:00
|
|
|
# explicitly specify that online-sdk depends on framework-res and any generated docs
|
2010-08-25 08:21:15 -04:00
|
|
|
$(full_target): framework-res-package-target
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
# ==== docs that have all of the stuff that's @hidden =======================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
|
|
|
|
LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
|
|
|
|
LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) framework
|
|
|
|
LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
|
|
|
|
LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
|
|
|
|
LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
|
2011-05-17 13:12:42 -07:00
|
|
|
LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
|
2010-09-16 11:56:03 -04:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
LOCAL_MODULE := hidden
|
|
|
|
LOCAL_DROIDDOC_OPTIONS:=\
|
|
|
|
$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
|
2010-08-25 12:12:57 -07:00
|
|
|
-title "Android SDK - Including hidden APIs."
|
|
|
|
# -hidden
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
|
|
|
|
|
|
|
|
include $(BUILD_DROIDDOC)
|
|
|
|
|
|
|
|
# Build ext.jar
|
|
|
|
# ============================================================
|
|
|
|
|
2010-10-19 14:54:05 -07:00
|
|
|
# NOTICE notes for non-obvious sections
|
|
|
|
# apache-http - covered by the Apache Commons section.
|
|
|
|
|
|
|
|
|
2009-03-03 19:31:44 -08:00
|
|
|
ext_dirs := \
|
2010-08-05 12:17:37 +08:00
|
|
|
../../external/nist-sip/java \
|
2009-03-03 19:31:44 -08:00
|
|
|
../../external/apache-http/src \
|
2010-06-07 10:25:53 +08:00
|
|
|
../../external/tagsoup/src \
|
|
|
|
../../external/libphonenumber/java/src
|
2009-03-03 19:31:44 -08:00
|
|
|
|
|
|
|
ext_src_files := $(call all-java-files-under,$(ext_dirs))
|
|
|
|
|
2010-06-07 10:25:53 +08:00
|
|
|
ext_res_dirs := \
|
|
|
|
../../external/libphonenumber/java/src
|
|
|
|
|
2009-03-03 19:31:44 -08:00
|
|
|
# ==== the library =========================================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := $(ext_src_files)
|
|
|
|
|
|
|
|
LOCAL_NO_STANDARD_LIBRARIES := true
|
|
|
|
LOCAL_JAVA_LIBRARIES := core
|
2010-06-07 10:25:53 +08:00
|
|
|
LOCAL_JAVA_RESOURCE_DIRS := $(ext_res_dirs)
|
2010-09-16 17:50:43 -07:00
|
|
|
LOCAL_MODULE_TAGS := optional
|
2009-03-03 19:31:44 -08:00
|
|
|
LOCAL_MODULE := ext
|
|
|
|
|
2010-03-16 19:08:54 -07:00
|
|
|
LOCAL_NO_EMMA_INSTRUMENT := true
|
|
|
|
LOCAL_NO_EMMA_COMPILE := true
|
|
|
|
|
2011-04-01 15:49:41 -07:00
|
|
|
LOCAL_DX_FLAGS := --core-library
|
|
|
|
|
2009-03-03 19:31:44 -08:00
|
|
|
include $(BUILD_JAVA_LIBRARY)
|
|
|
|
|
|
|
|
|
|
|
|
# Include subdirectory makefiles
|
|
|
|
# ============================================================
|
|
|
|
|
|
|
|
# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
|
|
|
|
# team really wants is to build the stuff defined by this makefile.
|
|
|
|
ifeq (,$(ONE_SHOT_MAKEFILE))
|
|
|
|
include $(call first-makefiles-under,$(LOCAL_PATH))
|
|
|
|
endif
|