summaryrefslogtreecommitdiff
path: root/src/plugins/qbsprojectmanager/qbsprojectparser.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2015-06-03 17:07:29 +0200
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2015-06-03 15:29:55 +0000
commit8eb7c3efad1e16b677098e97c66daf0eabc672c7 (patch)
treeb7fddd1931b1d77caca1f6af21d349388456cb6c /src/plugins/qbsprojectmanager/qbsprojectparser.cpp
parent294f8c5274dc292c05ff1703e6ba8ccd17165c55 (diff)
downloadqt-creator-8eb7c3efad1e16b677098e97c66daf0eabc672c7.tar.gz
Adapt to qbs' libexec infrastructure.
Change-Id: Ic2d609e017d201b7b3e0b3bcb08359652428aeaa Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/plugins/qbsprojectmanager/qbsprojectparser.cpp')
-rw-r--r--src/plugins/qbsprojectmanager/qbsprojectparser.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/qbsprojectmanager/qbsprojectparser.cpp b/src/plugins/qbsprojectmanager/qbsprojectparser.cpp
index 33de434ef9..484bae73ca 100644
--- a/src/plugins/qbsprojectmanager/qbsprojectparser.cpp
+++ b/src/plugins/qbsprojectmanager/qbsprojectparser.cpp
@@ -100,6 +100,7 @@ void QbsProjectParser::parse(const QVariantMap &config, const Environment &env,
const qbs::Preferences prefs(QbsManager::settings(), profileName);
params.setSearchPaths(prefs.searchPaths(resourcesBaseDirectory()));
params.setPluginPaths(prefs.pluginPaths(pluginsBaseDirectory()));
+ params.setLibexecPath(libExecDirectory());
m_qbsSetupProjectJob = m_project.setupProject(params, QbsManager::logSink(), 0);
@@ -163,6 +164,14 @@ QString QbsProjectParser::resourcesBaseDirectory() const
return Core::ICore::resourcePath() + QLatin1String("/qbs");
}
+QString QbsProjectParser::libExecDirectory() const
+{
+ const QString qbsInstallDir = QLatin1String(QBS_INSTALL_DIR);
+ if (!qbsInstallDir.isEmpty())
+ return qbsInstallDir + QLatin1String("/libexec");
+ return Core::ICore::libexecPath();
+}
+
QString QbsProjectParser::pluginsBaseDirectory() const
{
const QString qbsInstallDir = QLatin1String(QBS_INSTALL_DIR);