ProjectExplorer: Whitelist DockerDevice for DesktopRunConfigurations

The idea is that "everything" that can run on the real local host also
can run in a docker container mimicking the same kind of environment.
I.e. all run configurations suitable for current "Desktop" would/should
also be runnable in a docker container, ideally without noticing.

_Desktop_RunConfiguration would then be a bit of a misnomer, it's more
"things that act like 'desktop'", but that can easily be changed later.

Change-Id: I0b284135202e64b54ee86a3815efa95d75a5e29f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2021-05-03 08:13:19 +02:00
parent a13eeae6f3
commit dbf80d5fe2
@@ -32,6 +32,7 @@
#include "target.h"
#include <cmakeprojectmanager/cmakeprojectconstants.h>
#include <docker/dockerconstants.h>
#include <qbsprojectmanager/qbsprojectmanagerconstants.h>
#include <qmakeprojectmanager/qmakeprojectmanagerconstants.h>
@@ -199,6 +200,7 @@ CMakeRunConfigurationFactory::CMakeRunConfigurationFactory()
registerRunConfiguration<CMakeRunConfiguration>(CMAKE_RUNCONFIG_ID);
addSupportedProjectType(CMakeProjectManager::Constants::CMAKE_PROJECT_ID);
addSupportedTargetDeviceType(ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE);
addSupportedTargetDeviceType(Docker::Constants::DOCKER_DEVICE_TYPE);
}
QbsRunConfigurationFactory::QbsRunConfigurationFactory()
@@ -206,6 +208,7 @@ QbsRunConfigurationFactory::QbsRunConfigurationFactory()
registerRunConfiguration<QbsRunConfiguration>(QBS_RUNCONFIG_ID);
addSupportedProjectType(QbsProjectManager::Constants::PROJECT_ID);
addSupportedTargetDeviceType(ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE);
addSupportedTargetDeviceType(Docker::Constants::DOCKER_DEVICE_TYPE);
}
DesktopQmakeRunConfigurationFactory::DesktopQmakeRunConfigurationFactory()
@@ -213,6 +216,7 @@ DesktopQmakeRunConfigurationFactory::DesktopQmakeRunConfigurationFactory()
registerRunConfiguration<DesktopQmakeRunConfiguration>(QMAKE_RUNCONFIG_ID);
addSupportedProjectType(QmakeProjectManager::Constants::QMAKEPROJECT_ID);
addSupportedTargetDeviceType(ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE);
addSupportedTargetDeviceType(Docker::Constants::DOCKER_DEVICE_TYPE);
}
} // namespace Internal