Progress so far

This commit is contained in:
dt
2010-03-31 15:22:25 +02:00
parent e4d5d004b3
commit b1a121c54f
8 changed files with 52 additions and 11 deletions

View File

@@ -33,6 +33,7 @@
#include "projectexplorersettings.h"
#include "gccparser.h"
#include "msvcparser.h"
#include "linuxiccparser.h"
#include <QtCore/QDebug>
#include <QtCore/QFileInfo>
@@ -83,6 +84,11 @@ ToolChain *ToolChain::createMinGWToolChain(const QString &gcc, const QString &mi
return new MinGWToolChain(gcc, mingwPath);
}
ToolChain *ToolChain::createLinuxIccToolChain()
{
return new LinuxIccToolChain();
}
ToolChain *ToolChain::createMSVCToolChain(const QString &name, bool amd64)
{
return MSVCToolChain::create(name, amd64);
@@ -124,8 +130,8 @@ QString ToolChain::toolChainName(ToolChainType tc)
switch (tc) {
case GCC:
return QCoreApplication::translate("ToolChain", "GCC");
// case LinuxICC:
// return QCoreApplication::translate("ToolChain", "Intel C++ Compiler (Linux)");
case LINUX_ICC:
return QCoreApplication::translate("ToolChain", "Intel C++ Compiler (Linux)");
case MinGW:
return QString::fromLatin1("MinGW");
case MSVC:
@@ -319,6 +325,21 @@ IOutputParser *MinGWToolChain::outputParser() const
return new GccParser;
}
LinuxIccToolChain::LinuxIccToolChain()
: GccToolChain(QLatin1String("icpc"))
{
}
ToolChain::ToolChainType LinuxIccToolChain::type() const
{
return ToolChain::LINUX_ICC;
}
IOutputParser *LinuxIccToolChain::outputParser() const
{
return new LinuxIccParser;
}
// ---------------- MSVC installation location code
// Format the name of an SDK or VC installation version with platform