From 6be9c3c84e861332938e50d04e82e235a5e2765f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 27 Jun 2018 14:01:25 +1000 Subject: tools: fake-build the other tools the same way as measure touchpad-tap Doesn't actually do anything but this way they end up in the builddir and can be picked up by ./builddir/libinput measure fuzz, etc. And rename the source files to .py to signal that they are not supposed to be directly executed. Signed-off-by: Peter Hutterer --- meson.build | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 590fb78d..815afba8 100644 --- a/meson.build +++ b/meson.build @@ -554,8 +554,13 @@ configure_file(input : 'tools/libinput-measure.man', install_dir : join_paths(get_option('mandir'), 'man1') ) -install_data('tools/libinput-measure-fuzz', - install_dir : libinput_tool_path) +config_noop = configuration_data() +configure_file(input: 'tools/libinput-measure-fuzz.py', + output: 'libinput-measure-fuzz', + configuration : config_noop, + install : true, + install_dir : libinput_tool_path + ) configure_file(input : 'tools/libinput-measure-fuzz.man', output : 'libinput-measure-fuzz.1', configuration : man_config, @@ -563,8 +568,12 @@ configure_file(input : 'tools/libinput-measure-fuzz.man', install_dir : join_paths(get_option('mandir'), 'man1') ) -install_data('tools/libinput-measure-touchpad-tap', - install_dir : libinput_tool_path) +configure_file(input: 'tools/libinput-measure-touchpad-tap.py', + output: 'libinput-measure-touchpad_tap', + configuration : config_noop, + install : true, + install_dir : libinput_tool_path + ) configure_file(input : 'tools/libinput-measure-touchpad-tap.man', output : 'libinput-measure-touchpad-tap.1', configuration : man_config, @@ -572,7 +581,6 @@ configure_file(input : 'tools/libinput-measure-touchpad-tap.man', install_dir : join_paths(get_option('mandir'), 'man1') ) -config_noop = configuration_data() configure_file(input: 'tools/libinput-measure-touchpad-pressure.py', output: 'libinput-measure-touchpad-pressure', configuration : config_noop, @@ -600,8 +608,12 @@ configure_file(input : 'tools/libinput-measure-touch-size.man', install_dir : join_paths(get_option('mandir'), 'man1') ) -install_data('tools/libinput-measure-trackpoint-range', - install_dir : libinput_tool_path) +configure_file(input: 'tools/libinput-measure-trackpoint-range.py', + output: 'libinput-measure-trackpoint-range', + configuration : config_noop, + install : true, + install_dir : libinput_tool_path + ) configure_file(input : 'tools/libinput-measure-trackpoint-range.man', output : 'libinput-measure-trackpoint-range.1', configuration : man_config, -- cgit v1.2.3