Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. The complete scope as used by qmake
Forum Updated to NodeBB v4.3 + New Features

The complete scope as used by qmake

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
qmakeqmake scopewildcards
2 Posts 1 Posters 948 Views 1 Watching
  • 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.
  • K Offline
    K Offline
    koahnig
    wrote on 18 Nov 2017, 13:00 last edited by
    #1

    Most of us came across different scopes in .profiles already.

    The typical example is the distinction between different OS e.g.:

    win32:message ("blabla")
    linux:message("bliblo")
    linux-*:message("whatsthis")
    

    As shown in the example there is a way to use wildcards. The example allows the distinction between windows and linux desktops and the last one is the scope for cross-compiling for a linux embedded platform.

    For avoiding confusion I like to know what the actual scope is in complete?

    What would be the way to find out?

    Vote the answer(s) that helped you to solve your issue(s)

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on 18 Nov 2017, 17:26 last edited by
      #2

      I found a solution with QMAKESPEC

      message("SPEC         " $$QMAKESPEC)
      message("SPEC         " $$basename(QMAKESPEC))
      

      The output is for instance:

      Project MESSAGE: QMAKESPEC     C:/Qt/5.4/mingw491_32/mkspecs/win32-g++
      Project MESSAGE: SPEC          win32-g++
      

      or on linux

      Project MESSAGE: QMAKESPEC      /home/bloblo/Qt/5.9.1/gcc_64/mkspecs/linux-g++
      Project MESSAGE: SPEC           linux-g++ 
      

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      3

      2/2

      18 Nov 2017, 17:26

      • Login

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