[Interest] explore contents of built in qmake variables
a1291762 at gmail.com
Wed Nov 28 06:32:10 CET 2012
On 28/11/12 15:25, Sergey wrote:
> is there a way to find out total contents of QT_CONFIG, CONFIG qmake
> Are they arrays?
> Can I somehow print their contents?
> I know how to test, if config contains something, for example:
> contains(QT_CONFIG, system-zlib) : message("system-zlib")
> But how to print ALL CONTENTS of QT_CONFIG?
message(QT_CONFIG = $$QT_CONFIG)
However, qmake is a strictly imperative environment so it will print the
value of QT_CONFIG at the time you hit the message() call. The value may
be changed later.
You can run qmake -d -d -d and it will dump a (very verbose) log showing
exactly when variables change. It includes the final value of all the
variables at the end.
More information about the Interest