forked from qt-creator/qt-creator
QmakeAndroid: Move RunConfigurationFactory to Android base
The RunConfiguration does not depend on qmake anymore. This makes the factory trigger in theory for non-qmake, too, but since we still not support other build systems for android, it has no practical consequences yet. Change-Id: I95e4e5a81f5b405a52fa42723b25a0a1473e78c6 Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
This commit is contained in:
@@ -62,6 +62,17 @@ using namespace ProjectExplorer::Constants;
|
||||
namespace Android {
|
||||
namespace Internal {
|
||||
|
||||
class AndroidRunConfigurationFactory : public RunConfigurationFactory
|
||||
{
|
||||
public:
|
||||
AndroidRunConfigurationFactory()
|
||||
{
|
||||
registerRunConfiguration<Android::AndroidRunConfiguration>
|
||||
("Qt4ProjectManager.AndroidRunConfiguration:");
|
||||
addSupportedTargetDeviceType(Android::Constants::ANDROID_DEVICE_TYPE);
|
||||
}
|
||||
};
|
||||
|
||||
class AndroidPluginPrivate
|
||||
{
|
||||
public:
|
||||
@@ -76,6 +87,7 @@ public:
|
||||
JavaEditorFactory javaEditorFactory;
|
||||
AndroidPackageInstallationFactory packackeInstallationFactory;
|
||||
AndroidManifestEditorFactory manifestEditorFactory;
|
||||
AndroidRunConfigurationFactory runConfigFactory;
|
||||
};
|
||||
|
||||
AndroidPlugin::~AndroidPlugin()
|
||||
|
||||
@@ -29,36 +29,16 @@
|
||||
#include "qmakeandroidbuildapkstep.h"
|
||||
#include "qmakeandroidsupport.h"
|
||||
|
||||
#include <android/androidconstants.h>
|
||||
#include <android/androidrunconfiguration.h>
|
||||
|
||||
#include <projectexplorer/runconfiguration.h>
|
||||
|
||||
#include <qmakeprojectmanager/qmakeprojectmanagerconstants.h>
|
||||
|
||||
using namespace ProjectExplorer;
|
||||
|
||||
namespace QmakeAndroidSupport {
|
||||
namespace Internal {
|
||||
|
||||
class QmakeAndroidRunConfigurationFactory : public RunConfigurationFactory
|
||||
{
|
||||
public:
|
||||
QmakeAndroidRunConfigurationFactory()
|
||||
{
|
||||
registerRunConfiguration<Android::AndroidRunConfiguration>
|
||||
("Qt4ProjectManager.AndroidRunConfiguration:");
|
||||
addSupportedProjectType(QmakeProjectManager::Constants::QMAKEPROJECT_ID);
|
||||
addSupportedTargetDeviceType(Android::Constants::ANDROID_DEVICE_TYPE);
|
||||
}
|
||||
};
|
||||
|
||||
class QmakeAndroidSupportPluginPrivate
|
||||
{
|
||||
public:
|
||||
AndroidQmakeBuildConfigurationFactory buildConfigFactory;
|
||||
QmakeAndroidBuildApkStepFactory buildApkStepFactory;
|
||||
QmakeAndroidRunConfigurationFactory runConfigFactory;
|
||||
QmakeAndroidSupport androidSupport;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user