forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user