blob: fbe0a352f1c52c418c6fc27bdccc38e6da61a83f [file] [log] [blame]
epoger@google.com877cfe32011-07-11 19:52:00 +00001@rem Copyright 2011 Google Inc.
2@rem
epoger@google.comfd03db02011-07-28 14:24:55 +00003@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.com877cfe32011-07-11 19:52:00 +00005
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.com877cfe32011-07-11 19:52:00 +00009@if "%DevEnvDir%"=="" goto setup_env_vars
10
11:run_python
12@rem Run make.py and propagate its return value.
13python 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
19call "%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