forked from qt-creator/qt-creator
Profile introduction
Introduce Profiles to store sets of values that describe a system/device. These profiles are held by a target, getting rid of much of the information stored in the Build-/Run-/DeployConfigurations, greatly simplifying those. This is a squash of the wip/profile branch which has been on gerrit for a while, rebased to current master. Change-Id: I25956c8dd4d1962b2134bfaa8a8076ae3909460f Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
**************************************************************************/
|
||||
|
||||
#include "androidpackageinstallationstep.h"
|
||||
#include "androidtarget.h"
|
||||
#include "androidmanager.h"
|
||||
|
||||
#include <QFileInfo>
|
||||
#include <QDir>
|
||||
@@ -54,25 +54,13 @@ AndroidPackageInstallationStep::AndroidPackageInstallationStep(ProjectExplorer::
|
||||
}
|
||||
|
||||
AndroidPackageInstallationStep::AndroidPackageInstallationStep(ProjectExplorer::BuildStepList *bc, AndroidPackageInstallationStep *other): MakeStep(bc, other)
|
||||
{
|
||||
const QString name = stepDisplayName();
|
||||
setDefaultDisplayName(name);
|
||||
setDisplayName(name);
|
||||
}
|
||||
{ }
|
||||
|
||||
AndroidPackageInstallationStep::~AndroidPackageInstallationStep()
|
||||
{
|
||||
}
|
||||
{ }
|
||||
|
||||
bool AndroidPackageInstallationStep::init()
|
||||
{
|
||||
AndroidTarget *androidTarget = qobject_cast<AndroidTarget *>(target());
|
||||
if (!androidTarget) {
|
||||
emit addOutput(tr("Current target is not an Android target"), BuildStep::MessageOutput);
|
||||
return false;
|
||||
}
|
||||
|
||||
setUserArguments(QString::fromLatin1("INSTALL_ROOT=\"%1\" install").arg(QDir::toNativeSeparators(androidTarget->androidDirPath())));
|
||||
|
||||
setUserArguments(QString::fromLatin1("INSTALL_ROOT=\"%1\" install").arg(AndroidManager::dirPath(target()).toUserOutput()));
|
||||
return MakeStep::init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user