From: Peter Hutterer Date: Wed, 27 Nov 2019 00:55:14 +0000 (+1000) Subject: tools: print the libinput version in debug-events X-Git-Tag: 1.14.901~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47767290a7da6ea56de0f0e91b7d8c37ceb8fdbf;p=platform%2Fupstream%2Flibinput.git tools: print the libinput version in debug-events Signed-off-by: Peter Hutterer --- diff --git a/meson.build b/meson.build index 275eaa76..0e5523fe 100644 --- a/meson.build +++ b/meson.build @@ -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, diff --git a/tools/libinput-debug-events.c b/tools/libinput-debug-events.c index 33b850f3..bdabb544 100644 --- a/tools/libinput-debug-events.c +++ b/tools/libinput-debug-events.c @@ -38,6 +38,7 @@ #include #include +#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;