Improve build.bat to support building from QT prompt.

This commit is contained in:
Kimmo Varis 2010-01-09 12:26:34 +02:00
parent fada751442
commit b927255da0
1 changed files with 10 additions and 4 deletions

View File

@ -10,6 +10,13 @@ REM - build release targets (new switch?)
REM - add "all" target
REM - run tests too
REM QT prompt sets QMAKESPEC
if NOT "%QMAKESPEC%" == "" (
set MAKE=mingw32-make
) else (
set MAKE=nmake
)
if "%1" == "cppcheck" goto cppcheck
if "%1" == "gui" goto gui
if "%1" == "tests" goto tests
@ -18,23 +25,22 @@ goto help
:cppcheck
cd cli
qmake
nmake
%MAKE%
cd ..
goto end
:gui
cd gui
qmake
nmake
%MAKE%
lrelease gui.pro
copy *.qm debug
cd ..
goto end
:tests
cd test
qmake
nmake
%MAKE%
cd ..
goto end