2009-07-14 17:47:38 +02:00
|
|
|
@echo off
|
|
|
|
REM A simple script to build different cppcheck targets from project root
|
|
|
|
REM folder.
|
|
|
|
REM
|
|
|
|
REM Usage: build <target>
|
|
|
|
REM where <target> is any of cppcheck/gui/tests
|
|
|
|
REM
|
|
|
|
REM TODO:
|
|
|
|
REM - build release targets (new switch?)
|
|
|
|
REM - add "all" target
|
|
|
|
REM - run tests too
|
|
|
|
|
2010-01-09 11:26:34 +01:00
|
|
|
REM QT prompt sets QMAKESPEC
|
|
|
|
if NOT "%QMAKESPEC%" == "" (
|
|
|
|
set MAKE=mingw32-make
|
|
|
|
) else (
|
|
|
|
set MAKE=nmake
|
|
|
|
)
|
|
|
|
|
2009-07-14 17:47:38 +02:00
|
|
|
if "%1" == "cppcheck" goto cppcheck
|
|
|
|
if "%1" == "gui" goto gui
|
|
|
|
if "%1" == "tests" goto tests
|
|
|
|
goto help
|
|
|
|
|
|
|
|
:cppcheck
|
2010-01-09 11:09:00 +01:00
|
|
|
cd cli
|
2009-07-14 17:47:38 +02:00
|
|
|
qmake
|
2010-01-09 11:26:34 +01:00
|
|
|
%MAKE%
|
2009-07-14 17:47:38 +02:00
|
|
|
cd ..
|
|
|
|
goto end
|
|
|
|
|
|
|
|
:gui
|
|
|
|
cd gui
|
|
|
|
qmake
|
2010-01-09 11:26:34 +01:00
|
|
|
%MAKE%
|
2009-07-14 17:47:38 +02:00
|
|
|
lrelease gui.pro
|
|
|
|
cd ..
|
|
|
|
goto end
|
|
|
|
|
|
|
|
:tests
|
|
|
|
cd test
|
|
|
|
qmake
|
2010-01-09 11:26:34 +01:00
|
|
|
%MAKE%
|
2009-07-14 17:47:38 +02:00
|
|
|
cd ..
|
|
|
|
goto end
|
|
|
|
|
|
|
|
:help
|
|
|
|
echo Syntax: build <target>
|
|
|
|
echo where <target> is any of cppcheck/gui/tests
|
|
|
|
|
|
|
|
:end
|