Unsolved Qt Creator project file how to detect current android abi compilation
-
Hi all
Using new Qt 5.14 there is the option to compile the same project for the four platform (x86, x86_64,armeabi7, armeabi8) in a single copilation and include all inside abb file. Cause I need to costumize only one makefile for a specific platform I'm looking for a way to know, inside the project file, the current platform generation. Something like:
if(ANDROID_ABI == "x86") { // do something }
However I dind't find a variable informing me the current process is for generate x86, x86_64 and so on makefile. There is the ANDROID_ABIS containing the list of all selected platform but how to know which platform is currently on elaboration?
Thank you -
You can get the current arch from
QT_ARCH
like this:equals(QT_ARCH, "armeabi-v7a") { } equals(QT_ARCH, "arm64-v8a") { } equals(QT_ARCH, "x86") { } equals(QT_ARCH, "x86_64") { }
-
Than you, it's exactly what I needed!
However why this variable is not reported in the official documentation here?
https://doc.qt.io/qt-5/qmake-variable-reference.html
Is there another updtated documentation around?
-
@FalsinSoft said in Qt Creator project file how to detect current android abi compilation:
Than you, it's exactly what I needed!
However why this variable is not reported in the official documentation here?
https://doc.qt.io/qt-5/qmake-variable-reference.html
Is there another updtated documentation around?
Good question, I don't know. It should probably be added to the documentation. Please open a feature request on Qt bugtracker for it.