From 72b86caffcb05ed03e6467801fc19d8af81e6f4f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 4 Apr 2023 13:43:15 +1000 Subject: tools: add list-local-devices as builddir tool An uninstalled version of libwacom-list-local-devices that does not require the database path to be given on the commandline. Makes things a bit more convenient for debugging, same as the existing builddir/list-devices. --- meson.build | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index d5d4d9e..a374215 100644 --- a/meson.build +++ b/meson.build @@ -136,13 +136,21 @@ endif ############### tools ########################### +tools_cflags = ['-DDATABASEPATH="@0@"'.format(dir_src_data)] + executable('libwacom-list-local-devices', 'tools/list-local-devices.c', dependencies: [dep_libwacom, dep_glib, dep_gudev], include_directories: [includes_src], install: true) -tools_cflags = ['-DDATABASEPATH="@0@"'.format(dir_src_data)] +# The non-installed version of list-local-devices uses the git tree's data files +executable('list-local-devices', + 'tools/list-local-devices.c', + dependencies: [dep_libwacom, dep_glib, dep_gudev], + include_directories: [includes_src], + c_args: tools_cflags, + install: false) updatedb = configure_file(input: 'tools/libwacom-update-db.py', output: '@BASENAME@', -- cgit v1.2.1