qmake: List of special platform variables
Where can I find a documented list of qmake’s platform and compiler variables, like:
win32
win64
unix
win32-msvc
…
6 replies
The list I get from the folder names in there seems to be incomplete. They do not include e.g. “win32” or “win64” without specifying a specific compiler.
However, I can still use
- win32 {
- }
- or
- win64 {
- }
in a .pro file.
Where is that documented?
(Specifically, I am looking for a single common variable for “Windows” in general, whether it be 32 or 64 bit).
[EDIT: code formatting, please wrap in @-tags, Volker]
Nope, there’s no “win” variable/scope. You can simulate this way:
- win32:CONFIG += win
- win64:CONFIG += win
- win:messag(in scope win)
- win32:messag(in scope win32)
- win32-g++:messag(in scope win32-g++)
- win32-msvc2008:messag(in scope win32-msvc2008)
This prints “win” too, without the first two lines it does not.
You must log in to post a reply. Not a member yet? Register here!



