OLD | NEW |
| (Empty) |
1 #!/bin/bash | |
2 | |
3 # This script builds Skia inside of a ChromeOS chroot. It is intended to be run | |
4 # either while inside the chroot or indirectly by running chromeos_make which | |
5 # enters the chroot and runs this script. | |
6 | |
7 makeVars="" | |
8 deviceID="" | |
9 | |
10 while (( "$#" )); do | |
11 | |
12 if [[ $(echo "$1" | grep "^-d$") != "" ]]; | |
13 then | |
14 deviceID="$2" | |
15 shift | |
16 else | |
17 makeVars="$makeVars $1" | |
18 fi | |
19 | |
20 shift | |
21 done | |
22 | |
23 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
24 | |
25 source $SCRIPT_DIR/chromeos_setup.sh | |
26 | |
27 setup_device $deviceID | |
28 returnVal=$? | |
29 if [ $returnVal != 0 ] | |
30 then | |
31 exit 1; | |
32 fi | |
33 | |
34 python gyp_skia | |
35 make ${makeVars} | |
36 returnVal=$? | |
37 if [ $returnVal != 0 ] | |
38 then | |
39 exit 1; | |
40 fi | |
41 | |
42 echo > .cros_build_successful | |
OLD | NEW |