Android: Use device types as restrictions on project configurations

Change-Id: I3f7ff05f27c76dadec9a9ff0ae02848830655472
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
This commit is contained in:
hjk
2017-12-19 10:32:39 +01:00
parent 4a66cae854
commit 36f720907c
15 changed files with 60 additions and 80 deletions

View File

@@ -75,17 +75,11 @@ AndroidDeployQtStepFactory::AndroidDeployQtStepFactory()
{
registerStep<AndroidDeployQtStep>(AndroidDeployQtStep::Id);
setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_DEPLOY);
setSupportedDeviceType(Constants::ANDROID_DEVICE_TYPE);
setRepeatable(false);
setDisplayName(tr("Deploy to Android device or emulator"));
}
bool AndroidDeployQtStepFactory::canHandle(BuildStepList *parent) const
{
return BuildStepFactory::canHandle(parent)
&& AndroidManager::supportsAndroid(parent->target());
}
// AndroidDeployQtStep
AndroidDeployQtStep::AndroidDeployQtStep(ProjectExplorer::BuildStepList *parent)