summaryrefslogtreecommitdiff
path: root/src/plugins/genericprojectmanager/genericbuildconfiguration.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@digia.com>2013-07-24 12:42:24 +0200
committerMichal Klocek <michal.klocek@digia.com>2013-10-01 15:50:30 +0200
commitac6a3fd5c70d7f999a739d229bdea18eb45eb240 (patch)
treeee7ff89c05d46e1ccaf47e96c4224310d3e11212 /src/plugins/genericprojectmanager/genericbuildconfiguration.h
parent321ac6cc51009ed93ba4d6dbc3b684b3f00e437e (diff)
downloadqt-creator-ac6a3fd5c70d7f999a739d229bdea18eb45eb240.tar.gz
BuildConfigurationFactory: Introduce priorities
Introduce priorities for build configuration factories. This way plugins can register specialized build configuration factories, that e.g. can provide additional build steps. A negative priority signifies that a factory is not prepared to handle a request, the default build configuration factory shipped by the build system plugin will report a priority of 0. Add 100 to that for each specialization you add (e.g. a remote linux buildconfiguration factory would report 100, a specialization of that for mer will should report 200, etc.). Change-Id: I141a7a5a79166afdb7657d46eb7e86bd18d3abf6 Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: Michal Klocek <michal.klocek@digia.com>
Diffstat (limited to 'src/plugins/genericprojectmanager/genericbuildconfiguration.h')
-rw-r--r--src/plugins/genericprojectmanager/genericbuildconfiguration.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/genericprojectmanager/genericbuildconfiguration.h b/src/plugins/genericprojectmanager/genericbuildconfiguration.h
index aca2452d65..d2f1880f48 100644
--- a/src/plugins/genericprojectmanager/genericbuildconfiguration.h
+++ b/src/plugins/genericprojectmanager/genericbuildconfiguration.h
@@ -72,9 +72,9 @@ public:
explicit GenericBuildConfigurationFactory(QObject *parent = 0);
~GenericBuildConfigurationFactory();
- bool canCreate(const ProjectExplorer::Target *parent) const;
+ int priority(const ProjectExplorer::Target *parent) const;
QList<ProjectExplorer::BuildInfo *> availableBuilds(const ProjectExplorer::Target *parent) const;
- bool canSetup(const ProjectExplorer::Kit *k, const QString &projectPath) const;
+ int priority(const ProjectExplorer::Kit *k, const QString &projectPath) const;
QList<ProjectExplorer::BuildInfo *> availableSetups(const ProjectExplorer::Kit *k,
const QString &projectPath) const;
ProjectExplorer::BuildConfiguration *create(ProjectExplorer::Target *parent,