@echo off

:: Copyright (c) 2011 The Native Client Authors. All rights reserved.
:: Use of this source code is governed by a BSD-style license that can be
:: found in the LICENSE file.

setlocal

set NACL_SDK_ROOT=%~dp0..

:: Set the PYTHONPATH so we can import SCons modules
set PYTHONPATH=%NACL_SDK_ROOT%\third_party\scons-2.0.1\engine

:: We have to do this because scons overrides PYTHONPATH and does not preserve
:: what is provided by the OS.  The custom variable name won't be overwritten.
set PYMOX=%NACL_SDK_ROOT%\third_party\pymox

:: Run the included copy of scons.
python -O -OO "%NACL_SDK_ROOT%\third_party\scons-2.0.1\script\scons" ^
--file=build.scons ^
--site-dir="%NACL_SDK_ROOT%\build_tools\nacl_sdk_scons" %*

@echo off

:: Copyright (c) 2011 The Native Client Authors. All rights reserved.
:: Use of this source code is governed by a BSD-style license that can be
:: found in the LICENSE file.

setlocal

set NACL_SDK_ROOT=%~dp0..

:: Set the PYTHONPATH so we can import SCons modules
set PYTHONPATH=%NACL_SDK_ROOT%\third_party\scons-2.0.1\engine

:: We have to do this because scons overrides PYTHONPATH and does not preserve
:: what is provided by the OS.  The custom variable name won't be overwritten.
set PYMOX=%NACL_SDK_ROOT%\third_party\pymox

:: Run the included copy of scons.
python -O -OO "%NACL_SDK_ROOT%\third_party\scons-2.0.1\script\scons" ^
--warn no-visual-c-missing ^
--file=build.scons ^
--site-dir="%NACL_SDK_ROOT%\build_tools\nacl_sdk_scons" %*

Make Visual Studio related warnings go away.
Make Visual Studio related warnings go away.

This adds a flag that causes scons not to always expect VS on windows.
I had this fix verified by the testing team before uploading the CL.
Committed: http://code.google.com/p/nativeclient-sdk/source/detail?r=907
Review URL: http://codereview.chromium.org/7111051

git-svn-id: e22621a84199d42b34715cdc089545aeedbbf23f@910 050acbb0-2703-11df-ab0a-9f3f633ae91d
