aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/scripts
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2010-06-22 17:55:45 -0700
committerXavier Ducrohet <xav@android.com>2010-06-24 12:45:23 -0700
commite312b2800018fcfe7fad0b1c883127f1364a17d0 (patch)
tree96387c7e4c71e7ffa79d08223da9cc512fd3371f /eclipse/scripts
parent44bee48407df99d758a36b24ae68077006de0c63 (diff)
downloadsdk-e312b2800018fcfe7fad0b1c883127f1364a17d0.zip
sdk-e312b2800018fcfe7fad0b1c883127f1364a17d0.tar.gz
sdk-e312b2800018fcfe7fad0b1c883127f1364a17d0.tar.bz2
Make ddmlib/ddmuilib jar files inside the ddms plug-in instead of symlinks.
Also cleaned up the abstraction layer to load images from ddmuilib since its image are now always located inside ddmuilib jar. Change-Id: Id9d283df18a05b7b5593e4593e90dac6e5548b94
Diffstat (limited to 'eclipse/scripts')
-rwxr-xr-xeclipse/scripts/create_adt_symlinks.sh5
-rwxr-xr-xeclipse/scripts/create_ddms_symlinks.sh47
2 files changed, 21 insertions, 31 deletions
diff --git a/eclipse/scripts/create_adt_symlinks.sh b/eclipse/scripts/create_adt_symlinks.sh
index c5a15e4..4fd99fb 100755
--- a/eclipse/scripts/create_adt_symlinks.sh
+++ b/eclipse/scripts/create_adt_symlinks.sh
@@ -10,10 +10,12 @@ set -e # fail early
D=`dirname "$0"`
cd "$D/../../../"
-DEST="sdk/eclipse/plugins/com.android.ide.eclipse.adt"
+DEST="sdk/eclipse/plugins/com.android.ide.eclipse.adt/libs"
# computes "../.." from DEST to here (in /android)
BACK=`echo $DEST | sed 's@[^/]*@..@g'`
+mkdir -p $DEST
+
LIBS="sdkstats androidprefs layoutlib_api layoutlib_utils ninepatch sdklib sdkuilib"
echo "make java libs ..."
@@ -21,6 +23,7 @@ make -j3 showcommands $LIBS || die "ADT: Fail to build one of $LIBS."
echo "Copying java libs to $DEST"
+
HOST=`uname`
if [ "$HOST" == "Linux" ]; then
for LIB in $LIBS; do
diff --git a/eclipse/scripts/create_ddms_symlinks.sh b/eclipse/scripts/create_ddms_symlinks.sh
index 614e8a3..9913de9 100755
--- a/eclipse/scripts/create_ddms_symlinks.sh
+++ b/eclipse/scripts/create_ddms_symlinks.sh
@@ -7,7 +7,10 @@
set -e
HOST=`uname`
+
if [ "${HOST:0:6}" == "CYGWIN" ]; then
+ PLATFORM="windows-x86"
+
# We can't use symlinks under Cygwin
function cpfile { # $1=dest $2=source
@@ -19,6 +22,14 @@ if [ "${HOST:0:6}" == "CYGWIN" ]; then
}
else
+ if [ "$HOST" == "Linux" ]; then
+ PLATFORM="linux-x86"
+ elif [ "$HOST" == "Darwin" ]; then
+ PLATFORM="darwin-x86"
+ else
+ echo "Unsupported platform ($HOST). Nothing done."
+ fi
+
# For all other systems which support symlinks
# computes the "reverse" path, e.g. "a/b/c" => "../../.."
@@ -39,41 +50,17 @@ fi
D=`dirname "$0"`
cd "$D/../../../"
-
BASE="sdk/eclipse/plugins/com.android.ide.eclipse.ddms"
-
DEST=$BASE/libs
+# computes "../.." from DEST to here (in /android)
+BACK=`echo $DEST | sed 's@[^/]*@..@g'`
+
mkdir -p $DEST
for i in prebuilt/common/jfreechart/*.jar; do
cpfile $DEST $i
done
-DEST=$BASE/src/com/android
-mkdir -p $DEST
-for i in sdk/ddms/libs/ddmlib/src/com/android/ddmlib \
- sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib ; do
- cpdir $DEST $i
+LIBS="ddmlib ddmuilib"
+for LIB in $LIBS; do
+ cpfile $DEST $BACK/out/host/$PLATFORM/framework/$LIB.jar
done
-
-DEST=$BASE/icons
-mkdir -p $DEST
-for i in \
- add.png \
- backward.png \
- clear.png \
- d.png debug-attach.png debug-error.png debug-wait.png delete.png device.png down.png \
- e.png edit.png empty.png emulator.png \
- forward.png \
- gc.png \
- heap.png halt.png hprof.png \
- i.png importBug.png \
- load.png \
- pause.png play.png pull.png push.png \
- save.png \
- thread.png tracing_start.png tracing_stop.png \
- up.png \
- v.png \
- w.png warning.png ; do
- cpfile $DEST sdk/ddms/libs/ddmuilib/src/resources/images/$i
-done
-