Add Deploy steps

* Add "Deploy" to BuildSteps::Type
 * Update UIs to handle deploy steps
 * Turn existing package creation steps from build type to deploy type
 * Move packaging steps into deploy steps when loading projects

Reviewed-by: dt
This commit is contained in:
Tobias Hunger
2010-07-06 17:56:01 +02:00
parent 1062c0ad8c
commit 54584044ca
8 changed files with 131 additions and 12 deletions

View File

@@ -105,22 +105,25 @@ BuildStep *MaemoPackageCreationFactory::restore(BuildConfiguration *parent,
}
bool MaemoPackageCreationFactory::canClone(BuildConfiguration *parent,
BuildStep::Type type, BuildStep *product) const
ProjectExplorer::BuildStep::Type type,
BuildStep *product) const
{
return canCreateInternally(parent, type, product->id());
}
BuildStep *MaemoPackageCreationFactory::clone(BuildConfiguration *parent,
BuildStep::Type type, BuildStep *product)
ProjectExplorer::BuildStep::Type type,
BuildStep *product)
{
Q_ASSERT(canClone(parent, type, product));
return new MaemoPackageCreationStep(parent, static_cast<MaemoPackageCreationStep *>(product));
}
bool MaemoPackageCreationFactory::canCreateInternally(BuildConfiguration *parent,
BuildStep::Type type, const QString &id) const
ProjectExplorer::BuildStep::Type type,
const QString &id) const
{
return type == ProjectExplorer::BuildStep::Build
return type == ProjectExplorer::BuildStep::Deploy
&& id == MaemoPackageCreationStep::CreatePackageId
&& parent->target()->id() == Constants::MAEMO_DEVICE_TARGET_ID;
}