\r
:SetVS2017\r
if not defined VS150COMNTOOLS (\r
+ @REM clear two envs so that vcvars32.bat can run successfully.\r
+ set VSINSTALLDIR=\r
+ set VCToolsVersion=\r
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" (\r
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\BuildTools" (\r
call "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -products Microsoft.VisualStudio.Product.BuildTools -version 15,16 > vswhereInfo\r
)\r
)\r
\r
+if /I "%1"=="VS2017" goto SetWinDDK\r
+\r
:SetVS2019\r
if not defined VS160COMNTOOLS (\r
+ @REM clear two envs so that vcvars32.bat can run successfully.\r
+ set VSINSTALLDIR=\r
+ set VCToolsVersion=\r
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" (\r
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\BuildTools" (\r
call "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -products Microsoft.VisualStudio.Product.BuildTools -version 16,17 > vswhereInfo\r
)\r
)\r
\r
+if /I "%1"=="VS2019" goto SetWinDDK\r
+\r
:SetWinDDK\r
if not defined WINDDK3790_PREFIX (\r
set WINDDK3790_PREFIX=C:\WINDDK\3790.1830\bin\\r