Skip to content

Commit c6b82ca

Browse files
committed
Add simple batch file to build cppcheck projects in Windows.
1 parent f40c948 commit c6b82ca

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

build.bat

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
@echo off
2+
REM A simple script to build different cppcheck targets from project root
3+
REM folder.
4+
REM
5+
REM Usage: build <target>
6+
REM where <target> is any of cppcheck/gui/tests
7+
REM
8+
REM TODO:
9+
REM - build release targets (new switch?)
10+
REM - add "all" target
11+
REM - run tests too
12+
13+
if "%1" == "cppcheck" goto cppcheck
14+
if "%1" == "gui" goto gui
15+
if "%1" == "tests" goto tests
16+
goto help
17+
18+
:cppcheck
19+
cd src
20+
qmake
21+
nmake
22+
cd ..
23+
goto end
24+
25+
:gui
26+
cd gui
27+
qmake
28+
nmake
29+
lrelease gui.pro
30+
copy *.qm debug
31+
cd ..
32+
goto end
33+
34+
:tests
35+
cd test
36+
qmake
37+
nmake
38+
cd ..
39+
goto end
40+
41+
:help
42+
echo Syntax: build <target>
43+
echo where <target> is any of cppcheck/gui/tests
44+
45+
:end

0 commit comments

Comments
 (0)