revisions

This commit is contained in:
pls.153 2024-05-12 08:41:21 +02:00
parent 745954f846
commit eb497baedd
6 changed files with 15 additions and 12 deletions

View file

@ -6,7 +6,7 @@
#include <QNetworkInterface>
#include <QHostAddress>
#ifdef Q_OS_LINUX
#ifdef Q_OS_UNIX
#include "usb/usb.h"
#endif
@ -341,7 +341,7 @@ QVariant QT::localIp() {
// USB
#ifdef Q_OS_LINUX
#ifdef Q_OS_UNIX
QVariant QT::connectUsb() {
if (usb == nullptr) {
usb = new USB();

View file

@ -28,7 +28,7 @@ QT_BEGIN_NAMESPACE
extern "C" { LIB_EXPORT QObject* ini(); }
#ifdef Q_OS_LINUX
#ifdef Q_OS_UNIX
class USB;
#endif
@ -111,7 +111,7 @@ public:
Q_INVOKABLE QVariant localIp();
// USB
#ifdef Q_OS_LINUX
#ifdef Q_OS_UNIX
Q_INVOKABLE QVariant connectUsb ();
Q_INVOKABLE QVariant sendToUlisp (const QVariant&);

View file

@ -12,10 +12,13 @@ MOC_DIR = ./tmp/
HEADERS += qt.h
SOURCES += qt.cpp
linux {
unix {
QT += serialport
HEADERS += usb/usb.h
SOURCES += usb/usb.cpp
}
linux {
LIBS += -L../../../platforms/linux/lib
}