diff options
Diffstat (limited to 'src/plugins/qnx/qnxplugin.cpp')
-rw-r--r-- | src/plugins/qnx/qnxplugin.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/plugins/qnx/qnxplugin.cpp b/src/plugins/qnx/qnxplugin.cpp index 4bc3a7e968..850efa48dc 100644 --- a/src/plugins/qnx/qnxplugin.cpp +++ b/src/plugins/qnx/qnxplugin.cpp @@ -45,6 +45,7 @@ #include <coreplugin/icontext.h> #include <coreplugin/icore.h> +#include <projectexplorer/devicesupport/devicecheckbuildstep.h> #include <projectexplorer/kitinformation.h> #include <projectexplorer/projectexplorer.h> #include <projectexplorer/projectexplorerconstants.h> @@ -55,6 +56,9 @@ #include <projectexplorer/target.h> #include <projectexplorer/toolchain.h> +#include <remotelinux/genericdirectuploadstep.h> +#include <remotelinux/remotelinuxcheckforfreediskspacestep.h> + #include <qtsupport/qtkitinformation.h> #include <QAction> @@ -64,6 +68,19 @@ using namespace ProjectExplorer; namespace Qnx { namespace Internal { +template <class Step> +class GenericQnxDeployStepFactory : public BuildStepFactory +{ +public: + GenericQnxDeployStepFactory() + { + registerStep<Step>(Step::stepId()); + setDisplayName(Step::displayName()); + setSupportedConfiguration(Constants::QNX_QNX_DEPLOYCONFIGURATION_ID); + setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_DEPLOY); + } +}; + class QnxPluginPrivate { public: @@ -76,6 +93,9 @@ public: QnxQtVersionFactory qtVersionFactory; QnxDeviceFactory deviceFactory; QnxDeployConfigurationFactory deployConfigFactory; + GenericQnxDeployStepFactory<RemoteLinux::GenericDirectUploadStep> directUploadDeployFactory; + GenericQnxDeployStepFactory<RemoteLinux::RemoteLinuxCheckForFreeDiskSpaceStep> checkForFreeDiskSpaceDeployFactory; + GenericQnxDeployStepFactory<DeviceCheckBuildStep> checkBuildDeployFactory; QnxRunConfigurationFactory runConfigFactory; QnxSettingsPage settingsPage; QnxToolChainFactory toolChainFactory; |