diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2014-10-28 15:39:15 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2014-10-31 11:08:17 +0100 |
commit | 0d1b18c7ad5bbfe4507f33d5f726b46f39d08677 (patch) | |
tree | 270034545db1c5682dd50719402125ca1035090b /src/lib/corelib/api/project.h | |
parent | 29a977873bc2d8d46926de5f60d1e78da82fde74 (diff) |
Make information about commands available via the API.
Users can supply a file path and a tag, and
they will get the list of commands that are run
to create an output file with the given tag from
the given input file.
This information is needed by Qt Creator.
Change-Id: I36f92c200e78831733fccc4f7b5f54b8218d6311
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/lib/corelib/api/project.h')
-rw-r--r-- | src/lib/corelib/api/project.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/corelib/api/project.h b/src/lib/corelib/api/project.h index 50abb3614..d943a86d8 100644 --- a/src/lib/corelib/api/project.h +++ b/src/lib/corelib/api/project.h @@ -30,6 +30,7 @@ #ifndef QBS_PROJECT_H #define QBS_PROJECT_H +#include "rulecommand.h" #include "../language/forward_decls.h" #include "../tools/qbs_export.h" @@ -125,6 +126,9 @@ public: QSet<QString> buildSystemFiles() const; + RuleCommandList ruleCommands(const ProductData &product, const QString &inputFilePath, + const QString &outputFileTag, ErrorInfo *error = 0) const; + #ifdef QBS_ENABLE_PROJECT_FILE_UPDATES ErrorInfo addGroup(const ProductData &product, const QString &groupName); ErrorInfo addFiles(const ProductData &product, const GroupData &group, |