forked from Frank-Friemel/Shairport4w
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcoverity-build.bat
39 lines (25 loc) · 864 Bytes
/
coverity-build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@title "Shairport4w - Coverity build"
@echo "Shairport4w - Coverity build"
@echo "Forced to x64 debug"
@echo "Coverity and VS 2019 Community required"
@echo:
@if "%COVERITY_SCAN%"=="" goto exit
@if "%PROCESSOR_ARCHITECTURE%"=="x86" set DIR=%ProgramFiles%
@if "%PROCESSOR_ARCHITECTURE%"=="AMD64" set DIR=%ProgramFiles(x86)%
@call "%DIR%\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars32.bat"
echo:
echo "Building %BUILD_PLATFORM% %BUILD_CONFIG%"
echo:
set BUILD_CMD=buildDebugX64.bat
%COVERITY_SCAN%\bin\cov-build --dir cov-int "%BUILD_CMD%"
echo:
echo "Build finished."
echo:
pause
goto end
:exit
echo:
echo "***** ERROR : COVERITY NOT INSTALLED !! *******"
echo "Please download Coverity scan and set COVERITY_SCAN env var to the place of the tool, e.g. something like : set COVERITY_SCAN=C:\cov-analysis-win64-2020.09"
echo:
:end