diff options
author | Jake Petroules <jake.petroules@theqtcompany.com> | 2015-08-12 04:58:34 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@theqtcompany.com> | 2016-03-09 18:01:51 +0000 |
commit | 9fbbff3155b78bd6fe47872d93d97a899ac4f66a (patch) | |
tree | 0bd279744f4c1162d6955f58a2bec68f307ec11e /src/app/qbs/parser/commandlineoption.cpp | |
parent | 3a0ed06383a729a658b95644bb5dd1280f444b32 (diff) |
Add an option to require transformers to generate all declared outputs.
This ensures that a successful build cannot complete without all output
artifacts of all rules and transformers in the project existing (unless
they are marked alwaysUpdated: false).
This is undesirable to enable by default due to the potential overhead,
but can be a useful debugging tool and so is provided as an option.
Change-Id: I46ee49e28cc06d5aff9a3cfd520f929fef4de3f8
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/app/qbs/parser/commandlineoption.cpp')
-rw-r--r-- | src/app/qbs/parser/commandlineoption.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/app/qbs/parser/commandlineoption.cpp b/src/app/qbs/parser/commandlineoption.cpp index 42c167447..8a4adc63f 100644 --- a/src/app/qbs/parser/commandlineoption.cpp +++ b/src/app/qbs/parser/commandlineoption.cpp @@ -426,6 +426,18 @@ QString ForceTimeStampCheckOption::longRepresentation() const return QLatin1String("--check-timestamps"); } +QString ForceOutputCheckOption::description(CommandType command) const +{ + Q_UNUSED(command); + return Tr::tr("%1\n\tForce transformer output artifact checks.\n" + "\tVerify that the output artifacts declared by rules and transformers in the\n" + "\tproject are actually created.\n").arg(longRepresentation()); +} + +QString ForceOutputCheckOption::longRepresentation() const +{ + return QLatin1String("--check-outputs"); +} QString BuildNonDefaultOption::description(CommandType command) const { |