[Qt-creator] pro file parsing in cumulative mode really necessary?
Oswald Buddenhagen
oswald.buddenhagen at nokia.com
Mon Apr 19 11:48:13 CEST 2010
On Sat, Apr 17, 2010 at 01:39:19AM +0200, ext Tilman Vogel wrote:
> The symptoms I was seeing were that depending on whether I had
>
> SRCDIR=../src
>
> or something like
>
> SRCDIR=../src
> SRCDIR=../src
>
> in my pri file, source files were listed or not listed in the project
> tree. Later, there are statements
>
> include($$SRCDIR/abc/def.pri)
>
that's because cumulative mode will effectively make SRCDIR = "../src" "../src"
which will then expand to include("../src ../src/abc/def.pri") which is
obviously bogus.
the "combined parsing" daniel mentioned will solve the particular issue
that nothing is included at all, but it will miss the other possible
values of SCRDIR which are not in the current build configuration.
to make creator-friendly projects, try to avoid such clever constructs.
instead, make distinct complete include statementes which are executed
conditionally.
> Another side-note: qmake seems to accept the following (admittedly
> strange) call
>
> OUTPUT=$$replace(INPUT,string,)
>
> and interprets it as to replace "string" by "" in $$INPUT.
>
yes
> However, the implementation in profileevaluator.cpp sets OUTPUT to the
> empty string instead.
>
how did you determine that?
More information about the Qt-creator-old
mailing list