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 set NACL_SDK_ROOT=%~dp0..\..\..\.. | |
10 :: NACL_TARGET_PLATFORM is really the name of a folder with the base dir - | |
11 :: usually nacl-sdk-root - within which the toolchain for the target platform | |
12 :: are found. | |
13 set NACL_TARGET_PLATFORM=. | |
14 | |
15 :: Set the PYTHONPATH and SCONS_LIB_DIR so we can import SCons modules | |
16 set SCONS_LIB_DIR=%~dp0third_party\scons-2.0.1\engine | |
17 set PYTHONPATH=%NACL_SDK_ROOT%\third_party\scons-2.0.1\engine | |
18 | |
19 :: We have to do this because scons overrides PYTHONPATH and does not preserve | |
20 :: what is provided by the OS. The custom variable name won't be overwritten. | |
21 set PYMOX=%NACL_SDK_ROOT%\third_party\pymox | |
22 | |
23 :: Run the included copy of scons. | |
24 python -O -OO "%NACL_SDK_ROOT%\third_party\scons-2.0.1\script\scons" ^ | |
25 --warn no-visual-c-missing ^ | |
26 --file=build.scons ^ | |
27 --site-dir="%NACL_SDK_ROOT%\build_tools\nacl_sdk_scons" %* | |
OLD | NEW |