OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | 3 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
4 source $SCRIPT_DIR/android_setup.sh | 4 source $SCRIPT_DIR/android_setup.sh |
5 | 5 |
6 for arg in ${APP_ARGS} | 6 for arg in ${APP_ARGS[@]} |
7 do | 7 do |
8 if [[ "${arg}" == "--use-ccache" ]]; | 8 if [[ "${arg}" == "--use-ccache" ]]; |
9 then | 9 then |
10 if [[ -z "$ANDROID_MAKE_CCACHE" ]]; | 10 if [[ -z "$ANDROID_MAKE_CCACHE" ]]; |
11 then | 11 then |
12 ANDROID_MAKE_CCACHE=$(which ccache) | 12 ANDROID_MAKE_CCACHE=$(which ccache) |
13 fi | 13 fi |
14 else | 14 else |
15 makeVars=("${makeVars[@]}" "${arg}") | 15 makeVars=("${makeVars[@]}" "${arg}") |
16 fi | 16 fi |
(...skipping 10 matching lines...) Expand all Loading... |
27 fi | 27 fi |
28 | 28 |
29 # write the out directory into the .android_config file | 29 # write the out directory into the .android_config file |
30 echo $SKIA_OUT > .android_config | 30 echo $SKIA_OUT > .android_config |
31 | 31 |
32 make ${makeVars[@]} | 32 make ${makeVars[@]} |
33 if [ $? != 0 ] | 33 if [ $? != 0 ] |
34 then | 34 then |
35 exit 1; | 35 exit 1; |
36 fi | 36 fi |
OLD | NEW |