OSDN Git Service

Maemo: Adapt to new deploy configuration approach.
authorck <qt-info@nokia.com>
Mon, 2 Aug 2010 14:01:02 +0000 (16:01 +0200)
committerck <qt-info@nokia.com>
Mon, 2 Aug 2010 14:01:53 +0000 (16:01 +0200)
Reviewed-by: Tobias Hunger
src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.cpp
src/plugins/qt4projectmanager/qt-maemo/maemoglobal.h
src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationstep.cpp
src/plugins/qt4projectmanager/qt-maemo/maemorunconfiguration.cpp

index 61bbcc8..39d65d4 100644 (file)
@@ -158,7 +158,7 @@ void MaemoDeployStep::getDeployTimesFromMap(const QVariantMap &map)
 const MaemoPackageCreationStep *MaemoDeployStep::packagingStep() const
 {
     const MaemoPackageCreationStep * const step
-        = MaemoGlobal::buildStep<MaemoPackageCreationStep>(buildConfiguration());
+        = MaemoGlobal::buildStep<MaemoPackageCreationStep>(target()->activeDeployConfiguration());
     Q_ASSERT_X(step, Q_FUNC_INFO,
         "Impossible: Maemo build configuration without packaging step.");
     return step;
index cd98d3b..a43edb6 100644 (file)
@@ -30,7 +30,7 @@
 #ifndef MAEMOGLOBAL_H
 #define MAEMOGLOBAL_H
 
-#include <projectexplorer/buildconfiguration.h>
+#include <projectexplorer/deployconfiguration.h>
 #include <projectexplorer/environment.h>
 #include <projectexplorer/buildsteplist.h>
 #include <projectexplorer/projectexplorerconstants.h>
@@ -53,9 +53,9 @@ public:
     static QString remoteEnvironment(const QList<ProjectExplorer::EnvironmentItem> &list);
     static QString remoteProjectSourcesMountPoint();
 
-    template<class T> static T *buildStep(const ProjectExplorer::BuildConfiguration *bc)
+    template<class T> static T *buildStep(const ProjectExplorer::DeployConfiguration *dc)
     {
-        ProjectExplorer::BuildStepList *bsl = bc->stepList(QLatin1String(ProjectExplorer::Constants::BUILDSTEPS_DEPLOY));
+        ProjectExplorer::BuildStepList *bsl = dc->stepList();
         if (!bsl)
             return 0;
         const QList<ProjectExplorer::BuildStep *> &buildSteps = bsl->steps();
index f3da6f1..6769d6d 100644 (file)
@@ -328,7 +328,7 @@ const MaemoToolChain *MaemoPackageCreationStep::maemoToolChain() const
 MaemoDeployStep *MaemoPackageCreationStep::deployStep() const
 {
     MaemoDeployStep * const deployStep
-        = MaemoGlobal::buildStep<MaemoDeployStep>(buildConfiguration());
+        = MaemoGlobal::buildStep<MaemoDeployStep>(target()->activeDeployConfiguration());
     Q_ASSERT(deployStep &&
         "Fatal error: Maemo build configuration without deploy step.");
     return deployStep;
index 47779f6..4a714c9 100644 (file)
@@ -204,7 +204,7 @@ const QString MaemoRunConfiguration::gdbCmd() const
 MaemoDeployStep *MaemoRunConfiguration::deployStep() const
 {
     MaemoDeployStep * const step
-        = MaemoGlobal::buildStep<MaemoDeployStep>(activeQt4BuildConfiguration());
+        = MaemoGlobal::buildStep<MaemoDeployStep>(target()->activeDeployConfiguration());
     Q_ASSERT_X(step, Q_FUNC_INFO,
         "Impossible: Maemo build configuration without deploy step.");
     return step;