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 - add "all" target
REM - run tests too 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" == "cppcheck" goto cppcheck
if "%1" == "gui" goto gui if "%1" == "gui" goto gui
if "%1" == "tests" goto tests if "%1" == "tests" goto tests
@ -18,23 +25,22 @@ goto help
:cppcheck :cppcheck
cd cli cd cli
qmake qmake
nmake %MAKE%
cd .. cd ..
goto end goto end
:gui :gui
cd gui cd gui
qmake qmake
nmake %MAKE%
lrelease gui.pro lrelease gui.pro
copy *.qm debug
cd .. cd ..
goto end goto end
:tests :tests
cd test cd test
qmake qmake
nmake %MAKE%
cd .. cd ..
goto end goto end