forked from qt-creator/qt-creator
ProjectExplorer: Introduce an IDevice::usableAsBuildDevice
Better approach than whitelisting ids from leaf plugins. Change-Id: Ida7e23d7ea02eb76d7de4049737f2cb0fad2b9d7 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -667,6 +667,11 @@ DeviceEnvironmentFetcher::Ptr DockerDevice::environmentFetcher() const
|
||||
return DeviceEnvironmentFetcher::Ptr();
|
||||
}
|
||||
|
||||
bool DockerDevice::usableAsBuildDevice() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
FilePath DockerDevice::mapToGlobalPath(const FilePath &pathOnDevice) const
|
||||
{
|
||||
if (pathOnDevice.needsDevice()) {
|
||||
|
||||
@@ -76,6 +76,7 @@ public:
|
||||
ProjectExplorer::DeviceTester *createDeviceTester() const override;
|
||||
ProjectExplorer::DeviceProcessSignalOperation::Ptr signalOperation() const override;
|
||||
ProjectExplorer::DeviceEnvironmentFetcher::Ptr environmentFetcher() const override;
|
||||
bool usableAsBuildDevice() const override;
|
||||
|
||||
Utils::FilePath mapToGlobalPath(const Utils::FilePath &pathOnDevice) const override;
|
||||
QString mapToDevicePath(const Utils::FilePath &globalPath) const override;
|
||||
|
||||
Reference in New Issue
Block a user