OLD | NEW |
| (Empty) |
1 #!/bin/bash | |
2 # | |
3 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | |
4 # Use of this source code is governed by a BSD-style license that can be | |
5 # found in the LICENSE file. | |
6 | |
7 | |
8 readonly SCRIPT_DIR="$(dirname "$0")" | |
9 readonly SCRIPT_DIR_ABS="$(cd "${SCRIPT_DIR}" ; pwd -P)" | |
10 | |
11 export NACL_SDK_ROOT="$(cd "${SCRIPT_DIR_ABS}/.." ; pwd -P)" | |
12 # TODO(gwink): Replace this with 'pepper_14' when the sdk folder structure is | |
13 # in place. | |
14 # NACL_TARGET_PLATFORM is really the name of a folder with the base dir - | |
15 # usually nacl-sdk-root - within which the toolchain for the target platform | |
16 # are found. | |
17 export NACL_TARGET_PLATFORM="." | |
18 | |
19 readonly BASE_SCRIPT="${NACL_SDK_ROOT}/third_party/scons-2.0.1/script/scons" | |
20 | |
21 export SCONS_LIB_DIR="${NACL_SDK_ROOT}/third_party/scons-2.0.1/engine" | |
22 export PYTHONPATH="${NACL_SDK_ROOT}/third_party/scons-2.0.1/engine" | |
23 # We have to do this because scons overrides PYTHONPATH and does not preserve | |
24 # what is provided by the OS. The custom variable name won't be overwritten. | |
25 export PYMOX="${NACL_SDK_ROOT}/third_party/pymox" | |
26 | |
27 "${BASE_SCRIPT}" --file=build.scons \ | |
28 --site-dir="${NACL_SDK_ROOT}/build_tools/nacl_sdk_scons" \ | |
29 $* | |
30 | |
OLD | NEW |