aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/ios/iosplugin.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2019-01-30 17:30:24 +0100
committerhjk <[email protected]>2019-01-31 08:21:25 +0000
commit9d046826f87c1971f4104ca5fc86ef58250168c5 (patch)
tree64d11d3f9c41f9b3f82184f6fb64f4d3d479a83c /src/plugins/ios/iosplugin.cpp
parent868160f215ea06d4dfbaf089fab03b066a9fef69 (diff)
iOS: Move IosDeploy*Factory to plugin
Change-Id: I752a497ce95609cfb92207e1dfbc6cf91ffa9f3c Reviewed-by: hjk <[email protected]> Reviewed-by: Christian Stenger <[email protected]>
Diffstat (limited to 'src/plugins/ios/iosplugin.cpp')
-rw-r--r--src/plugins/ios/iosplugin.cpp33
1 files changed, 31 insertions, 2 deletions
diff --git a/src/plugins/ios/iosplugin.cpp b/src/plugins/ios/iosplugin.cpp
index 89ce3be3e12..39f649450c1 100644
--- a/src/plugins/ios/iosplugin.cpp
+++ b/src/plugins/ios/iosplugin.cpp
@@ -29,8 +29,7 @@
#include "iosbuildstep.h"
#include "iosconfigurations.h"
#include "iosconstants.h"
-#include "iosdeployconfiguration.h"
-#include "iosdeploystepfactory.h"
+#include "iosdeploystep.h"
#include "iosdevicefactory.h"
#include "iosdsymbuildstep.h"
#include "iosqtversionfactory.h"
@@ -41,10 +40,13 @@
#include "iostoolhandler.h"
#include "iosrunconfiguration.h"
+#include <projectexplorer/deployconfiguration.h>
#include <projectexplorer/devicesupport/devicemanager.h>
#include <projectexplorer/kitmanager.h>
#include <projectexplorer/runconfiguration.h>
+#include <qmakeprojectmanager/qmakeprojectmanagerconstants.h>
+
#include <qtsupport/qtversionmanager.h>
using namespace ProjectExplorer;
@@ -55,6 +57,33 @@ namespace Internal {
Q_LOGGING_CATEGORY(iosLog, "qtc.ios.common", QtWarningMsg)
+class IosDeployStepFactory : public BuildStepFactory
+{
+public:
+ IosDeployStepFactory()
+ {
+ registerStep<IosDeployStep>(IosDeployStep::stepId());
+ setDisplayName(IosDeployStep::tr("Deploy to iOS device or emulator"));
+ setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_DEPLOY);
+ setSupportedDeviceTypes({Constants::IOS_DEVICE_TYPE, Constants::IOS_SIMULATOR_TYPE});
+ setRepeatable(false);
+ }
+};
+
+class IosDeployConfigurationFactory : public DeployConfigurationFactory
+{
+public:
+ IosDeployConfigurationFactory()
+ {
+ setConfigBaseId("Qt4ProjectManager.IosDeployConfiguration");
+ setSupportedProjectType(QmakeProjectManager::Constants::QMAKEPROJECT_ID);
+ addSupportedTargetDeviceType(Constants::IOS_DEVICE_TYPE);
+ addSupportedTargetDeviceType(Constants::IOS_SIMULATOR_TYPE);
+ setDefaultDisplayName(QCoreApplication::translate("Ios::Internal", "Deploy on iOS"));
+ addInitialStep(IosDeployStep::stepId());
+ }
+};
+
class IosPluginPrivate
{
public: