void QnxAbstractQtVersion::addToEnvironment(const ProjectExplorer::Kit *k, Utils::Environment &env) const { QtSupport::BaseQtVersion::addToEnvironment(k, env); updateEnvironment(); QnxUtils::prependQnxMapToEnvironment(m_envMap, env); env.prependOrSetLibrarySearchPath(versionInfo().value(QLatin1String("QT_INSTALL_LIBS"))); }
void QbsRunConfiguration::addToBaseEnvironment(Utils::Environment &env) const { // TODO: Use environment from Qbs! QtSupport::BaseQtVersion *qtVersion = QtSupport::QtKitInformation::qtVersion(target()->kit()); if (qtVersion) env.prependOrSetLibrarySearchPath(qtVersion->qmakeProperty("QT_INSTALL_LIBS")); }
void QnxQtVersion::addToEnvironment(const ProjectExplorer::Kit *k, Utils::Environment &env) const { QtSupport::BaseQtVersion::addToEnvironment(k, env); updateEnvironment(); env.modify(m_qnxEnv); env.prependOrSetLibrarySearchPath(qmakeProperty("QT_INSTALL_LIBS", PropertyVariantDev)); }
void QnxAbstractQtVersion::addToEnvironment(const ProjectExplorer::Kit *k, Utils::Environment &env) const { QtSupport::BaseQtVersion::addToEnvironment(k, env); if (!m_environmentUpToDate) updateEnvironment(); QMultiMap<QString, QString>::const_iterator it; QMultiMap<QString, QString>::const_iterator end(m_envMap.constEnd()); for (it = m_envMap.constBegin(); it != end; ++it) { const QString key = it.key(); const QString value = it.value(); if (key == QLatin1String("PATH")) env.prependOrSetPath(value); else if (key == QLatin1String("LD_LIBRARY_PATH")) env.prependOrSetLibrarySearchPath(value); else env.set(key, value); } env.prependOrSetLibrarySearchPath(versionInfo().value(QLatin1String("QT_INSTALL_LIBS"))); }