forked from qt-creator/qt-creator
Android multi arch support
[ChangeLog][Android] Android multi arch support for qmake Change-Id: Ib8b1874604a3392130c96fbc00b26713b3d788ae Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
BogDan Vatra
parent
567a20843f
commit
6b31f9cf23
@@ -45,6 +45,8 @@
|
||||
|
||||
#include <android/androidconstants.h>
|
||||
#include <ios/iosconstants.h>
|
||||
#include <qtsupport/baseqtversion.h>
|
||||
#include <qtsupport/qtkitinformation.h>
|
||||
#include <winrt/winrtconstants.h>
|
||||
|
||||
#include <QDir>
|
||||
@@ -293,6 +295,18 @@ QVariantMap DefaultPropertyProvider::autoGeneratedProperties(const ProjectExplor
|
||||
data.insert("Android.ndk.ndkDir", ndkDir);
|
||||
}
|
||||
}
|
||||
data.remove(QBS_ARCHITECTURES);
|
||||
data.remove(QBS_ARCHITECTURE);
|
||||
QtSupport::BaseQtVersion *qtVersion = QtSupport::QtKitAspect::qtVersion(k);
|
||||
if (qtVersion) {
|
||||
QStringList abis;
|
||||
for (const auto &abi : qtVersion->qtAbis())
|
||||
abis << abi.param();
|
||||
if (abis.size() == 1)
|
||||
data.insert(QLatin1String(QBS_ARCHITECTURE), abis.first());
|
||||
else
|
||||
data.insert(QLatin1String(QBS_ARCHITECTURES), abis);
|
||||
}
|
||||
} else {
|
||||
Utils::FilePath cCompilerPath;
|
||||
if (tcC)
|
||||
|
||||
Reference in New Issue
Block a user