summaryrefslogtreecommitdiff
path: root/utils/regtools/qeditor/qeditor.pro
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-02-04 00:18:51 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2014-02-10 23:14:25 +0100
commit0e0c610df0d3d4044d0b21ddc1752a5dacd7f86e (patch)
treeaca4cf3c5dd86384ee8018d9049e2c3469d597ea /utils/regtools/qeditor/qeditor.pro
parent81dfed27cf7ca1008b9cf21c084310eaeae082ac (diff)
downloadrockbox-0e0c610df0d3d4044d0b21ddc1752a5dacd7f86e.tar.gz
rockbox-0e0c610df0d3d4044d0b21ddc1752a5dacd7f86e.zip
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
Diffstat (limited to 'utils/regtools/qeditor/qeditor.pro')
-rw-r--r--utils/regtools/qeditor/qeditor.pro14
1 files changed, 12 insertions, 2 deletions
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
3HEADERS += mainwindow.h backend.h regtab.h analyser.h settings.h std_analysers.h 3HEADERS += mainwindow.h backend.h regtab.h analyser.h settings.h std_analysers.h
4SOURCES += main.cpp mainwindow.cpp regtab.cpp backend.cpp analyser.cpp std_analysers.cpp settings.cpp 4SOURCES += main.cpp mainwindow.cpp regtab.cpp backend.cpp analyser.cpp std_analysers.cpp settings.cpp
5LIBS += -L../lib/ -lsocdesc -lxml2 5LIBS += -L../lib/ -lsocdesc -lxml2
6INCLUDEPATH += ../lib/ 6INCLUDEPATH += ../lib/ ../../hwstub/lib
7 7
8CONFIG += debug \ No newline at end of file 8unix {
9 !nohwstub {
10 message("Use 'qmake -config nohwstub' if you want to disable hwstub support")
11 LIBS += -L../../hwstub/lib -lhwstub
12 DEFINES += HAVE_HWSTUB
13 CONFIG += link_pkgconfig
14 PKGCONFIG += libusb-1.0
15 }
16}
17
18CONFIG += debug