diff options
author | bradnelson@google.com <bradnelson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-19 02:46:32 +0000 |
---|---|---|
committer | bradnelson@google.com <bradnelson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-19 02:46:32 +0000 |
commit | 745945afe8e9fbfad7bb9ed442143172bf690073 (patch) | |
tree | 770e9c5f61e1204221fb4c2887cb863ad8b6688f /native_client_sdk/src/scons.bat | |
parent | f0953ccbeb01a7a4ed1daa3cb84c2bc42adbed1f (diff) | |
download | chromium_src-745945afe8e9fbfad7bb9ed442143172bf690073.zip chromium_src-745945afe8e9fbfad7bb9ed442143172bf690073.tar.gz chromium_src-745945afe8e9fbfad7bb9ed442143172bf690073.tar.bz2 |
Adding reduced version of sdk at 1387 to chrome tree.
BUG=None
TEST=None
R=noelallen@google.com
TBR
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110822 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk/src/scons.bat')
-rwxr-xr-x | native_client_sdk/src/scons.bat | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/native_client_sdk/src/scons.bat b/native_client_sdk/src/scons.bat new file mode 100755 index 0000000..0a6d3db --- /dev/null +++ b/native_client_sdk/src/scons.bat @@ -0,0 +1,28 @@ +@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
+
+:: Preserve a copy of the PATH (in case we need it later, mainly for cygwin).
+set PRESCONS_PATH=%PATH%
+
+:: Set the PYTHONPATH and SCONS_LIB_DIR so we can import SCons modules
+set SCONS_LIB_DIR=%~dp0third_party\scons-2.0.1\engine
+set PYTHONPATH=%~dp0third_party\scons-2.0.1\engine;%~dp0third_party\native_client\native_client\build
+
+:: 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=%~dp0third_party\pymox
+
+:: Stop incessant CYGWIN complains about "MS-DOS style path"
+set CYGWIN=nodosfilewarning %CYGWIN%
+
+:: Run the included copy of scons.
+python -O -OO "%~dp0third_party\scons-2.0.1\script\scons" --file=main.scons %*
+
+:end
|