| @rem Copyright 2011 Google Inc.
|
| @rem Use of this source code is governed by a BSD-style license that can be
|
| @rem found in the LICENSE file.
|
| rem Launches make.py on Windows, after setting Visual Studio environment variables.
|
| rem See https://sites.google.com/site/skiadocs/user-documentation/quick-start-guides/windows
|
| rem Skip environment setup on bots.
|
| if "%CHROME_HEADLESS%"=="1" goto run_python
|
| if "%DevEnvDir%"=="" goto setup_env_vars
|
| rem Run make.py and propagate its return value.
|
| rem Visual Studio environment variables aren't set yet, so run vcvars32.bat
|
| if DEFINED VS110COMNTOOLS (
|
| call "%VS110COMNTOOLS%..\..\VC\bin\vcvars32.bat"
|
| ) else if DEFINED VS100COMNTOOLS (
|
| call "%VS100COMNTOOLS%..\..\VC\bin\vcvars32.bat"
|
| if %ERRORLEVEL% neq 0 exit /B %ERRORLEVEL%
|
| echo ERROR: Neither VS100COMNTOOLS nor VS110COMNTOOLS environment variable is set.
|
| echo Are you sure Visual Studio 2010 or 2012 is installed?
|