qmake Variable containing the target platform



  • Hi,

    I would like to add code like this into my .pro file:

    DESTDIR = build/$$TARGET_PLATFORM
    

    But I do not know which variable I could use for "$$TARGET_PLATFORM". It should be something like "linux", "ios", "android" etc.

    Thanks,
    Nathan


  • Lifetime Qt Champion

    Hi,

    You can doit using scopes:

    win32: TARGET_PLATFORM = windows
    

    However, why do you want that ? Shadow builds are usually a better idea since they provide a separated builder for each platform and debug/release builds.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.