qmake conditional for RaspberryPi
This worked for me:
linux {
contains(QMAKE_HOST.arch, arm.*):{
raspberry's bla bla bla
}else{
...
}
}
I hope it works for you.
http://doc.qt.io/qt-5/qmake-variable-reference.html#qmake-host