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