[Qt-creator] pro file parsing in cumulative mode really necessary?
Daniel Teske
daniel.teske at Nokia.com
Mon Apr 19 11:02:40 CEST 2010
Hi,
>
> I didn't find any negative side effects, so I ask myself whether
> cumulative mode here is really beneficial for anything at all?
>
Yes it is. In cumulative mode the following is parsed as if both if
branches are taken, regardless of platform.
win32 {
SOURCES += process_win.cpp
}
unix {
SOURCRS += process_unix.cpp
}
The cumulative mode is based on the linguist parsing of .pro files which
tries to find all the releveant source files regardless of scoping.
In master and thus in the 2.0 final and the not yet released beta we
parse the .pro files twice (completly oversimplified) and thus should
handle your case correctly.
I'd aprreciate if you could report after the beta if that is indeed the
case.
> 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. However, the
> implementation in profileevaluator.cpp sets OUTPUT to the empty string
> instead.
>
I'll let our qmake expert comment on that.
And please report any discrepancies between our parser and qmake's one,
those are interesting for us.
More information about the Qt-creator-old
mailing list