Improve build.bat to support building from QT prompt.
This commit is contained in:
parent
fada751442
commit
b927255da0
14
build.bat
14
build.bat
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue