assimp/scripts/appveyor/compiler_setup.bat

37 lines
892 B
Batchfile
Raw Normal View History

2016-02-19 10:07:17 +00:00
rem @echo off
2016-02-17 12:44:33 +00:00
:: Now we declare a scope
Setlocal EnableDelayedExpansion EnableExtensions
2016-02-19 10:44:02 +00:00
if not defined Configuration set Configuration=14 2015
2016-02-17 12:44:33 +00:00
if "%Configuration%"=="MinGW" ( goto :mingw )
set arch=x86
if "%platform%" EQU "x64" ( set arch=x86_amd64 )
2016-02-19 10:44:02 +00:00
if "%Configuration%"=="14 2015" (
2016-02-17 12:44:33 +00:00
set SET_VS_ENV="C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
)
2016-02-19 10:44:02 +00:00
if "%Configuration%"=="12 2013" (
2016-02-17 12:44:33 +00:00
set SET_VS_ENV="C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"
)
2016-02-19 10:44:02 +00:00
if "%Configuration%"=="11 2012" (
2016-02-17 12:44:33 +00:00
set SET_VS_ENV="C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat"
)
2016-02-19 10:44:02 +00:00
if "%Configuration%"=="10 2010" (
2016-02-17 12:44:33 +00:00
set SET_VS_ENV="C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
)
:: Visual Studio detected
endlocal & call %SET_VS_ENV% %arch%
goto :eof
:: MinGW detected
:mingw
endlocal & set PATH=c:\mingw\bin;%PATH%