[Development] QCONFIG_FLAGS vs defines
Thiago Macieira
thiago.macieira at intel.com
Fri Dec 5 19:59:01 CET 2014
On Friday 05 December 2014 18:29:02 Jeremy Lainé wrote:
> I see some other defines are added by like this:
>
> QMakeVar add DEFINES QT_NO_MTDEV
>
> ..which results in this -DQT_NO_MTDEV being passed directly to the compiler
> (which works for iOS too). Is this what I should be doing instead?
Please don't do that. That results in this flag getting passed to EVERY SINGLE
file, including Qt modules that have nothing to do with mtdev. I could be
wrong, but I think it also gets passed to user applications.
And you know how some OS have limitations on command-line length. It's
preferable to have a shorter line so we can actually read the command-line to
reproduce issues.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list