Commit a5c7d465 authored by Christian Kamm's avatar Christian Kamm

Debugging helpers: Only build qmldump/qmlobserver for desktop targets.

Task-number: QTCREATORBUG-2575
Reviewed-by: Kai Koehne
parent d6575ef3
...@@ -130,7 +130,8 @@ bool QmlDumpTool::canBuild(const QtVersion *qtVersion) ...@@ -130,7 +130,8 @@ bool QmlDumpTool::canBuild(const QtVersion *qtVersion)
{ {
const QString installHeaders = qtVersion->versionInfo().value("QT_INSTALL_HEADERS"); const QString installHeaders = qtVersion->versionInfo().value("QT_INSTALL_HEADERS");
const QString header = installHeaders + QLatin1String("/QtDeclarative/private/qdeclarativemetatype_p.h"); const QString header = installHeaders + QLatin1String("/QtDeclarative/private/qdeclarativemetatype_p.h");
return checkMinimumQtVersion(qtVersion->qtVersionString(), 4, 7, 1) || QFile::exists(header); return qtVersion->supportsTargetId(Constants::DESKTOP_TARGET_ID)
&& (checkMinimumQtVersion(qtVersion->qtVersionString(), 4, 7, 1) || QFile::exists(header));
} }
static QtVersion *qtVersionForProject(ProjectExplorer::Project *project) static QtVersion *qtVersionForProject(ProjectExplorer::Project *project)
......
...@@ -53,7 +53,8 @@ static inline QStringList validBinaryFilenames() ...@@ -53,7 +53,8 @@ static inline QStringList validBinaryFilenames()
bool QmlObserverTool::canBuild(const QtVersion *qtVersion) bool QmlObserverTool::canBuild(const QtVersion *qtVersion)
{ {
return checkMinimumQtVersion(qtVersion->qtVersionString(), 4, 7, 1); return qtVersion->supportsTargetId(Constants::DESKTOP_TARGET_ID)
&& checkMinimumQtVersion(qtVersion->qtVersionString(), 4, 7, 1);
} }
QString QmlObserverTool::toolForProject(ProjectExplorer::Project *project) QString QmlObserverTool::toolForProject(ProjectExplorer::Project *project)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment