1
0
Форкнуть 0

Update coverity.bat for VS2017.

This commit is contained in:
XhmikosR 2017-08-06 12:06:15 +03:00
Родитель 1c9d41f96a
Коммит 66ca5ed2be
1 изменённых файлов: 10 добавлений и 5 удалений

Просмотреть файл

@ -14,11 +14,8 @@ IF DEFINED COVDIR IF NOT EXIST "%COVDIR%" (
)
CALL "%VS140COMNTOOLS%\vsvars32.bat"
IF %ERRORLEVEL% NEQ 0 (
ECHO vsvars32.bat call failed.
GOTO End
)
CALL :SubVSPath
IF NOT EXIST "%VS_PATH%" CALL :SUBMSG "ERROR" "Visual Studio 2017 NOT FOUND!"
:Cleanup
@ -29,6 +26,9 @@ IF EXIST "gcw.tgz" DEL "gcw.tgz"
:Main
SET "TOOLSET=%VS_PATH%\Common7\Tools\vsdevcmd"
CALL "%TOOLSET%"
SET MSBUILD_SWITCHES=/nologo /t:Rebuild /p:Configuration=Release /p:Platform="Any CPU"^
/maxcpucount /consoleloggerparameters:DisableMPLogging;Summary;Verbosity=minimal
@ -67,6 +67,11 @@ FOR /F "tokens=2*" %%A IN (
EXIT /B
:SubVSPath
FOR /f "delims=" %%A IN ('"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -property installationPath -latest -requires Microsoft.Component.MSBuild Microsoft.VisualStudio.Component.VC.ATLMFC Microsoft.VisualStudio.Component.VC.Tools.x86.x64') DO SET "VS_PATH=%%A"
EXIT /B
:End
POPD
ECHO. & ECHO Press any key to close this window...