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 source $SCRIPT_DIR/android_setup.sh | 7 source $SCRIPT_DIR/android_setup.sh |
8 source $SCRIPT_DIR/utils/setup_adb.sh | 8 source $SCRIPT_DIR/utils/setup_adb.sh |
9 | 9 |
10 configuration="Debug" | 10 configuration="Debug" |
(...skipping 15 matching lines...) Expand all Loading... |
26 echo "Unable to find the ${runVars[0]} library" | 26 echo "Unable to find the ${runVars[0]} library" |
27 exit 1 | 27 exit 1 |
28 fi | 28 fi |
29 | 29 |
30 adb_push_if_needed "${SKIA_OUT}/${configuration}/skia_launcher" /data/local/tmp | 30 adb_push_if_needed "${SKIA_OUT}/${configuration}/skia_launcher" /data/local/tmp |
31 adb_push_if_needed "${SKIA_OUT}/${configuration}/lib.target/libskia_android.so"
/data/local/tmp | 31 adb_push_if_needed "${SKIA_OUT}/${configuration}/lib.target/libskia_android.so"
/data/local/tmp |
32 adb_push_if_needed "${SKIA_OUT}/${configuration}/lib.target/lib${runVars[0]}.so"
/data/local/tmp | 32 adb_push_if_needed "${SKIA_OUT}/${configuration}/lib.target/lib${runVars[0]}.so"
/data/local/tmp |
33 | 33 |
34 | 34 |
35 $ADB ${DEVICE_SERIAL} shell /data/local/tmp/skia_launcher ${runVars[@]} | 35 $ADB ${DEVICE_SERIAL} shell /data/local/tmp/skia_launcher ${runVars[@]} |
| 36 exit $? |
OLD | NEW |