Home | History | Annotate | Download | only in scripts
      1 #!/bin/bash
      2 #----------------------------------------------------------------------------|
      3 # Creates the links to use gldebugger 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.gldebugger"
     16 DEST=$BASE/libs
     17 
     18 mkdir -p $DEST
     19 
     20 LIBS="host-libprotobuf-java-2.3.0-lite liblzf sdklib"
     21 echo "make java libs ..."
     22 make -j3 $LIBS || die "GL Debugger: Fail to build one of $LIBS."
     23 
     24 for LIB in $LIBS; do
     25     cpfile $DEST out/host/$PLATFORM/framework/$LIB.jar
     26 done
     27