While there isn’t anything readily defined, it’s not too difficult to make such target dependent sections and defines yourself. In the .spec file you can pass whatever assignments you want to qmake. And then in the pro file you can test for them. And finally, in your target dependent section you can add the DEFINEs you want. So, something like this should work: