1877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com@rem Copyright 2011 Google Inc. 2877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com@rem 3fd03db0fe9c7a7f72df560b2039f2c3050c2fab9epoger@google.com@rem Use of this source code is governed by a BSD-style license that can be 4fd03db0fe9c7a7f72df560b2039f2c3050c2fab9epoger@google.com@rem found in the LICENSE file. 5c77256b83b92fef3a796ea7036bf725d51194c08bsalomon@google.com@ECHO OFF 6877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com 7c77256b83b92fef3a796ea7036bf725d51194c08bsalomon@google.comrem Launches make.py on Windows, after setting Visual Studio environment variables. 84c93a126889bf71b2eab5a5fa6375d731809dcb8Thiago Farinarem See https://skia.org/user/quick/windows. 9877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com 109118413608e277b4500130bc2117400f9d9b0201Eric Borenrem Skip environment setup on bots. 119118413608e277b4500130bc2117400f9d9b0201Eric Borenif "%CHROME_HEADLESS%"=="1" goto run_python 129118413608e277b4500130bc2117400f9d9b0201Eric Boren 13c77256b83b92fef3a796ea7036bf725d51194c08bsalomon@google.comif "%DevEnvDir%"=="" goto setup_env_vars 14877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com 15877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com:run_python 16c77256b83b92fef3a796ea7036bf725d51194c08bsalomon@google.comrem Run make.py and propagate its return value. 17877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.compython make.py %* 18c77256b83b92fef3a796ea7036bf725d51194c08bsalomon@google.comexit /B %ERRORLEVEL% 19877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com 20877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com:setup_env_vars 21c77256b83b92fef3a796ea7036bf725d51194c08bsalomon@google.comrem Visual Studio environment variables aren't set yet, so run vcvars32.bat 22c77256b83b92fef3a796ea7036bf725d51194c08bsalomon@google.comif DEFINED VS110COMNTOOLS ( 23c77256b83b92fef3a796ea7036bf725d51194c08bsalomon@google.com call "%VS110COMNTOOLS%..\..\VC\bin\vcvars32.bat" 24c77256b83b92fef3a796ea7036bf725d51194c08bsalomon@google.com) else if DEFINED VS100COMNTOOLS ( 25c77256b83b92fef3a796ea7036bf725d51194c08bsalomon@google.com call "%VS100COMNTOOLS%..\..\VC\bin\vcvars32.bat" 26c77256b83b92fef3a796ea7036bf725d51194c08bsalomon@google.com) else ( 27c77256b83b92fef3a796ea7036bf725d51194c08bsalomon@google.com goto error_no_VS 28c77256b83b92fef3a796ea7036bf725d51194c08bsalomon@google.com) 29c77256b83b92fef3a796ea7036bf725d51194c08bsalomon@google.comif %ERRORLEVEL% neq 0 exit /B %ERRORLEVEL% 30c77256b83b92fef3a796ea7036bf725d51194c08bsalomon@google.comgoto run_python 31877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com 32c77256b83b92fef3a796ea7036bf725d51194c08bsalomon@google.com:error_no_VS 33c77256b83b92fef3a796ea7036bf725d51194c08bsalomon@google.comecho ERROR: Neither VS100COMNTOOLS nor VS110COMNTOOLS environment variable is set. 34c77256b83b92fef3a796ea7036bf725d51194c08bsalomon@google.comecho Are you sure Visual Studio 2010 or 2012 is installed? 35c77256b83b92fef3a796ea7036bf725d51194c08bsalomon@google.comexit /B 1 36