RemoteLinux: Allow remote linux build devices as opt-in

... by setting QTC_ALLOW_REMOTE_LINUX_BUILD_DEVICES=1

Registering compilers and cmake on such devices already
works manually. [Note: The remote file dialog is extremely
slow when browsing remote directories]

After that, opening a CMakeLists.txt on the device works,
but not much more.

Change-Id: I19025930699f6aec57d26a36b3fb04109fbf03e8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2022-10-04 08:09:44 +02:00
parent 0d079bcf02
commit 4f2b15679d
2 changed files with 7 additions and 0 deletions

View File

@@ -1034,6 +1034,12 @@ DeviceEnvironmentFetcher::Ptr LinuxDevice::environmentFetcher() const
return DeviceEnvironmentFetcher::Ptr(new LinuxDeviceEnvironmentFetcher(sharedFromThis()));
}
bool LinuxDevice::usableAsBuildDevice() const
{
const bool isUsable = qtcEnvironmentVariableIntValue("QTC_ALLOW_REMOTE_LINUX_BUILD_DEVICES");
return isUsable;
}
QString LinuxDevice::userAtHost() const
{
return sshParameters().userAtHost();

View File

@@ -30,6 +30,7 @@ public:
ProjectExplorer::DeviceTester *createDeviceTester() const override;
ProjectExplorer::DeviceProcessSignalOperation::Ptr signalOperation() const override;
ProjectExplorer::DeviceEnvironmentFetcher::Ptr environmentFetcher() const override;
bool usableAsBuildDevice() const override;
QString userAtHost() const;