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