diff --git a/meson.build b/meson.build index 625bdc0c..974d903e 100644 --- a/meson.build +++ b/meson.build @@ -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()) diff --git a/tools/libinput-tool.c b/tools/libinput-tool.c index d6192405..a1140277 100644 --- a/tools/libinput-tool.c +++ b/tools/libinput-tool.c @@ -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 \n" " Measure various device properties. See the man page for more info\n" "\n"