| 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 # NACL_SDK_ROOT must be set. |
| 12 if [ x"${NACL_SDK_ROOT}"x == "xx" ] ; then |
| 13 echo "Error: NACL_SDK_ROOT is not set." |
| 14 exit 1; |
| 15 fi |
| 16 |
| 17 # NACL_TARGET_PLATFORM is really the name of a folder with the base dir - |
| 18 # usually nacl-sdk-root - within which the toolchain for the target platform |
| 19 # are found. |
| 20 export NACL_TARGET_PLATFORM=pepper_16 |
| 21 |
| 22 readonly NACL_PLATFORM_DIR="${NACL_SDK_ROOT}/${NACL_TARGET_PLATFORM}" |
| 23 readonly BASE_SCRIPT="${NACL_PLATFORM_DIR}/third_party/scons-2.0.1/script/scons" |
| 24 |
| 25 export SCONS_LIB_DIR="${NACL_PLATFORM_DIR}/third_party/scons-2.0.1/engine" |
| 26 export PYTHONPATH="${NACL_PLATFORM_DIR}/third_party/scons-2.0.1/engine" |
| 27 # We have to do this because scons overrides PYTHONPATH and does not preserve |
| 28 # what is provided by the OS. The custom variable name won't be overwritten. |
| 29 export PYMOX="${NACL_PLATFORM_DIR}/third_party/pymox" |
| 30 |
| 31 "${BASE_SCRIPT}" --file=build.scons \ |
| 32 --site-dir="${NACL_PLATFORM_DIR}/build_tools/nacl_sdk_scons" \ |
| 33 $* |
| 34 |
| OLD | NEW |