Make release the default target in build.bat.
This commit is contained in:
parent
d1b43c521d
commit
888fe5ac9d
10
build.bat
10
build.bat
|
@ -19,6 +19,10 @@ if NOT "%QMAKESPEC%" == "" (
|
||||||
set MAKE=nmake
|
set MAKE=nmake
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if "%2" == "" set TARGET=release
|
||||||
|
if "%2" == "release" set TARGET=release
|
||||||
|
if "%2" == "debug" set TARGET=debug
|
||||||
|
|
||||||
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
|
||||||
|
@ -26,14 +30,14 @@ goto help
|
||||||
|
|
||||||
:cppcheck
|
:cppcheck
|
||||||
cd cli
|
cd cli
|
||||||
qmake -config %2
|
qmake -config %TARGET%
|
||||||
%MAKE%
|
%MAKE%
|
||||||
cd ..
|
cd ..
|
||||||
goto end
|
goto end
|
||||||
|
|
||||||
:gui
|
:gui
|
||||||
cd gui
|
cd gui
|
||||||
qmake -config %2
|
qmake -config %TARGET%
|
||||||
%MAKE%
|
%MAKE%
|
||||||
lrelease gui.pro
|
lrelease gui.pro
|
||||||
cd ..
|
cd ..
|
||||||
|
@ -41,7 +45,7 @@ goto end
|
||||||
|
|
||||||
:tests
|
:tests
|
||||||
cd test
|
cd test
|
||||||
qmake -config %2
|
qmake -config %TARGET%
|
||||||
%MAKE%
|
%MAKE%
|
||||||
cd ..
|
cd ..
|
||||||
goto end
|
goto end
|
||||||
|
|
Loading…
Reference in New Issue