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

@@ -153,14 +153,10 @@ AndroidPackageInstallationFactory::AndroidPackageInstallationFactory()
{
registerStep<AndroidPackageInstallationStep>(Constants::ANDROID_PACKAGE_INSTALLATION_STEP_ID);
setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_BUILD);
setSupportedDeviceType(Android::Constants::ANDROID_DEVICE_TYPE);
setRepeatable(false);
setDisplayName(tr("Deploy to device"));
}
bool AndroidPackageInstallationFactory::canHandle(BuildStepList *bsl) const
{
return BuildStepFactory::canHandle(bsl) && AndroidManager::supportsAndroid(bsl->target());
}
} // namespace Internal
} // namespace Android