22 lines
509 B
Batchfile
Executable File
22 lines
509 B
Batchfile
Executable File
@echo off
|
|
cd /d "%~dp0"
|
|
rem Put in the base path in which Visual Studio is installed, default would be C:\Program Files (x86)
|
|
|
|
FOR /F "tokens=* USEBACKQ" %%F IN (`vswhere.exe -latest -property installationPath`) DO (
|
|
SET VS_Base_Path=%%F
|
|
)
|
|
set VS_Env_Path="%VS_Base_Path%\VC\Auxiliary\Build\vcvars32.bat"
|
|
|
|
if exist %VS_Env_Path% goto vslast
|
|
if exist ".\sdk_standalone\set_vars32.bat" goto gitlabci
|
|
|
|
:vslast
|
|
call %VS_Env_Path%
|
|
goto batend
|
|
|
|
:gitlabci
|
|
call ".\sdk_standalone\set_vars32.bat"
|
|
goto batend
|
|
|
|
:batend
|