forked from qt-creator/qt-creator
RemoteLinux: Move constants and functions to more suitable locations.
Mostly to facilitate splitting up generic Linux und Maemo-specific things. Change-Id: I6072ae7deaea013219e8969d6a5254e6c5c96693 Reviewed-on: http://codereview.qt.nokia.com/2098 Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
@@ -71,7 +71,7 @@ public:
|
||||
|
||||
virtual QString summaryText() const
|
||||
{
|
||||
if (!MaemoGlobal::earlierBuildStep<AbstractMaemoPackageCreationStep>(m_step->deployConfiguration(), m_step)) {
|
||||
if (!m_step->deployConfiguration()->earlierBuildStep<AbstractMaemoPackageCreationStep>(m_step)) {
|
||||
return QLatin1String("<font color=\"red\">")
|
||||
+ tr("Cannot deploy to sysroot: No packaging step found.")
|
||||
+ QLatin1String("</font>");
|
||||
@@ -146,6 +146,12 @@ AbstractMaemoInstallPackageToSysrootStep::AbstractMaemoInstallPackageToSysrootSt
|
||||
{
|
||||
}
|
||||
|
||||
RemoteLinuxDeployConfiguration *AbstractMaemoInstallPackageToSysrootStep::deployConfiguration() const
|
||||
{
|
||||
return qobject_cast<RemoteLinuxDeployConfiguration *>(BuildStep::deployConfiguration());
|
||||
}
|
||||
|
||||
|
||||
void AbstractMaemoInstallPackageToSysrootStep::run(QFutureInterface<bool> &fi)
|
||||
{
|
||||
const Qt4BuildConfiguration * const bc
|
||||
@@ -158,7 +164,7 @@ void AbstractMaemoInstallPackageToSysrootStep::run(QFutureInterface<bool> &fi)
|
||||
}
|
||||
|
||||
const AbstractMaemoPackageCreationStep * const pStep
|
||||
= MaemoGlobal::earlierBuildStep<AbstractMaemoPackageCreationStep>(deployConfiguration(), this);
|
||||
= deployConfiguration()->earlierBuildStep<AbstractMaemoPackageCreationStep>(this);
|
||||
if (!pStep) {
|
||||
addOutput(tr("Cannot install package to sysroot without packaging step."),
|
||||
ErrorMessageOutput);
|
||||
|
||||
Reference in New Issue
Block a user