Solved Can pro file use #if defined(Q_OS_ANDROID)?
-
Hi,
I want to add such code to project.pro :#if defined(Q_OS_ANDROID) QT += androidextras #endif
How?
-
@Mr-Pang
no this is C/C++ macro syntax.
qmake has it's own mechanism:android-g++ { QT += androidextras }
or this should also be supported:
android { QT += androidextras }
or alternatively a one-liner:
android-g++:QT += androidextras
-
@raven-worx
Yes, this is what I need. Thanks!