Skip to content
Snippets Groups Projects
Commit 4c4bb918 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Qbs: Give path to settings in Qbs build and install steps


Give the settingspath where the Qt Creator profiles are stored
in the Qbs build- and install steps.

Change-Id: I048525083fc39ca824d866e885d44325306e1030
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 158fa9c4
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@
#include "ui_qbsbuildstepconfigwidget.h"
#include <coreplugin/icore.h>
#include <projectexplorer/buildsteplist.h>
#include <projectexplorer/kit.h>
#include <projectexplorer/projectexplorerconstants.h>
......@@ -431,6 +432,8 @@ void QbsBuildStepConfigWidget::updateState()
m_ui->buildVariantComboBox->setCurrentIndex(idx);
QString command = QLatin1String("qbs build ");
command += QString::fromLatin1("--settings-dir ")
+ QDir::toNativeSeparators(Core::ICore::userResourcePath()) + QLatin1String(" ");
if (m_step->dryRun())
command += QLatin1String("--dry-run ");
if (m_step->keepGoing())
......
......@@ -35,6 +35,7 @@
#include "ui_qbsinstallstepconfigwidget.h"
#include <coreplugin/icore.h>
#include <projectexplorer/buildsteplist.h>
#include <projectexplorer/deployconfiguration.h>
#include <projectexplorer/kit.h>
......@@ -312,6 +313,8 @@ void QbsInstallStepConfigWidget::updateState()
m_ui->installRootChooser->setBaseDirectory(data.buildDirectory());
QString command = QLatin1String("qbs install ");
command += QString::fromLatin1("--settings-dir ")
+ QDir::toNativeSeparators(Core::ICore::userResourcePath()) + QLatin1String(" ");
if (m_step->dryRun())
command += QLatin1String("--dry-run ");
if (m_step->keepGoing())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment