Files
yttrium-virtio-gpu/Tools/SetVsEnv.bat
T
Yuri Benditovich 012e122cee build: support Community and Professional VS 2017
For Brew build and other configurations which use
Professional VS.

Signed-off-by: Yuri Benditovich <[email protected]>
2019-04-23 16:40:12 +03:00

15 lines
453 B
Batchfile

@echo off
if not "%VSFLAVOR%"=="" goto :knownVS
call :checkvs
echo USING %VSFLAVOR% Visual Studio
:knownVS
echo %0: Setting NATIVE ENV for %1 (VS %VSFLAVOR%)...
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\%VSFLAVOR%\VC\Auxiliary\Build\vcvarsall.bat" %1
goto :eof
:checkvs
set VSFLAVOR=Professional
if exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" set VSFLAVOR=Community
goto :eof