[Qt-interest] qmake "-=" operator on the command line
Thiago Macieira
thiago at kde.org
Sun May 29 20:58:07 CEST 2011
On Sunday, 29 de May de 2011 21:29:14 Nikos Chantziaras wrote:
> I say "intuitive" since what most people would expect (I guess) is for
> -= to remove something that was set in the project file but without the
> need to edit it. IMO this should be the default anyway, since
> command-line options usually have the highest priority over anything
> else (not a qmake-specific observation, but general Unix philosophy,
> where you have hard-coded defaults, conf files, env vars, and
> command-line options, in that order.)
I think qmake is working just like make: the options set on the command-line
override the defaults and the environment, but are visible for use in the .pro
file's parsing.
That way, you can do:
qmake FOO=bar
And process the value of FOO in the .pro file:
contains(FOO, bar): SOURCES += foo.cpp
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110529/2724adeb/attachment.bin
More information about the Qt-interest-old
mailing list