Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Side by Side Diff: platform_tools/android/bin/android_make

Issue 22411004: Re-organize Android scripts (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 deviceID="" 3 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4 source $SCRIPT_DIR/android_setup.sh
4 5
5 while (( "$#" )); do 6 for arg in ${APP_ARGS}
6 7 do
7 if [[ $(echo "$1" | grep "^-d$") != "" ]]; 8 if [[ "${arg}" == "--use-ccache" ]];
8 then
9 deviceID="$2"
10 shift
11 elif [[ "$1" == "--use-ccache" ]];
12 then 9 then
13 if [[ -z "$ANDROID_MAKE_CCACHE" ]]; 10 if [[ -z "$ANDROID_MAKE_CCACHE" ]];
14 then 11 then
15 ANDROID_MAKE_CCACHE=$(which ccache) 12 ANDROID_MAKE_CCACHE=$(which ccache)
16 fi 13 fi
17 else 14 else
18 makeVars=("${makeVars[@]}" "$1") 15 makeVars=("${makeVars[@]}" "${arg}")
19 fi 16 fi
20 17
21 shift 18 shift
22 done 19 done
23 20
24 if [[ -n "$ANDROID_MAKE_CCACHE" ]]; then 21 if [[ -n "$ANDROID_MAKE_CCACHE" ]]; then
25 $ANDROID_MAKE_CCACHE --version &> /dev/null 22 $ANDROID_MAKE_CCACHE --version &> /dev/null
26 if [[ "$?" != "0" ]]; then 23 if [[ "$?" != "0" ]]; then
27 echo "Unable to find ccache!" 24 echo "Unable to find ccache!"
28 exit 1 25 exit 1
29 fi 26 fi
30 fi 27 fi
31 28
32 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
33
34 # hack for x86 support in android_setup.sh
35 if [ "$deviceID" == "x86" ] || [ "$deviceID" == "razr_i" ]
36 then
37 ANDROID_ARCH="x86"
38 fi
39
40 source $SCRIPT_DIR/android_setup.sh
41
42 setup_device $deviceID
43 returnVal=$?
44 if [ $returnVal != 0 ]
45 then
46 exit 1;
47 fi
48
49 # write the out directory into the .android_config file 29 # write the out directory into the .android_config file
50 echo $SKIA_OUT > .android_config 30 echo $SKIA_OUT > .android_config
51 31
52 make ${makeVars[@]} 32 make ${makeVars[@]}
53 if [ $? != 0 ] 33 if [ $? != 0 ]
54 then 34 then
55 exit 1; 35 exit 1;
56 fi 36 fi
OLDNEW
« no previous file with comments | « platform_tools/android/bin/android_gdbserver ('k') | platform_tools/android/bin/android_setup.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698