forked from qt-creator/qt-creator
Fixes: Add a makeCommand() virtual function to ToolChain
Details: Move that code from qt4project to a common class.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user