From 0e0c610df0d3d4044d0b21ddc1752a5dacd7f86e Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 4 Feb 2014 00:18:51 +0100 Subject: utils/regtools: make qeditor able to poke directly at a hwstub device This commit add the very handy feature of being able to read registers directly from a device using hwstub. This is mostly trivial using the hwstub library and the biggest change here is actually: - being able to read registers by name and/or addresses - being able to enumerate devives The UI code currently doesn't handle hotplug but the backend does so it should be trivial to add in the future. It also opens up the possibility the write registers from hwstub or save the register values to a file. Since it relies on both hwstub and libusb, a switch has been introduced in qmake to disable it (use -config nohwstub). Change-Id: I5d7d7a2a7c97ecd7407227357c8553c2773ea6cc --- utils/regtools/qeditor/qeditor.pro | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'utils/regtools/qeditor/qeditor.pro') diff --git a/utils/regtools/qeditor/qeditor.pro b/utils/regtools/qeditor/qeditor.pro index 4e25a48d89..5604fe9d41 100644 --- a/utils/regtools/qeditor/qeditor.pro +++ b/utils/regtools/qeditor/qeditor.pro @@ -3,6 +3,16 @@ QT += widgets HEADERS += mainwindow.h backend.h regtab.h analyser.h settings.h std_analysers.h SOURCES += main.cpp mainwindow.cpp regtab.cpp backend.cpp analyser.cpp std_analysers.cpp settings.cpp LIBS += -L../lib/ -lsocdesc -lxml2 -INCLUDEPATH += ../lib/ +INCLUDEPATH += ../lib/ ../../hwstub/lib -CONFIG += debug \ No newline at end of file +unix { + !nohwstub { + message("Use 'qmake -config nohwstub' if you want to disable hwstub support") + LIBS += -L../../hwstub/lib -lhwstub + DEFINES += HAVE_HWSTUB + CONFIG += link_pkgconfig + PKGCONFIG += libusb-1.0 + } +} + +CONFIG += debug -- cgit v1.2.3