Ok, I read the docs for you:
BITSIZE = $$system(getconf LONG_BIT)
if (contains(BITSIZE, 64)) {
message($$BITSIZE)
}
if (contains(BITSIZE, 32)) {
message($$BITSIZE)
}
linux-g++ {
message(On Linux)
}
macx-g++ {
message(On Mac)
}
BITSIZE = $$system(getconf LONG_BIT)
if (contains(BITSIZE, 64)) {
message($$BITSIZE)
}
if (contains(BITSIZE, 32)) {
message($$BITSIZE)
}
linux-g++ {
message(On Linux)
}
macx-g++ {
message(On Mac)
}
To copy to clipboard, switch view to plain text mode
for
qmake -spec macx-g++ test.pro
it outputs
Project MESSAGE: 64
Project MESSAGE: On Mac
Bookmarks