forked from qt-creator/qt-creator
Android: Enable setting environment variables for android apps
Change-Id: Id4625f081d6997dcabad9b01fb09d6c9c6ef7477 Reviewed-by: BogDan Vatra <bogdan@kdab.com>
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include "androidtoolchain.h"
|
||||
#include "androidmanager.h"
|
||||
#include "adbcommandswidget.h"
|
||||
#include "androidrunenvironmentaspect.h"
|
||||
|
||||
#include <projectexplorer/kitinformation.h>
|
||||
#include <projectexplorer/project.h>
|
||||
@@ -110,6 +111,7 @@ void BaseStringListAspect::setLabel(const QString &label)
|
||||
AndroidRunConfiguration::AndroidRunConfiguration(Target *target, Core::Id id)
|
||||
: RunConfiguration(target, id)
|
||||
{
|
||||
addExtraAspect(new AndroidRunEnvironmentAspect(this));
|
||||
addExtraAspect(new ArgumentsAspect(this));
|
||||
|
||||
auto amStartArgsAspect = new BaseStringAspect(this);
|
||||
@@ -154,6 +156,7 @@ QWidget *AndroidRunConfiguration::createConfigurationWidget()
|
||||
|
||||
extraAspect(Constants::ANDROID_PRESTARTSHELLCMDLIST)->addToConfigurationLayout(layout);
|
||||
extraAspect(Constants::ANDROID_POSTFINISHSHELLCMDLIST)->addToConfigurationLayout(layout);
|
||||
extraAspect<AndroidRunEnvironmentAspect>()->addToConfigurationLayout(layout);
|
||||
|
||||
auto wrapped = wrapWidget(widget);
|
||||
auto detailsWidget = qobject_cast<DetailsWidget *>(wrapped);
|
||||
|
||||
Reference in New Issue
Block a user