make.bat revision 877cfe380d396ffe688125ee55f541930b1f5a21
1@rem Copyright 2011 Google Inc. 2@rem 3@rem Licensed under the Apache License, Version 2.0 (the "License"); 4@rem you may not use this file except in compliance with the License. 5@rem You may obtain a copy of the License at 6@rem 7@rem http://www.apache.org/licenses/LICENSE-2.0 8@rem 9@rem Unless required by applicable law or agreed to in writing, software 10@rem distributed under the License is distributed on an "AS IS" BASIS, 11@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12@rem See the License for the specific language governing permissions and 13@rem limitations under the License. 14 15@rem Launches make.py on Windows, after setting Visual Studio environment variables. 16@rem See http://code.google.com/p/skia/wiki/GettingStartedOnWindows 17 18@rem Force gyp to generate .vcxproj files, as needed for msbuild.exe 19set GYP_MSVS_VERSION=2010 20 21@if "%DevEnvDir%"=="" goto setup_env_vars 22 23:run_python 24@rem Run make.py and propagate its return value. 25python make.py %* 26@exit /B %ERRORLEVEL% 27 28:setup_env_vars 29@rem Visual Studio environment variables aren't set yet, so run vcvars32.bat 30@if "%VS100COMNTOOLS%"=="" goto error_no_VS100COMNTOOLS 31call "%VS100COMNTOOLS%..\..\VC\bin\vcvars32.bat" 32@if %ERRORLEVEL% neq 0 exit /B %ERRORLEVEL% 33@goto run_python 34 35:error_no_VS100COMNTOOLS 36@echo ERROR: VS100COMNTOOLS environment variable not set. 37@echo Are you sure Visual Studio 2010 is installed? 38@exit /B 1 39