HAVE_RULES support for build.bat
Let the user's setting of the HAVE_RULES environment variable affect build.bat's calls to qmake.
This commit is contained in:
parent
4373f0a812
commit
ef0ca2b979
|
@ -14,8 +14,7 @@ If you're using qmake to generate makefiles, the following behavior applies:
|
||||||
by passing HAVE_RULES=yes to qmake.
|
by passing HAVE_RULES=yes to qmake.
|
||||||
|
|
||||||
- Note: This includes using build.bat since it calls qmake - to use PCRE and
|
- Note: This includes using build.bat since it calls qmake - to use PCRE and
|
||||||
build.bat, you need to edit build.bat to add HAVE_RULES=yes to the
|
build.bat, you need to run set HAVE_RULES=yes before each run of build.bat
|
||||||
qmake call.
|
|
||||||
|
|
||||||
|
|
||||||
Some temporary build instructions. This is work in progress.
|
Some temporary build instructions. This is work in progress.
|
||||||
|
|
|
@ -7,6 +7,9 @@ REM where <target> is any of cppcheck/gui/tests/all
|
||||||
REM release or debug is the configuration
|
REM release or debug is the configuration
|
||||||
REM all-target builds both cppcheck and gui.
|
REM all-target builds both cppcheck and gui.
|
||||||
REM
|
REM
|
||||||
|
REM Run the command before build.bat to enable rules using pcre:
|
||||||
|
REM set HAVE_RULES=yes
|
||||||
|
REM
|
||||||
REM TODO:
|
REM TODO:
|
||||||
REM - run tests too
|
REM - run tests too
|
||||||
|
|
||||||
|
@ -31,7 +34,7 @@ goto help
|
||||||
|
|
||||||
:cppcheck
|
:cppcheck
|
||||||
cd cli
|
cd cli
|
||||||
qmake -config %TARGET%
|
qmake -config %TARGET% HAVE_RULES=%HAVE_RULES%
|
||||||
%MAKE%
|
%MAKE%
|
||||||
cd ..
|
cd ..
|
||||||
if "%1" == "all" goto gui
|
if "%1" == "all" goto gui
|
||||||
|
@ -39,7 +42,7 @@ goto end
|
||||||
|
|
||||||
:gui
|
:gui
|
||||||
cd gui
|
cd gui
|
||||||
qmake -config %TARGET%
|
qmake -config %TARGET% HAVE_RULES=%HAVE_RULES%
|
||||||
%MAKE%
|
%MAKE%
|
||||||
lrelease gui.pro
|
lrelease gui.pro
|
||||||
cd ..
|
cd ..
|
||||||
|
@ -47,7 +50,7 @@ goto end
|
||||||
|
|
||||||
:tests
|
:tests
|
||||||
cd test
|
cd test
|
||||||
qmake -config %TARGET%
|
qmake -config %TARGET% HAVE_RULES=%HAVE_RULES%
|
||||||
%MAKE%
|
%MAKE%
|
||||||
cd ..
|
cd ..
|
||||||
goto end
|
goto end
|
||||||
|
|
Loading…
Reference in New Issue