aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/qbs/parser/command.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2013-01-07 15:48:45 +0100
committerJoerg Bornemann <joerg.bornemann@digia.com>2013-01-22 12:21:38 +0100
commit5cdf94de300e72987dfbe5c0fec5b86317ad6280 (patch)
treee484cd9ccd2faae387dd3978b6eb7783c99b84b3 /src/app/qbs/parser/command.h
parent49060f9b1e2881a5e7801f59f6d237fd85da1ae1 (diff)
Introduce the "install" command.
This decouples building and installing, e.g. allowing the latter to be executed by a privileged user to a system-wide directory. In addition, the ability to install build artifacts (typically executables or libraries) has been added. Change-Id: I28e725e4c1168eebe88e12c75e3d3e9f5fe28ca5 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/app/qbs/parser/command.h')
-rw-r--r--src/app/qbs/parser/command.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/app/qbs/parser/command.h b/src/app/qbs/parser/command.h
index 4547077f1..6ebef1107 100644
--- a/src/app/qbs/parser/command.h
+++ b/src/app/qbs/parser/command.h
@@ -93,6 +93,19 @@ private:
QList<CommandLineOption::Type> supportedOptions() const;
};
+class InstallCommand : public Command
+{
+public:
+ InstallCommand(CommandLineOptionPool &optionPool) : Command(optionPool) {}
+
+private:
+ CommandType type() const { return InstallCommandType; }
+ QString shortDescription() const;
+ QString longDescription() const;
+ QString representation() const;
+ QList<CommandLineOption::Type> supportedOptions() const;
+};
+
class RunCommand : public Command
{
public: