OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # android_run_skia: starts the correct skia program on the device, prints the | 3 # android_run_skia: starts the correct skia program on the device, prints the |
4 # output, and kills the app if interrupted. | 4 # output, and kills the app if interrupted. |
5 | 5 |
6 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | 6 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
| 7 SKIP_TOOLCHAIN_SETUP="true" |
7 source $SCRIPT_DIR/android_setup.sh | 8 source $SCRIPT_DIR/android_setup.sh |
8 source $SCRIPT_DIR/utils/setup_adb.sh | 9 source $SCRIPT_DIR/utils/setup_adb.sh |
9 | 10 |
10 if [ ! -f "${SKIA_OUT}/$BUILDTYPE/lib/lib${APP_ARGS[0]}.so" ]; | 11 if [ ! -f "${SKIA_OUT}/$BUILDTYPE/lib/lib${APP_ARGS[0]}.so" ]; |
11 then | 12 then |
12 echo "Unable to find $BUILDTYPE ${APP_ARGS[0]} library" | 13 echo "Unable to find $BUILDTYPE ${APP_ARGS[0]} library" |
13 exit 1 | 14 exit 1 |
14 fi | 15 fi |
15 | 16 |
16 verbose "pushing binaries onto the device..." | 17 verbose "pushing binaries onto the device..." |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 echo "***********************************************************************" | 64 echo "***********************************************************************" |
64 exit 1 | 65 exit 1 |
65 fi | 66 fi |
66 | 67 |
67 echo "EXIT_CODE is ${EXIT_CODE}" | 68 echo "EXIT_CODE is ${EXIT_CODE}" |
68 if [ $'0\r' != "${EXIT_CODE}" ]; then | 69 if [ $'0\r' != "${EXIT_CODE}" ]; then |
69 if [ $LOGCAT ]; then $ADB $DEVICE_SERIAL logcat -d; fi | 70 if [ $LOGCAT ]; then $ADB $DEVICE_SERIAL logcat -d; fi |
70 exit 1 | 71 exit 1 |
71 fi | 72 fi |
72 exit 0 | 73 exit 0 |
OLD | NEW |