| OLD | NEW |
| (Empty) | |
| 1 @echo off |
| 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 setlocal |
| 8 |
| 9 :: NACL_SDK_ROOT must be set. |
| 10 if not defined NACL_SDK_ROOT ( |
| 11 echo Error: NACL_SDK_ROOT is not set. |
| 12 echo Please set NACL_SDK_ROOT to the full path of the Native Client SDK. |
| 13 echo For example: |
| 14 echo set NACL_SDK_ROOT=D:\nacl_sdk |
| 15 goto end |
| 16 ) |
| 17 |
| 18 # NACL_TARGET_PLATFORM is really the name of a folder with the base dir - |
| 19 # usually nacl-sdk-root - within which the toolchain for the target platform |
| 20 # are found. |
| 21 set NACL_TARGET_PLATFORM=pepper_16 |
| 22 |
| 23 set NACL_PLATFORM_DIR=%NACL_SDK_ROOT%\%NACL_TARGET_PLATFORM% |
| 24 |
| 25 :: Set the PYTHONPATH and SCONS_LIB_DIR so we can import SCons modules |
| 26 set SCONS_LIB_DIR=%NACL_PLATFORM_DIR%\third_party\scons-2.0.1\engine |
| 27 set PYTHONPATH=%NACL_PLATFORM_DIR%\third_party\scons-2.0.1\engine |
| 28 |
| 29 :: We have to do this because scons overrides PYTHONPATH and does not preserve |
| 30 :: what is provided by the OS. The custom variable name won't be overwritten. |
| 31 set PYMOX=%NACL_PLATFORM_DIR%\third_party\pymox |
| 32 |
| 33 :: Run the included copy of scons. |
| 34 python -O -OO "%NACL_PLATFORM_DIR%\third_party\scons-2.0.1\script\scons" ^ |
| 35 --warn no-visual-c-missing ^ |
| 36 --file=build.scons ^ |
| 37 --site-dir="%NACL_PLATFORM_DIR%\build_tools\nacl_sdk_scons" %* |
| 38 |
| 39 :end |
| OLD | NEW |