aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/scripts/build_server.sh
diff options
context:
space:
mode:
authorRaphael Moll <ralf@android.com>2012-08-09 16:42:36 -0700
committerRaphael Moll <ralf@android.com>2012-09-26 13:45:11 -0700
commitbe6194b8193acb4a7e04fc70bf0ce49e67530f96 (patch)
tree914e1b8f25157b9eeb4763ee3dc6142cc52c15e5 /eclipse/scripts/build_server.sh
parent342daf817004104ff953331b3c80303867f93125 (diff)
downloadsdk-be6194b8193acb4a7e04fc70bf0ce49e67530f96.zip
sdk-be6194b8193acb4a7e04fc70bf0ce49e67530f96.tar.gz
sdk-be6194b8193acb4a7e04fc70bf0ce49e67530f96.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: I65d86e6a2743e9bac2ee626b636e559613f6d918
Diffstat (limited to 'eclipse/scripts/build_server.sh')
-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
+