From d1b43c521d2aee0ea88d67873b92a24fdb65f7dc Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Sat, 9 Jan 2010 13:46:43 +0200 Subject: [PATCH] Allow building both debug and release targets using build.bat. --- build.bat | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/build.bat b/build.bat index 05808ac47..034e3fdac 100644 --- a/build.bat +++ b/build.bat @@ -2,14 +2,16 @@ REM A simple script to build different cppcheck targets from project root REM folder. REM -REM Usage: build +REM Usage: build [release|debug] REM where is any of cppcheck/gui/tests +REM release or debug is the configuration REM REM TODO: -REM - build release targets (new switch?) REM - add "all" target REM - run tests too +if "%1" == "" goto help + REM QT prompt sets QMAKESPEC if NOT "%QMAKESPEC%" == "" ( set MAKE=mingw32-make @@ -24,14 +26,14 @@ goto help :cppcheck cd cli -qmake +qmake -config %2 %MAKE% cd .. goto end :gui cd gui -qmake +qmake -config %2 %MAKE% lrelease gui.pro cd .. @@ -39,13 +41,14 @@ goto end :tests cd test -qmake +qmake -config %2 %MAKE% cd .. goto end :help -echo Syntax: build -echo where is any of cppcheck/gui/tests +echo "Syntax: build [debug|release]" +echo " where is any of cppcheck/gui/tests" +echo " debug or release define used configuration" :end