forked from qt-creator/qt-creator
Qbs: Use right path for Qt libraries
Similar to 85206e216a
for qmake.
Unify the lookup logic in BaseQtVersion.
Change-Id: Id0b0ff3127f0561ac36610ada16110b55252eb31
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
ade307d807
commit
8d523f1900
@@ -263,7 +263,7 @@ void QbsRunConfiguration::addToBaseEnvironment(Utils::Environment &env) const
|
||||
|
||||
QtSupport::BaseQtVersion *qtVersion = QtSupport::QtKitInformation::qtVersion(target()->kit());
|
||||
if (qtVersion)
|
||||
env.prependOrSetLibrarySearchPath(qtVersion->qmakeProperty("QT_INSTALL_LIBS"));
|
||||
env.prependOrSetLibrarySearchPath(qtVersion->librarySearchPath().toString());
|
||||
}
|
||||
|
||||
QString QbsRunConfiguration::buildSystemTarget() const
|
||||
|
@@ -335,12 +335,8 @@ void DesktopQmakeRunConfiguration::addToBaseEnvironment(Environment &env) const
|
||||
} // pro
|
||||
|
||||
QtSupport::BaseQtVersion *qtVersion = QtSupport::QtKitInformation::qtVersion(target()->kit());
|
||||
if (qtVersion && m_isUsingLibrarySearchPath) {
|
||||
if (HostOsInfo::isWindowsHost())
|
||||
libraryPaths << qtVersion->qmakeProperty("QT_INSTALL_BINS");
|
||||
else
|
||||
libraryPaths << qtVersion->qmakeProperty("QT_INSTALL_LIBS");
|
||||
}
|
||||
if (qtVersion && m_isUsingLibrarySearchPath)
|
||||
libraryPaths << qtVersion->librarySearchPath().toString();
|
||||
env.prependOrSetLibrarySearchPaths(libraryPaths);
|
||||
}
|
||||
|
||||
|
@@ -597,6 +597,12 @@ FileName BaseQtVersion::qmlBinPath() const
|
||||
return FileName::fromUserInput(m_mkspecValues.value(QLatin1String("QT.qml.bins")));
|
||||
}
|
||||
|
||||
FileName BaseQtVersion::librarySearchPath() const
|
||||
{
|
||||
return HostOsInfo::isWindowsHost()
|
||||
? FileName::fromUserInput(qmakeProperty("QT_INSTALL_BINS")) : libraryPath();
|
||||
}
|
||||
|
||||
FileNameList BaseQtVersion::directoriesToIgnoreInProjectTree() const
|
||||
{
|
||||
FileNameList result;
|
||||
|
@@ -215,6 +215,7 @@ public:
|
||||
Utils::FileName binPath() const;
|
||||
Utils::FileName mkspecsPath() const;
|
||||
Utils::FileName qmlBinPath() const;
|
||||
Utils::FileName librarySearchPath() const;
|
||||
|
||||
Utils::FileNameList directoriesToIgnoreInProjectTree() const;
|
||||
|
||||
|
Reference in New Issue
Block a user