aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/scripts
diff options
context:
space:
mode:
authorRaphael Moll <ralf@android.com>2012-08-09 16:42:36 -0700
committerRaphael Moll <ralf@android.com>2012-10-01 16:24:15 -0700
commitb95e95f261f808d430afd0db5c3e279bfa9addfd (patch)
tree1d4fbaa94a66c2071db45298dac40f1f76622921 /eclipse/scripts
parent5ef3136fe8c58cd748ad36cda8acbeaa32a1a4ed (diff)
downloadsdk-b95e95f261f808d430afd0db5c3e279bfa9addfd.zip
sdk-b95e95f261f808d430afd0db5c3e279bfa9addfd.tar.gz
sdk-b95e95f261f808d430afd0db5c3e279bfa9addfd.tar.bz2
Android makefile for ADT Eclipse IDE.
The ADT IDE is not part of a full "make sdk". Instead it is invoked as part of sdk/eclipse/build_server.sh. Change-Id: Ifdf1dfa2cd6a655b1821a0886b0c78ccf5d6854d
Diffstat (limited to 'eclipse/scripts')
-rwxr-xr-xeclipse/scripts/build_server.sh22
1 files changed, 16 insertions, 6 deletions
diff --git a/eclipse/scripts/build_server.sh b/eclipse/scripts/build_server.sh
index 4c27673..b3b86b7 100755
--- a/eclipse/scripts/build_server.sh
+++ b/eclipse/scripts/build_server.sh
@@ -6,7 +6,7 @@
# $2: Optional build number. If present, will be appended to the date qualifier.
# The build number cannot contain spaces *nor* periods (dashes are ok.)
# -z: Optional, prevents the final zip and leaves the udate-site directory intact.
-# -i: Optional, if present, the Google internal update site will be built. Otherwise,
+# -i: Optional, if present, the Google internal update site will be built. Otherwise,
# the external site will be built
# Workflow:
# - make dx, ddms, ping
@@ -57,16 +57,16 @@ function check_params() {
# Check dest dir exists
[ -n "$DEST_DIR" ] || die "Usage: $0 <destination-directory> [build-number]"
[ -d "$DEST_DIR" ] || die "Destination directory $DEST_DIR must exist."
-}
-
-function build_plugin {
- sdk/eclipse/scripts/create_all_symlinks.sh
# Qualifier is "v" followed by date/time in YYYYMMDDHHSS format and the optional
# build number.
DATE=`date +v%Y%m%d%H%M`
QUALIFIER="$DATE"
[ -n "$BUILD_NUMBER" ] && QUALIFIER="${QUALIFIER}-${BUILD_NUMBER}"
+}
+
+function build_plugin() {
+ sdk/eclipse/scripts/create_all_symlinks.sh
# Compute the final directory name and remove any leftovers from previous
# runs if any.
@@ -106,6 +106,16 @@ function build_plugin {
fi
}
+function build_adt_ide() {
+ ADT_IDE_DEST_DIR="$DEST_DIR" \
+ ADT_IDE_QUALIFIER="$QUALIFIER" \
+ make PRODUCT-sdk-adt_eclipse_ide
+}
+
get_params "$@"
check_params
-build_plugin
+( build_plugin )
+if [[ -z $INTERNAL_BUILD ]]; then
+ ( build_adt_ide )
+fi
+