1#!/bin/bash 2#----------------------------------------------------------------------------| 3# Creates the links to use ddm{ui}lib in the eclipse-ide plugin. 4# Run this from sdk/eclipse/scripts 5#----------------------------------------------------------------------------| 6 7set -e 8 9D=`dirname "$0"` 10source $D/common_setup.sh 11 12# cd to the top android directory 13cd "$D/../../../" 14 15BASE="sdk/eclipse/plugins/com.android.ide.eclipse.ddms" 16DEST=$BASE/libs 17 18mkdir -p $DEST 19for i in prebuilt/common/jfreechart/*.jar; do 20 cpfile $DEST $i 21done 22 23COPY_LIBS="ddmlib ddmuilib" 24ALL_LIBS="$COPY_LIBS swtmenubar" 25echo "make java libs ..." 26make -j3 showcommands $ALL_LIBS || die "DDMS: Fail to build one of $ALL_LIBS." 27 28for LIB in $COPY_LIBS; do 29 cpfile $DEST out/host/$PLATFORM/framework/$LIB.jar 30done 31 32if [ "${HOST:0:6}" == "CYGWIN" ]; then 33 # On Windows we used to make a hard copy of the ddmlib/ddmuilib 34 # under the plugin source tree. Now that we're using external JARs 35 # we need to actually remove these obsolete sources. 36 for i in ddmlib ddmuilib ; do 37 DIR=$BASE/src/com/android/$i 38 if [ -d $DIR ]; then 39 rm -rfv $BASE/src/com/android/$i 40 fi 41 done 42fi 43