diff --git a/xapps/xdebug/src/main.cpp b/xapps/xdebug/src/main.cpp index 489067c2..ef22782d 100644 --- a/xapps/xdebug/src/main.cpp +++ b/xapps/xdebug/src/main.cpp @@ -25,10 +25,13 @@ #include "common/crc.h" #include "common/xtools.h" -#include "device/utilities/blescanner.h" #include "device/utilities/ipscanner.h" #include "device/utilities/serialportscanner.h" +#ifdef X_ENABLE_BLUETOOTH +#include "device/utilities/blescanner.h" +#endif + #include "settings.h" #include "xdebug.h" @@ -53,8 +56,10 @@ int main(int argc, char *argv[]) qmlRegisterType("xTools.xDebug", 1, 0, "TcpClient"); qmlRegisterType("xTools.xDebug", 1, 0, "TcpServer"); qmlRegisterType("xTools.xDebug", 1, 0, "IpScanner"); +#ifdef X_ENABLE_BLUETOOTH qmlRegisterType("xTools.xDebug", 1, 0, "BleScanner"); qmlRegisterType("xTools.xDebug", 1, 0, "BleCentral"); +#endif qmlRegisterType("xTools.xDebug", 1, 0, "Serialport"); qmlRegisterType("xTools.xDebug", 1, 0, "WebSocketServer"); qmlRegisterType("xTools.xDebug", 1, 0, "WebSocketClient");