forked from qt-creator/qt-creator
Android: Avoid toolchain check for QML projects
Change-Id: I4d70b696bd5e8ea5460d20f13ba3ac72550e48c3 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -63,10 +63,13 @@ AndroidDeployConfigurationFactory::AndroidDeployConfigurationFactory()
|
|||||||
|
|
||||||
QList<QString> AndroidDeployConfigurationFactory::availableBuildTargets(Target *parent) const
|
QList<QString> AndroidDeployConfigurationFactory::availableBuildTargets(Target *parent) const
|
||||||
{
|
{
|
||||||
ToolChain *tc = ToolChainKitInformation::toolChain(parent->kit(), ProjectExplorer::Constants::CXX_LANGUAGE_ID);
|
if (!parent->project()->id().name().startsWith("QmlProjectManager.QmlProject")) {
|
||||||
|
// Avoid tool chain check for QML Project
|
||||||
if (!tc || tc->targetAbi().osFlavor() != Abi::AndroidLinuxFlavor)
|
Core::Id cxxLangId(ProjectExplorer::Constants::CXX_LANGUAGE_ID);
|
||||||
return {};
|
ToolChain *tc = ToolChainKitInformation::toolChain(parent->kit(), cxxLangId);
|
||||||
|
if (!tc || tc->targetAbi().osFlavor() != Abi::AndroidLinuxFlavor)
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
QtSupport::BaseQtVersion *qt = QtSupport::QtKitInformation::qtVersion(parent->kit());
|
QtSupport::BaseQtVersion *qt = QtSupport::QtKitInformation::qtVersion(parent->kit());
|
||||||
if (!qt || qt->type() != Constants::ANDROIDQT)
|
if (!qt || qt->type() != Constants::ANDROIDQT)
|
||||||
|
Reference in New Issue
Block a user