OLD | NEW |
1 @rem Copyright 2011 Google Inc. | 1 @rem Copyright 2011 Google Inc. |
2 @rem | 2 @rem |
3 @rem Use of this source code is governed by a BSD-style license that can be | 3 @rem Use of this source code is governed by a BSD-style license that can be |
4 @rem found in the LICENSE file. | 4 @rem found in the LICENSE file. |
5 @ECHO OFF | 5 @ECHO OFF |
6 | 6 |
7 rem Launches make.py on Windows, after setting Visual Studio environment variabl
es. | 7 rem Launches make.py on Windows, after setting Visual Studio environment variabl
es. |
8 rem See http://code.google.com/p/skia/wiki/GettingStartedOnWindows | 8 rem See https://sites.google.com/site/skiadocs/user-documentation/quick-start-gu
ides/windows |
9 | 9 |
10 rem Skip environment setup on bots. | 10 rem Skip environment setup on bots. |
11 if "%CHROME_HEADLESS%"=="1" goto run_python | 11 if "%CHROME_HEADLESS%"=="1" goto run_python |
12 | 12 |
13 if "%DevEnvDir%"=="" goto setup_env_vars | 13 if "%DevEnvDir%"=="" goto setup_env_vars |
14 | 14 |
15 :run_python | 15 :run_python |
16 rem Run make.py and propagate its return value. | 16 rem Run make.py and propagate its return value. |
17 python make.py %* | 17 python make.py %* |
18 exit /B %ERRORLEVEL% | 18 exit /B %ERRORLEVEL% |
19 | 19 |
20 :setup_env_vars | 20 :setup_env_vars |
21 rem Visual Studio environment variables aren't set yet, so run vcvars32.bat | 21 rem Visual Studio environment variables aren't set yet, so run vcvars32.bat |
22 if DEFINED VS110COMNTOOLS ( | 22 if DEFINED VS110COMNTOOLS ( |
23 call "%VS110COMNTOOLS%..\..\VC\bin\vcvars32.bat" | 23 call "%VS110COMNTOOLS%..\..\VC\bin\vcvars32.bat" |
24 ) else if DEFINED VS100COMNTOOLS ( | 24 ) else if DEFINED VS100COMNTOOLS ( |
25 call "%VS100COMNTOOLS%..\..\VC\bin\vcvars32.bat" | 25 call "%VS100COMNTOOLS%..\..\VC\bin\vcvars32.bat" |
26 ) else ( | 26 ) else ( |
27 goto error_no_VS | 27 goto error_no_VS |
28 ) | 28 ) |
29 if %ERRORLEVEL% neq 0 exit /B %ERRORLEVEL% | 29 if %ERRORLEVEL% neq 0 exit /B %ERRORLEVEL% |
30 goto run_python | 30 goto run_python |
31 | 31 |
32 :error_no_VS | 32 :error_no_VS |
33 echo ERROR: Neither VS100COMNTOOLS nor VS110COMNTOOLS environment variable is se
t. | 33 echo ERROR: Neither VS100COMNTOOLS nor VS110COMNTOOLS environment variable is se
t. |
34 echo Are you sure Visual Studio 2010 or 2012 is installed? | 34 echo Are you sure Visual Studio 2010 or 2012 is installed? |
35 exit /B 1 | 35 exit /B 1 |
OLD | NEW |