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. Where to find .pro (PROJECT) defines like "unix", "linux" & "win32" and rules about how they are set?

Where to find .pro (PROJECT) defines like "unix", "linux" & "win32" and rules about how they are set?

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 2.1k 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.
  • S Offline
    S Offline
    st2000
    wrote on last edited by
    #1

    -bq. bq. -What is the best way to set up conditional compilation when working on a Linux simulation that is compiling to an x86 platform verses creating the target binaries on a MIPS platform. Both are Unix. So using "unix" is confusing. Are there other options?

    -thanks

    1 Reply Last reply
    0
    • S Offline
      S Offline
      st2000
      wrote on last edited by
      #2

      I changed the title to be specific.

      I want to know in the project file if I am compiling for Linux desktop or Linux target.

      -thanks

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        These "defines" are set in the qmake mkspecs. You find them in the mkspecs directory in your Qt installation. I'm not sure whether some of them are hard coded in the qmake binary. You'll need to dig around yourself a bit here.

        http://www.catb.org/~esr/faqs/smart-questions.html

        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