OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 set -o nounset | 6 set -o nounset |
7 set -o errexit | 7 set -o errexit |
8 | 8 |
9 SCRIPT_DIR="$(cd $(dirname $0) && pwd)" | 9 SCRIPT_DIR="$(cd $(dirname $0) && pwd)" |
10 cd ${SCRIPT_DIR} | 10 cd ${SCRIPT_DIR} |
11 | 11 |
12 OUT_DIR=out | 12 OUT_DIR=out |
13 SMOOTHLIFE_URL=https://github.com/binji/smoothnacl | 13 SMOOTHLIFE_URL=https://github.com/binji/smoothnacl |
14 SMOOTHLIFE_DIR=${OUT_DIR}/smoothlife | 14 SMOOTHLIFE_DIR=${OUT_DIR}/smoothlife |
15 SMOOTHLIFE_SHA=63f115f2393aa629aab1403948cbfb28acc54360 | 15 SMOOTHLIFE_SHA=11f22815f48a7f3044ed72a673d0e05cae343481 |
16 | 16 |
17 if [ -z "${NACL_SDK_ROOT:-}" ]; then | 17 if [ -z "${NACL_SDK_ROOT:-}" ]; then |
18 echo "-------------------------------------------------------------------" | 18 echo "-------------------------------------------------------------------" |
19 echo "NACL_SDK_ROOT is unset." | 19 echo "NACL_SDK_ROOT is unset." |
20 echo "This environment variable needs to be pointed at some version of" | 20 echo "This environment variable needs to be pointed at some version of" |
21 echo "the Native Client SDK (the directory containing toolchain/)." | 21 echo "the Native Client SDK (the directory containing toolchain/)." |
22 echo "NOTE: set this to an absolute path." | 22 echo "NOTE: set this to an absolute path." |
23 echo "-------------------------------------------------------------------" | 23 echo "-------------------------------------------------------------------" |
24 exit -1 | 24 exit -1 |
25 fi | 25 fi |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 LogExecute make ports | 74 LogExecute make ports |
75 | 75 |
76 Banner Building smoothlife | 76 Banner Building smoothlife |
77 LogExecute make TOOLCHAIN=pnacl CONFIG=Release -j${OS_JOBS} | 77 LogExecute make TOOLCHAIN=pnacl CONFIG=Release -j${OS_JOBS} |
78 | 78 |
79 popd | 79 popd |
80 | 80 |
81 LogExecute cp ${SMOOTHLIFE_DIR}/pnacl/Release/smoothnacl.{pexe,nmf} ${OUT_DIR} | 81 LogExecute cp ${SMOOTHLIFE_DIR}/pnacl/Release/smoothnacl.{pexe,nmf} ${OUT_DIR} |
82 | 82 |
83 Banner Done! | 83 Banner Done! |
OLD | NEW |