summaryrefslogtreecommitdiff
path: root/src/plugins/cmakeprojectmanager
diff options
context:
space:
mode:
authorDaniel Teske <daniel.teske@digia.com>2012-11-02 12:45:09 +0100
committerDaniel Teske <daniel.teske@digia.com>2012-11-02 14:49:34 +0100
commit31e2ddd08535e792337075de86465d0360cbcf2a (patch)
tree8183158062ee9fc42799f03f1eb6e30bfbde6ae9 /src/plugins/cmakeprojectmanager
parenta36be214709f0fc524786c87812fb01202a735d8 (diff)
downloadqt-creator-31e2ddd08535e792337075de86465d0360cbcf2a.tar.gz
Kit: Add createOutputParser method
Which asks each KitInformation for their parser, thus currently creating a toolchain + qt chain if that is applicable. Remove all code that does that by hand from various buildsteps/buildconfigurations. Change-Id: I79a07ffd1dbe9a43bdbc838bc0098071aa412009 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/cmakeprojectmanager')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp14
-rw-r--r--src/plugins/cmakeprojectmanager/cmakebuildconfiguration.h2
-rw-r--r--src/plugins/cmakeprojectmanager/makestep.cpp9
3 files changed, 3 insertions, 22 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp b/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp
index 88ff7c10f9..aacada4e38 100644
--- a/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp
@@ -125,20 +125,6 @@ void CMakeBuildConfiguration::setBuildDirectory(const QString &buildDirectory)
emit environmentChanged();
}
-ProjectExplorer::IOutputParser *CMakeBuildConfiguration::createOutputParser() const
-{
- ProjectExplorer::IOutputParser *parserchain = new ProjectExplorer::GnuMakeParser;
-
- int versionId = QtSupport::QtKitInformation::qtVersionId(target()->kit());
- if (versionId >= 0)
- parserchain->appendOutputParser(new QtSupport::QtParser);
-
- ProjectExplorer::ToolChain *tc = ProjectExplorer::ToolChainKitInformation::toolChain(target()->kit());
- if (tc)
- parserchain->appendOutputParser(tc->outputParser());
- return parserchain;
-}
-
/*!
\class CMakeBuildConfigurationFactory
*/
diff --git a/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.h b/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.h
index ce769b1352..973766394c 100644
--- a/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.h
+++ b/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.h
@@ -58,8 +58,6 @@ public:
QVariantMap toMap() const;
- ProjectExplorer::IOutputParser *createOutputParser() const;
-
BuildType buildType() const;
bool useNinja() const;
diff --git a/src/plugins/cmakeprojectmanager/makestep.cpp b/src/plugins/cmakeprojectmanager/makestep.cpp
index 66fb55ba90..0a7a856ee1 100644
--- a/src/plugins/cmakeprojectmanager/makestep.cpp
+++ b/src/plugins/cmakeprojectmanager/makestep.cpp
@@ -201,12 +201,9 @@ bool MakeStep::init()
pp->setArguments(arguments);
setOutputParser(new ProjectExplorer::GnuMakeParser());
-
- QtSupport::BaseQtVersion *version = QtSupport::QtKitInformation::qtVersion(target()->kit());
- if (version)
- appendOutputParser(new QtSupport::QtParser);
- if (tc)
- appendOutputParser(tc->outputParser());
+ IOutputParser *parser = target()->kit()->createOutputParser();
+ if (parser)
+ appendOutputParser(parser);
outputParser()->setWorkingDirectory(pp->effectiveWorkingDirectory());
return AbstractProcessStep::init();