Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qmake Variable containing the target platform
QtWS25 Last Chance

qmake Variable containing the target platform

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 557 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    WayneGoetz
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved