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

Side by Side Diff: platform_tools/barelinux/bin/barelinux_make

Issue 196823007: fix error in linux makefile for some shells (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 usage() { 8 usage() {
9 cat >&2 <<EOF 9 cat >&2 <<EOF
10 barelinux_make - this script builds a version of skia that does not 10 barelinux_make - this script builds a version of skia that does not
(...skipping 16 matching lines...) Expand all
27 skia_gpu=0 skia_arch_type=arm skia_arch_width=64 \\ 27 skia_gpu=0 skia_arch_type=arm skia_arch_width=64 \\
28 armv7=1 armv8=1 arm_neon=0 arm_thumb=0 28 armv7=1 armv8=1 arm_neon=0 arm_thumb=0
29 EOF 29 EOF
30 return 1 30 return 1
31 } 31 }
32 32
33 # BUILD_TYPE should be one of: 33 # BUILD_TYPE should be one of:
34 # Coverage, Debug, Release, or Release_Developer 34 # Coverage, Debug, Release, or Release_Developer
35 BUILD_TYPE='Debug' 35 BUILD_TYPE='Debug'
36 36
37 unset OPTIND
38 while getopts ":c:x:o:t:h" opt ; do 37 while getopts ":c:x:o:t:h" opt ; do
39 case $opt in 38 case $opt in
40 c) export CC="$OPTARG" ;; 39 c) export CC="$OPTARG" ;;
41 x) export CXX="$OPTARG" ;; 40 x) export CXX="$OPTARG" ;;
42 o) export SKIA_OUT="$OPTARG";; 41 o) export SKIA_OUT="$OPTARG";;
43 t) BUILD_TYPE="$OPTARG";; 42 t) BUILD_TYPE="$OPTARG";;
44 h) usage || exit;; 43 h) usage || exit;;
45 ?) echo "unknown option '$OPTARG'" >&2; 44 ?) echo "unknown option '$OPTARG'" >&2;
46 usage || exit;; 45 usage || exit;;
47 esac 46 esac
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 skia_poppler_enabled=0 \ 86 skia_poppler_enabled=0 \
88 skia_skip_gui=1 \ 87 skia_skip_gui=1 \
89 " 88 "
90 89
91 try "${SKIA_SRC_DIR}/gyp_skia" || exit 90 try "${SKIA_SRC_DIR}/gyp_skia" || exit
92 91
93 try test -d "${SKIA_OUT}/${BUILD_TYPE}" || exit 92 try test -d "${SKIA_OUT}/${BUILD_TYPE}" || exit
94 93
95 try ninja -C "${SKIA_OUT}/${BUILD_TYPE}" || exit 94 try ninja -C "${SKIA_OUT}/${BUILD_TYPE}" || exit
96 95
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698