epoger@google.com | 877cfe3 | 2011-07-11 19:52:00 +0000 | [diff] [blame] | 1 | @rem Copyright 2011 Google Inc.
|
| 2 | @rem
|
epoger@google.com | fd03db0 | 2011-07-28 14:24:55 +0000 | [diff] [blame] | 3 | @rem Use of this source code is governed by a BSD-style license that can be
|
| 4 | @rem found in the LICENSE file.
|
epoger@google.com | 877cfe3 | 2011-07-11 19:52:00 +0000 | [diff] [blame] | 5 |
|
| 6 | @rem Launches make.py on Windows, after setting Visual Studio environment variables.
|
| 7 | @rem See http://code.google.com/p/skia/wiki/GettingStartedOnWindows
|
| 8 |
|
epoger@google.com | 877cfe3 | 2011-07-11 19:52:00 +0000 | [diff] [blame] | 9 | @if "%DevEnvDir%"=="" goto setup_env_vars
|
| 10 |
|
| 11 | :run_python
|
| 12 | @rem Run make.py and propagate its return value.
|
| 13 | python make.py %*
|
| 14 | @exit /B %ERRORLEVEL%
|
| 15 |
|
| 16 | :setup_env_vars
|
| 17 | @rem Visual Studio environment variables aren't set yet, so run vcvars32.bat
|
| 18 | @if "%VS100COMNTOOLS%"=="" goto error_no_VS100COMNTOOLS
|
| 19 | call "%VS100COMNTOOLS%..\..\VC\bin\vcvars32.bat"
|
| 20 | @if %ERRORLEVEL% neq 0 exit /B %ERRORLEVEL%
|
| 21 | @goto run_python
|
| 22 |
|
| 23 | :error_no_VS100COMNTOOLS
|
| 24 | @echo ERROR: VS100COMNTOOLS environment variable not set.
|
| 25 | @echo Are you sure Visual Studio 2010 is installed?
|
| 26 | @exit /B 1
|