forked from qt-creator/qt-creator
Android: Detect available Ndk platforms also for recent Ndk versions
In order to detect the list of platforms that an Ndk installation supports, AndroidConfig::availableNdkPlatforms iterates through the directories of the Ndk. The directory structure of the Ndk changed in the recent versions. So that the detection that works with Ndk 19 does not work with Ndk 23. Also, the new directory structure is split up by Android ABI. And the lists of supported platforms differ between ABI. This change adds detection for the new structure, in case that the old implementation fails to return a list. It also adds an autotest that covers the old and new detection of supported platforms. Fixes: QTCREATORBUG-26772 Change-Id: I6e584963f51feca0bf90c7ed3a9fdb03cb5d39e6 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
@@ -135,7 +135,8 @@ public:
|
||||
Utils::FilePath avdManagerToolPath() const;
|
||||
|
||||
Utils::FilePath toolchainPath(const QtSupport::QtVersion *qtVersion) const;
|
||||
static Utils::FilePath toolchainPathFromNdk(const Utils::FilePath &ndkLocation);
|
||||
static Utils::FilePath toolchainPathFromNdk(const Utils::FilePath &ndkLocation,
|
||||
Utils::OsType hostOs = Utils::HostOsInfo::hostOs());
|
||||
static Utils::FilePath clangPathFromNdk(const Utils::FilePath &ndkLocation);
|
||||
|
||||
Utils::FilePath gdbPath(const ProjectExplorer::Abi &abi, const QtSupport::QtVersion *qtVersion) const;
|
||||
|
||||
Reference in New Issue
Block a user