1 #!/bin/bash 2 #----------------------------------------------------------------------------| 3 # Creates the links to use hierarchyviewer{ui}lib in the eclipse-ide plugin. 4 # Run this from sdk/eclipse/scripts 5 #----------------------------------------------------------------------------| 6 7 set -e 8 9 D=`dirname "$0"` 10 source $D/common_setup.sh 11 12 # cd to the top android directory 13 cd "$D/../../../" 14 15 BASE="sdk/eclipse/plugins/com.android.ide.eclipse.hierarchyviewer" 16 DEST=$BASE/libs 17 18 mkdir -p $DEST 19 20 COPY_LIBS="hierarchyviewerlib" 21 ALL_LIBS="$COPY_LIBS swtmenubar" 22 echo "make java libs ..." 23 make -j3 showcommands $ALL_LIBS || die "Hierarchy Viewer: Fail to build one of $ALL_LIBS." 24 25 for LIB in $COPY_LIBS; do 26 cpfile $DEST out/host/$PLATFORM/framework/$LIB.jar 27 done 28