From 2f291f28e401bea75e89bc9c73d3a1040120e2c8 Mon Sep 17 00:00:00 2001 From: Gus Grubba Date: Mon, 4 Dec 2017 15:13:18 -0500 Subject: [PATCH] Allow pseudo mobile builds (Native QML on Desktop) --- qgroundcontrol.pro | 10 ++++++---- src/comm/LinkManager.cc | 2 ++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/qgroundcontrol.pro b/qgroundcontrol.pro index df35d13..b6d383f 100644 --- a/qgroundcontrol.pro +++ b/qgroundcontrol.pro @@ -233,10 +233,12 @@ QT += \ multimedia } -!MobileBuild { -QT += \ - printsupport \ - serialport \ +AndroidBuild || iOSBuild { + # Android and iOS don't unclude these +} else { + QT += \ + printsupport \ + serialport \ } contains(DEFINES, QGC_ENABLE_BLUETOOTH) { diff --git a/src/comm/LinkManager.cc b/src/comm/LinkManager.cc index e6b4506..c115728 100644 --- a/src/comm/LinkManager.cc +++ b/src/comm/LinkManager.cc @@ -613,11 +613,13 @@ void LinkManager::_updateAutoConnectLinks(void) } // Check for RTK GPS connection gone +#if !defined(__mobile__) if (!_autoConnectRTKPort.isEmpty() && !currentPorts.contains(_autoConnectRTKPort)) { qCDebug(LinkManagerLog) << "RTK GPS disconnected" << _autoConnectRTKPort; _toolbox->gpsManager()->disconnectGPS(); _autoConnectRTKPort.clear(); } +#endif #endif #endif // NO_SERIAL_LINK