diff options
Diffstat (limited to 'src/lib/tools/buildoptions.cpp')
-rw-r--r-- | src/lib/tools/buildoptions.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/tools/buildoptions.cpp b/src/lib/tools/buildoptions.cpp index 945302e83..e836206fb 100644 --- a/src/lib/tools/buildoptions.cpp +++ b/src/lib/tools/buildoptions.cpp @@ -42,6 +42,7 @@ public: } QStringList changedFiles; + QStringList activeFileTags; int maxJobCount; bool dryRun; bool keepGoing; @@ -96,6 +97,27 @@ void BuildOptions::setChangedFiles(const QStringList &changedFiles) } /*! + * \brief The list of active file tags. + * \sa setActiveFileTags + */ +QStringList BuildOptions::activeFileTags() const +{ + return d->activeFileTags; +} + +/*! + * \brief Set the list of active file tags. + * If this list is non-empty, then every transformer with non-matching output file tags is skipped. + * E.g. set changed files to "foo.cpp" and activeFileTags to ["obj"] to run the compiler + * on foo.cpp without further processing like linking. + * \sa activeFileTags + */ +void BuildOptions::setActiveFileTags(const QStringList &fileTags) +{ + d->activeFileTags = fileTags; +} + +/*! * \brief Returns the default value for \c maxJobCount. * This value will be used when \c maxJobCount has not been set explicitly. */ |