Qmake flag for different android CPU/ABI ?
-
Hello all
I would like, in my .pro file, differentiate some variables depending on the Android CPU/ABI I am building for. I did not find how to do that in the qmake doc.
For the moment, I made a manual flag that I have to switch each time I change the platform I am compiling for (see example below). But i'm sure there should be an automatic mechanism for that !!!
@
PLATFORM = armeabi-v7a #x86 / armeabi / armeabi-v7a
LIBS +=
$$ANDROID_OPENCV/libs/$$PLATFORM/libopencv_contrib.a
...
@
Thanks for your help
MK -
Platform is saved in $$ANDROID_PLATFORM (see <Qt dir>/qtbase.mkspecs/android-g++/qmake.conf).