mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 06:50:05 +01:00
tools: print the libinput version in debug-events
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
eb16ce2520
commit
47767290a7
2 changed files with 8 additions and 1 deletions
|
|
@ -482,7 +482,10 @@ man_config.set('LIBINPUT_VERSION', meson.project_version())
|
|||
man_config.set('LIBINPUT_DATA_DIR', dir_data)
|
||||
|
||||
deps_tools = [ dep_tools_shared, dep_libinput ]
|
||||
libinput_debug_events_sources = [ 'tools/libinput-debug-events.c' ]
|
||||
libinput_debug_events_sources = [
|
||||
'tools/libinput-debug-events.c',
|
||||
libinput_version_h,
|
||||
]
|
||||
executable('libinput-debug-events',
|
||||
libinput_debug_events_sources,
|
||||
dependencies : deps_tools,
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@
|
|||
#include <libinput.h>
|
||||
#include <libevdev/libevdev.h>
|
||||
|
||||
#include "libinput-version.h"
|
||||
#include "util-strings.h"
|
||||
#include "util-macros.h"
|
||||
#include "shared.h"
|
||||
|
|
@ -1045,6 +1046,9 @@ main(int argc, char **argv)
|
|||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
if (verbose)
|
||||
printf("libinput version: %s\n", LIBINPUT_VERSION);
|
||||
|
||||
li = tools_open_backend(backend, seat_or_devices, verbose, &grab);
|
||||
if (!li)
|
||||
return EXIT_FAILURE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue