mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 21:40:40 +01:00
tools: hide debug-gui help when building with -Ddebug-gui=false
Some distributions, like Fedora, compile libinput with the debug-gui option set to false. Running "libinput debug-gui" indicates that the program is not installed; however, the help message suggests that the command is available. Hide debug-gui from the help message when it is not included. Fix https://gitlab.freedesktop.org/libinput/libinput/-/issues/480 Signed-off-by: José Expósito <jose.exposito89@gmail.com>
This commit is contained in:
parent
e9a1999a7f
commit
9c789cc254
2 changed files with 3 additions and 0 deletions
|
|
@ -532,6 +532,7 @@ executable('libinput-record',
|
|||
install : true,
|
||||
)
|
||||
|
||||
config_h.set10('HAVE_DEBUG_GUI', get_option('debug-gui'))
|
||||
if get_option('debug-gui')
|
||||
dep_gtk = dependency('gtk4', version : '>= 4.0', required : false)
|
||||
config_h.set10('HAVE_GTK4', dep_gtk.found())
|
||||
|
|
|
|||
|
|
@ -46,9 +46,11 @@ usage(void)
|
|||
" debug-events\n"
|
||||
" Print events to stdout\n"
|
||||
"\n"
|
||||
#if HAVE_DEBUG_GUI
|
||||
" debug-gui\n"
|
||||
" Display a simple GUI to visualize libinput's events.\n"
|
||||
"\n"
|
||||
#endif
|
||||
" measure <feature>\n"
|
||||
" Measure various device properties. See the man page for more info\n"
|
||||
"\n"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue