[Qt-interest] qmake platform scope values

Constantin Makshin cmakshin at gmail.com
Mon Oct 11 22:26:52 CEST 2010


Base/generic platform scopes are:
win32
mac
unix
x11
symbian
maemo5

Be careful with the Symbian version of Qt because it uses both "symbian" and "unix" scopes.

I don't know about the Simulator version of Qt because it isn't a platform in the usual sense of this word, but mimics other mobile platforms.

On Sunday 10 October 2010 21:18:05 Harri Pasanen wrote:
> Hi,
> 
> I was trying to use platform scope values to differentiate between Maemo, 
> Symbian, Simulator.
> 
> (doc in qmake Advance Usage: Platform Scope Values)
> 
> If I add:
> 
>  message($$QMAKESPEC)
> 
> it just spits out empty "Project MESSAGE" when running qmake for Maemo or 
> Desktop in Qt Creator.
> 
> And indeed I don't see any spec for Simulator or Maemo in mkspecs.
> 
> I managed to work around this by adding CONFIG += desktop
> to qmake arguments in project definitions, and then doing
> 
> desktop {
>   ...
> }
> in .pro file.
> 
> That works, but is a bit cumbersome as I need to do it manually for both 
> release and debug.
> 
> 
> Any other suggestions?



More information about the Qt-interest-old mailing list