Make BuildSteps one instance per BuildConfiguration

Enables users to change which buildsteps get run per buildconfiguration.
Some further tweaks are probably necessary. This is a rather big
change, though it should work. :)
This commit is contained in:
dt
2009-10-27 14:16:28 +01:00
parent ab038986a2
commit 0d162be22f
41 changed files with 782 additions and 1393 deletions

View File

@@ -257,12 +257,17 @@ void Qt4Manager::runQMakeContextMenu()
void Qt4Manager::runQMake(ProjectExplorer::Project *p)
{
QMakeStep *qs = qobject_cast<Qt4Project *>(p)->qmakeStep();
ProjectExplorer::BuildConfiguration *bc = p->activeBuildConfiguration();
QMakeStep *qs = 0;
foreach(BuildStep *bs, bc->buildSteps())
if ((qs = qobject_cast<QMakeStep *>(bs)) != 0)
break;
if (!qs)
return;
//found qmakeStep, now use it
qs->setForced(true);
m_projectExplorer->buildManager()->appendStep(qs, p->activeBuildConfiguration()->name());
m_projectExplorer->buildManager()->appendStep(qs);
}
QString Qt4Manager::fileTypeId(ProjectExplorer::FileType type)