tools: print the libinput version in debug-events

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2019-11-27 10:55:14 +10:00
parent eb16ce2520
commit 47767290a7
2 changed files with 8 additions and 1 deletions

View file

@ -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,

View file

@ -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;