Commit 99df3765 authored by Tobias Hunger's avatar Tobias Hunger

QtVersion: Add some helper methods to query details on a Qt version

Change-Id: I7b46889a5bda280730d4585f7dc726835684db39
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 82ab15e4
......@@ -323,6 +323,41 @@ QList<ProjectExplorer::Task> BaseQtVersion::validateKit(const ProjectExplorer::K
return result;
}
FileName BaseQtVersion::headerPath() const
{
return Utils::FileName::fromUserInput(qmakeProperty("QT_INSTALL_HEADERS"));
}
FileName BaseQtVersion::libraryPath() const
{
return Utils::FileName::fromUserInput(qmakeProperty("QT_INSTALL_LIBS"));
}
FileName BaseQtVersion::binPath() const
{
return Utils::FileName::fromUserInput(qmakeProperty("QT_HOST_BINS"));
}
Utils::FileName QtSupport::BaseQtVersion::mkspecsPath() const
{
Utils::FileName result = Utils::FileName::fromUserInput(qmakeProperty("QT_HOST_DATA"));
if (result.isEmpty())
result = Utils::FileName::fromUserInput(qmakeProperty("QMAKE_MKSPECS"));
else
result.appendPath(QLatin1String("mkspecs"));
return result;
}
QString QtSupport::BaseQtVersion::qtNamespace() const
{
return qmakeProperty("QT_NAMESPACE");
}
QString QtSupport::BaseQtVersion::qtLibInfix() const
{
return qmakeProperty("QT_LIBINFIX");
}
void BaseQtVersion::setId(int id)
{
m_id = id;
......
......@@ -191,7 +191,6 @@ public:
static Utils::FileName mkspecDirectoryFromVersionInfo(const QHash<QString, QString> &versionInfo);
static Utils::FileName mkspecFromVersionInfo(const QHash<QString, QString> &versionInfo);
virtual bool supportsBinaryDebuggingHelper() const;
virtual QString gdbDebuggingHelperLibrary() const;
virtual QString qmlDebuggingHelperLibrary(bool debugVersion) const;
......@@ -220,6 +219,14 @@ public:
virtual QList<ProjectExplorer::Task> validateKit(const ProjectExplorer::Kit *k);
Utils::FileName headerPath() const;
Utils::FileName libraryPath() const;
Utils::FileName binPath() const;
Utils::FileName mkspecsPath() const;
QString qtNamespace() const;
QString qtLibInfix() const;
protected:
BaseQtVersion();
BaseQtVersion(const Utils::FileName &path, bool isAutodetected = false, const QString &autodetectionSource = QString());
......
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