OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 # Copyright 2014 Google Inc. | 3 # Copyright 2014 Google Inc. |
4 # | 4 # |
5 # Use of this source code is governed by a BSD-style license that can be | 5 # Use of this source code is governed by a BSD-style license that can be |
6 # found in the LICENSE file. | 6 # found in the LICENSE file. |
7 | 7 |
8 set -e # When any command fails, the shell will immediately exit. | 8 set -e # When any command fails, the shell will immediately exit. |
9 | 9 |
10 usage() { | 10 usage() { |
(...skipping 26 matching lines...) Expand all Loading... |
37 case $opt in | 37 case $opt in |
38 c) export CC="$OPTARG" ;; | 38 c) export CC="$OPTARG" ;; |
39 x) export CXX="$OPTARG" ;; | 39 x) export CXX="$OPTARG" ;; |
40 o) export SKIA_OUT="$OPTARG";; | 40 o) export SKIA_OUT="$OPTARG";; |
41 t) BUILD_TYPE="$OPTARG";; | 41 t) BUILD_TYPE="$OPTARG";; |
42 h) usage || exit;; | 42 h) usage || exit;; |
43 ?) echo "unknown option '$OPTARG'" >&2; | 43 ?) echo "unknown option '$OPTARG'" >&2; |
44 usage || exit;; | 44 usage || exit;; |
45 esac | 45 esac |
46 done | 46 done |
| 47 OPTIND=1 # Reset this variable for calling barelinux_make with -t command flag. |
47 | 48 |
48 export GYP_DEFINES="${GYP_DEFINES} \ | 49 export GYP_DEFINES="${GYP_DEFINES} \ |
49 skia_gpu=0 \ | 50 skia_gpu=0 \ |
50 skia_arch_type=arm64 \ | 51 skia_arch_type=arm64 \ |
51 " | 52 " |
52 | 53 |
53 . "$(dirname "$0")/barelinux_make" -t "$BUILD_TYPE" | 54 . "$(dirname "$0")/barelinux_make" -t "$BUILD_TYPE" |
54 | 55 |
OLD | NEW |