diff options
author | hjk <[email protected]> | 2017-07-14 10:12:37 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2017-07-17 13:37:25 +0000 |
commit | 6c040996018bbcd32d17e45b82945fecb37352e1 (patch) | |
tree | 7f762f2e72f0ede3577352b5ea4eee90c7aa2c66 /src/plugins/ios/iosplugin.cpp | |
parent | cb0a09b74bb7279a9845955d6a85a0cfe95048c2 (diff) |
iOS: Dissolve IosRunControlFactory
Follows suite.
Change-Id: I2ef11d19d9a2d3d0f3f282a94f98a40478273fbc
Reviewed-by: Vikas Pachdha <[email protected]>
Diffstat (limited to 'src/plugins/ios/iosplugin.cpp')
-rw-r--r-- | src/plugins/ios/iosplugin.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/plugins/ios/iosplugin.cpp b/src/plugins/ios/iosplugin.cpp index 28e590167e0..b2b33d8ae32 100644 --- a/src/plugins/ios/iosplugin.cpp +++ b/src/plugins/ios/iosplugin.cpp @@ -36,17 +36,22 @@ #include "iosdsymbuildstep.h" #include "iosqtversionfactory.h" #include "iosrunfactories.h" +#include "iosrunner.h" #include "iossettingspage.h" #include "iossimulator.h" #include "iossimulatorfactory.h" #include "iostoolhandler.h" +#include "iosrunconfiguration.h" +#include <projectexplorer/devicesupport/devicemanager.h> #include <projectexplorer/kitmanager.h> +#include <projectexplorer/runconfiguration.h> + #include <qtsupport/qtversionmanager.h> #include <QtPlugin> -#include <projectexplorer/devicesupport/devicemanager.h> +using namespace ProjectExplorer; namespace Ios { namespace Internal { @@ -67,7 +72,6 @@ bool IosPlugin::initialize(const QStringList &arguments, QString *errorMessage) addAutoReleasedObject(new Internal::IosBuildConfigurationFactory); addAutoReleasedObject(new Internal::IosToolChainFactory); - addAutoReleasedObject(new Internal::IosRunControlFactory); addAutoReleasedObject(new Internal::IosRunConfigurationFactory); addAutoReleasedObject(new Internal::IosSettingsPage); addAutoReleasedObject(new Internal::IosQtVersionFactory); @@ -78,6 +82,17 @@ bool IosPlugin::initialize(const QStringList &arguments, QString *errorMessage) addAutoReleasedObject(new Internal::IosDsymBuildStepFactory); addAutoReleasedObject(new Internal::IosDeployConfigurationFactory); + auto constraint = [](RunConfiguration *runConfig) { + return qobject_cast<Internal::IosRunConfiguration *>(runConfig) != nullptr; + }; + + RunControl::registerWorker<Internal::IosRunSupport> + (ProjectExplorer::Constants::NORMAL_RUN_MODE, constraint); + RunControl::registerWorker<Internal::IosDebugSupport> + (ProjectExplorer::Constants::DEBUG_RUN_MODE, constraint); + RunControl::registerWorker<Internal::IosQmlProfilerSupport> + (ProjectExplorer::Constants::QML_PROFILER_RUN_MODE, constraint); + return true; } |