diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-04-07 13:46:50 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-04-11 12:15:52 +0000 |
commit | b2be9b5b0a567fd321d287a7691033a1505e7381 (patch) | |
tree | c1cb269ae1da069128ee7a33d324adf467b66611 /src/plugins/qbsprojectmanager/qbsproject.h | |
parent | 27c8c748136b12869a3896d81e3e0fe6abdd8826 (diff) | |
download | qt-creator-b2be9b5b0a567fd321d287a7691033a1505e7381.tar.gz |
QbsProjectManager: Add "clean" and "rebuild" actions for products
... and sub-projects. We used to have only the "build" action for these.
Task-number: QTCREATORBUG-15919
Change-Id: I31d06498c0cdadb8a8738be521a98e8b03de32ee
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/plugins/qbsprojectmanager/qbsproject.h')
-rw-r--r-- | src/plugins/qbsprojectmanager/qbsproject.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/qbsprojectmanager/qbsproject.h b/src/plugins/qbsprojectmanager/qbsproject.h index dd24093e42..6c787ef449 100644 --- a/src/plugins/qbsprojectmanager/qbsproject.h +++ b/src/plugins/qbsprojectmanager/qbsproject.h @@ -77,7 +77,8 @@ public: const qbs::GroupData &groupData); qbs::BuildJob *build(const qbs::BuildOptions &opts, QStringList products, QString &error); - qbs::CleanJob *clean(const qbs::CleanOptions &opts); + qbs::CleanJob *clean(const qbs::CleanOptions &opts, const QStringList &productNames, + QString &error); qbs::InstallJob *install(const qbs::InstallOptions &opts); static ProjectExplorer::FileType fileTypeFor(const QSet<QString> &tags); @@ -140,6 +141,9 @@ private: static bool ensureWriteableQbsFile(const QString &file); + template<typename Options> qbs::AbstractJob *buildOrClean(const Options &opts, + const QStringList &productNames, QString &error); + QHash<ProjectExplorer::Target *, qbs::Project> m_qbsProjects; qbs::Project m_qbsProject; qbs::ProjectData m_projectData; |