Fixes: Add a makeCommand() virtual function to ToolChain

Details:  Move that code from qt4project to a common class.
This commit is contained in:
dt
2009-03-16 18:13:45 +01:00
parent bcdad2197d
commit 84ce2e5b70
8 changed files with 32 additions and 22 deletions

View File

@@ -154,6 +154,11 @@ void GccToolChain::addToEnvironment(ProjectExplorer::Environment &env)
Q_UNUSED(env)
}
QString GccToolChain::makeCommand() const
{
return "make";
}
bool GccToolChain::equals(ToolChain *other) const
{
return (m_gcc == static_cast<GccToolChain *>(other)->m_gcc);
@@ -186,6 +191,11 @@ void MinGWToolChain::addToEnvironment(ProjectExplorer::Environment &env)
// qDebug()<<"Adding "<<binDir<<" to the PATH";
}
QString MinGWToolChain::makeCommand() const
{
return "mingw32-make.exe";
}
MSVCToolChain::MSVCToolChain(const QString &name)
: m_name(name), m_valuesSet(false)
@@ -293,6 +303,11 @@ void MSVCToolChain::addToEnvironment(ProjectExplorer::Environment &env)
}
QString MSVCToolChain::makeCommand() const
{
return "nmake.exe";
}
WinCEToolChain::WinCEToolChain(const QString &name, const QString &platform)
: MSVCToolChain(name), m_platform(platform)
{