diff options
author | hjk <hjk@qt.io> | 2017-11-30 18:43:44 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2017-12-19 09:16:45 +0000 |
commit | 280b7e2109f0f20de891f83defca25c8c048f370 (patch) | |
tree | b3bbe9386c2fe1b274dc62b2d2e1c7b61b88af73 /src/plugins/ios/iosdeploystepfactory.cpp | |
parent | 44ee8b90681e0ba282a9cab92e9d19a94d50da63 (diff) | |
download | qt-creator-280b7e2109f0f20de891f83defca25c8c048f370.tar.gz |
Ios: Use device types as restrictions on project configurations
Change-Id: I3c31f14eba9d9f68a333a814bea800a3da38d4a2
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Diffstat (limited to 'src/plugins/ios/iosdeploystepfactory.cpp')
-rw-r--r-- | src/plugins/ios/iosdeploystepfactory.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/plugins/ios/iosdeploystepfactory.cpp b/src/plugins/ios/iosdeploystepfactory.cpp index d14660fa38..b6a3506e91 100644 --- a/src/plugins/ios/iosdeploystepfactory.cpp +++ b/src/plugins/ios/iosdeploystepfactory.cpp @@ -25,16 +25,10 @@ #include "iosdeploystepfactory.h" +#include "iosconstants.h" #include "iosdeploystep.h" -#include "iosmanager.h" -#include <projectexplorer/buildsteplist.h> #include <projectexplorer/projectexplorerconstants.h> -#include <projectexplorer/target.h> - -#include <QCoreApplication> - -using namespace ProjectExplorer; namespace Ios { namespace Internal { @@ -44,14 +38,9 @@ IosDeployStepFactory::IosDeployStepFactory() registerStep<IosDeployStep>(IosDeployStep::Id); setDisplayName(tr("Deploy to iOS device or emulator")); setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_DEPLOY); + setSupportedDeviceTypes({Constants::IOS_DEVICE_TYPE, Constants::IOS_SIMULATOR_TYPE}); setRepeatable(false); } -bool IosDeployStepFactory::canHandle(BuildStepList *parent) const -{ - return BuildStepFactory::canHandle(parent) - && IosManager::supportsIos(parent->target()); -} - } // namespace Internal } // namespace Ios |