aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/processcommandexecutor.h
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@theqtcompany.com>2014-11-05 16:50:37 +0100
committerJoerg Bornemann <joerg.bornemann@theqtcompany.com>2014-11-07 11:28:35 +0100
commitbd3764d42ed06769ce854f974c6e448ea3263e87 (patch)
treeee0dda2d66a33f58ca912ef7c89922c444622500 /src/lib/corelib/buildgraph/processcommandexecutor.h
parent842ae64080f33366715c390a5f3b338ea8dd5ff2 (diff)
add option to show command lines in build output
With "qbs build --show-command-lines" one can suppress command descriptions and show actual command lines instead. Change-Id: I98328254bad7fb85036abb0525c5ad7e734110c7 Task-number: QBS-615 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'src/lib/corelib/buildgraph/processcommandexecutor.h')
-rw-r--r--src/lib/corelib/buildgraph/processcommandexecutor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/corelib/buildgraph/processcommandexecutor.h b/src/lib/corelib/buildgraph/processcommandexecutor.h
index fc9be61e0..173115cbb 100644
--- a/src/lib/corelib/buildgraph/processcommandexecutor.h
+++ b/src/lib/corelib/buildgraph/processcommandexecutor.h
@@ -49,6 +49,7 @@ class ProcessCommandExecutor : public AbstractCommandExecutor
public:
explicit ProcessCommandExecutor(const Internal::Logger &logger, QObject *parent = 0);
+ void setShowCommandLines(bool enabled) { m_showCommandLines = enabled;}
void setProcessEnvironment(const QProcessEnvironment &processEnvironment) {
m_buildEnvironment = processEnvironment;
}
@@ -61,6 +62,7 @@ private slots:
void onProcessFinished(int exitCode);
private:
+ void doReportCommandDescription();
void doStart();
void cancel();
@@ -75,6 +77,7 @@ private:
QStringList m_arguments;
QProcess m_process;
+ bool m_showCommandLines;
QProcessEnvironment m_buildEnvironment;
QString m_responseFileName;
};