summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/kitinformation.cpp
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/projectexplorer/kitinformation.cpp
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/projectexplorer/kitinformation.cpp')
-rw-r--r--src/plugins/projectexplorer/kitinformation.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/kitinformation.cpp b/src/plugins/projectexplorer/kitinformation.cpp
index 6d0b3a6406..1ee06ab73d 100644
--- a/src/plugins/projectexplorer/kitinformation.cpp
+++ b/src/plugins/projectexplorer/kitinformation.cpp
@@ -207,6 +207,14 @@ void ToolChainKitInformation::addToEnvironment(const Kit *k, Utils::Environment
tc->addToEnvironment(env);
}
+IOutputParser *ToolChainKitInformation::createOutputParser(const Kit *k) const
+{
+ ToolChain *tc = toolChain(k);
+ if (tc)
+ return tc->outputParser();
+ return 0;
+}
+
ToolChain *ToolChainKitInformation::toolChain(const Kit *k)
{
if (!k)