2019-08-26 17:01:00 +00:00
|
|
|
@echo off
|
|
|
|
cd /d "%~dp0"
|
|
|
|
rem Put in the base path in which Visual Studio is installed, default would be C:\Program Files (x86)
|
2019-04-13 16:21:56 +00:00
|
|
|
|
2019-08-26 17:01:00 +00:00
|
|
|
set VS_Base_Path=C:\Program Files (x86)
|
|
|
|
|
|
|
|
if exist "%VS_Base_Path%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat" goto vs2019
|
|
|
|
if exist "%VS_Base_Path%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat" goto vs2017
|
|
|
|
if exist "%VS_Base_Path%\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\vcvarsamd64_x86.bat" goto vs14
|
2020-04-29 14:14:02 +00:00
|
|
|
if exist "%VS_Base_Path%\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars32.bat" goto vs2019_bt
|
|
|
|
if exist "%VS_Base_Path%\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars32.bat" goto vs2017_bt
|
2022-07-12 05:04:56 +00:00
|
|
|
if exist "%VS_Base_Path%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars32.bat" goto vs2022
|
|
|
|
if exist "%VS_Base_Path%\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars32.bat" goto vs2022_bt
|
2019-08-26 18:45:49 +00:00
|
|
|
if exist ".\sdk_standalone\set_vars32.bat" goto gitlabci
|
2019-08-26 17:01:00 +00:00
|
|
|
|
2022-07-12 05:04:56 +00:00
|
|
|
:vs2022
|
|
|
|
call "%VS_Base_Path%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars32.bat"
|
|
|
|
goto batend
|
|
|
|
|
2019-08-26 17:01:00 +00:00
|
|
|
:vs2019
|
|
|
|
call "%VS_Base_Path%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
|
2019-04-13 16:21:56 +00:00
|
|
|
goto batend
|
|
|
|
|
|
|
|
:vs2017
|
2019-08-26 17:01:00 +00:00
|
|
|
call "%VS_Base_Path%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
|
2019-04-13 16:21:56 +00:00
|
|
|
goto batend
|
|
|
|
|
2019-08-26 17:01:00 +00:00
|
|
|
:vs14
|
|
|
|
call "%VS_Base_Path%\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\vcvarsamd64_x86.bat"
|
2019-04-13 16:21:56 +00:00
|
|
|
goto batend
|
2019-08-26 18:45:49 +00:00
|
|
|
|
2022-07-12 05:04:56 +00:00
|
|
|
:vs2022_bt
|
|
|
|
call "%VS_Base_Path%\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars32.bat"
|
|
|
|
goto batend
|
|
|
|
|
2020-04-29 14:14:02 +00:00
|
|
|
:vs2019_bt
|
|
|
|
call "%VS_Base_Path%\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars32.bat"
|
|
|
|
goto batend
|
|
|
|
|
|
|
|
:vs2017_bt
|
|
|
|
call "%VS_Base_Path%\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars32.bat"
|
|
|
|
goto batend
|
|
|
|
|
|
|
|
|
2019-08-26 18:45:49 +00:00
|
|
|
:gitlabci
|
|
|
|
call ".\sdk_standalone\set_vars32.bat"
|
|
|
|
goto batend
|
2019-04-13 16:21:56 +00:00
|
|
|
:batend
|