Update disable define
This commit is contained in:
parent
e9c26ee85a
commit
c93571827b
@ -15,14 +15,14 @@ greaterThan(QT_MAJOR_VERSION, 5) {
|
||||
# Note: available since mantic
|
||||
# PKGCONFIG += qca2-qt6
|
||||
message(Building without TI support)
|
||||
DEFINES += DISABLE_TI
|
||||
DEFINES += ZIGBEE_DISABLE_TI
|
||||
} else {
|
||||
packagesExist(qca2-qt5) {
|
||||
message(Build with libqca2 support)
|
||||
PKGCONFIG += qca2-qt5
|
||||
} else {
|
||||
message(Build without libqca2 support)
|
||||
DEFINES += DISABLE_TI
|
||||
DEFINES += ZIGBEE_DISABLE_TI
|
||||
}
|
||||
}
|
||||
|
||||
@ -98,7 +98,7 @@ SOURCES += \
|
||||
zigbeenode.cpp \
|
||||
zigbeeaddress.cpp
|
||||
|
||||
!contains(DEFINES, DISABLE_TI) {
|
||||
!contains(DEFINES, ZIGBEE_DISABLE_TI) {
|
||||
SOURCES += \
|
||||
backends/ti/interface/zigbeeinterfaceti.cpp \
|
||||
backends/ti/interface/zigbeeinterfacetireply.cpp \
|
||||
|
||||
@ -43,7 +43,7 @@ public:
|
||||
enum ZigbeeBackendType {
|
||||
ZigbeeBackendTypeDeconz,
|
||||
ZigbeeBackendTypeNxp,
|
||||
#ifndef DISABLE_TI
|
||||
#ifndef ZIGBEE_DISABLE_TI
|
||||
ZigbeeBackendTypeTi
|
||||
#endif
|
||||
};
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
|
||||
#include "backends/nxp/zigbeenetworknxp.h"
|
||||
#include "backends/deconz/zigbeenetworkdeconz.h"
|
||||
#ifndef DISABLE_TI
|
||||
#ifndef ZIGBEE_DISABLE_TI
|
||||
#include "backends/ti/zigbeenetworkti.h"
|
||||
#endif
|
||||
|
||||
@ -51,7 +51,7 @@ ZigbeeNetwork *ZigbeeNetworkManager::createZigbeeNetwork(const QUuid &networkUui
|
||||
return qobject_cast<ZigbeeNetwork *>(new ZigbeeNetworkNxp(networkUuid, parent));
|
||||
case Zigbee::ZigbeeBackendTypeDeconz:
|
||||
return qobject_cast<ZigbeeNetwork *>(new ZigbeeNetworkDeconz(networkUuid, parent));
|
||||
#ifndef DISABLE_TI
|
||||
#ifndef ZIGBEE_DISABLE_TI
|
||||
case Zigbee::ZigbeeBackendTypeTi:
|
||||
return qobject_cast<ZigbeeNetwork *>(new ZigbeeNetworkTi(networkUuid, parent));
|
||||
#endif
|
||||
|
||||
@ -239,7 +239,7 @@ void ZigbeeUartAdapterMonitor::addAdapterInternally(const QString &serialPort)
|
||||
adapter.setBaudRate(115200);
|
||||
}
|
||||
|
||||
#ifndef DISABLE_TI
|
||||
#ifndef ZIGBEE_DISABLE_TI
|
||||
QStringList zStackModels = {"cc2530", "cc2531", "cc2538", "cc1352p", "cc2652p", "cc2652r", "cc2652rb", "sonoff zigbee 3.0 usb"};
|
||||
if (QRegularExpression(".*(" + zStackModels.join("|") + ").*").match(serialPortInfo.description().toLower()).hasMatch()) {
|
||||
adapter.setHardwareRecognized(true);
|
||||
|
||||
Reference in New Issue
Block a user