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,
#include <libinput.h>
#include <libevdev/libevdev.h>
+#include "libinput-version.h"
#include "util-strings.h"
#include "util-macros.h"
#include "shared.h"
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;