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 Android {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
|
class AndroidRunConfigurationFactory : public RunConfigurationFactory
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
AndroidRunConfigurationFactory()
|
||||||
|
{
|
||||||
|
registerRunConfiguration<Android::AndroidRunConfiguration>
|
||||||
|
("Qt4ProjectManager.AndroidRunConfiguration:");
|
||||||
|
addSupportedTargetDeviceType(Android::Constants::ANDROID_DEVICE_TYPE);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
class AndroidPluginPrivate
|
class AndroidPluginPrivate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -76,6 +87,7 @@ public:
|
|||||||
JavaEditorFactory javaEditorFactory;
|
JavaEditorFactory javaEditorFactory;
|
||||||
AndroidPackageInstallationFactory packackeInstallationFactory;
|
AndroidPackageInstallationFactory packackeInstallationFactory;
|
||||||
AndroidManifestEditorFactory manifestEditorFactory;
|
AndroidManifestEditorFactory manifestEditorFactory;
|
||||||
|
AndroidRunConfigurationFactory runConfigFactory;
|
||||||
};
|
};
|
||||||
|
|
||||||
AndroidPlugin::~AndroidPlugin()
|
AndroidPlugin::~AndroidPlugin()
|
||||||
|
|||||||
@@ -29,36 +29,16 @@
|
|||||||
#include "qmakeandroidbuildapkstep.h"
|
#include "qmakeandroidbuildapkstep.h"
|
||||||
#include "qmakeandroidsupport.h"
|
#include "qmakeandroidsupport.h"
|
||||||
|
|
||||||
#include <android/androidconstants.h>
|
|
||||||
#include <android/androidrunconfiguration.h>
|
|
||||||
|
|
||||||
#include <projectexplorer/runconfiguration.h>
|
|
||||||
|
|
||||||
#include <qmakeprojectmanager/qmakeprojectmanagerconstants.h>
|
|
||||||
|
|
||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
|
|
||||||
namespace QmakeAndroidSupport {
|
namespace QmakeAndroidSupport {
|
||||||
namespace Internal {
|
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
|
class QmakeAndroidSupportPluginPrivate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AndroidQmakeBuildConfigurationFactory buildConfigFactory;
|
AndroidQmakeBuildConfigurationFactory buildConfigFactory;
|
||||||
QmakeAndroidBuildApkStepFactory buildApkStepFactory;
|
QmakeAndroidBuildApkStepFactory buildApkStepFactory;
|
||||||
QmakeAndroidRunConfigurationFactory runConfigFactory;
|
|
||||||
QmakeAndroidSupport androidSupport;
|
QmakeAndroidSupport androidSupport;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user