Fix optional building with or without libudev
This commit is contained in:
parent
40d6fdaa90
commit
85856eaaa8
@ -3,13 +3,13 @@ include(../config.pri)
|
|||||||
TARGET = nymea-zigbee1
|
TARGET = nymea-zigbee1
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
|
|
||||||
|
CONFIG += link_pkgconfig
|
||||||
disable_udev {
|
packagesExist(libudev) {
|
||||||
|
message(Build with libudev support)
|
||||||
|
PKGCONFIG += libudev
|
||||||
|
} else {
|
||||||
message(Build without libudev support)
|
message(Build without libudev support)
|
||||||
DEFINES += DISABLE_UDEV
|
DEFINES += DISABLE_UDEV
|
||||||
} else {
|
|
||||||
CONFIG += link_pkgconfig
|
|
||||||
PKGCONFIG += libudev
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
|
|||||||
@ -64,7 +64,7 @@ ZigbeeUartAdapterMonitor::ZigbeeUartAdapterMonitor(QObject *parent) : QObject(pa
|
|||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
m_timer->start();
|
||||||
#else
|
#else
|
||||||
// Init udev
|
// Init udev
|
||||||
m_udev = udev_new();
|
m_udev = udev_new();
|
||||||
|
|||||||
Reference in New Issue
Block a user