Output parsers: Make target specific code pseudo generic

Introduce IOutputParser::setWorkingDirectory and
IOutputParser::hasFatalErrors()

Reviewed-By: hunger
This commit is contained in:
dt
2010-12-06 12:18:38 +01:00
parent f8073770ca
commit 68d6bfe33b
11 changed files with 67 additions and 29 deletions

View File

@@ -36,10 +36,13 @@
#include "qt-maemo/maemomanager.h"
#include "qt-s60/s60manager.h"
#include "qt-s60/s60projectchecker.h"
#include "qt-s60/abldparser.h"
#include "qt-s60/sbsv2parser.h"
#include "qmlobservertool.h"
#include "qmldumptool.h"
#include <projectexplorer/debugginghelper.h>
#include <projectexplorer/gnumakeparser.h>
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/cesdkhandler.h>
@@ -669,6 +672,21 @@ bool QtVersion::supportsShadowBuilds() const
return true;
}
ProjectExplorer::IOutputParser *QtVersion::createOutputParser() const
{
if (supportsTargetId(Qt4ProjectManager::Constants::S60_DEVICE_TARGET_ID) ||
supportsTargetId(Qt4ProjectManager::Constants::S60_EMULATOR_TARGET_ID)) {
if (isBuildWithSymbianSbsV2()) {
return new SbsV2Parser;
} else {
ProjectExplorer::IOutputParser *parser = new AbldParser;
parser->appendOutputParser(new ProjectExplorer::GnuMakeParser);
return parser;
}
}
return new ProjectExplorer::GnuMakeParser;
}
QList<ProjectExplorer::Task>
QtVersion::reportIssues(const QString &proFile, const QString &buildDir)
{