[PATCH libinput 4/5] tools: fake-build the other tools the same way as measure touchpad-tap

Peter Hutterer peter.hutterer at who-t.net
Wed Jun 27 23:51:42 UTC 2018


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 <peter.hutterer at who-t.net>
---
 meson.build                                   | 26 ++++++++++++++-----
 ...-measure-fuzz => libinput-measure-fuzz.py} |  0
 ...d-tap => libinput-measure-touchpad-tap.py} |  0
 ...e => libinput-measure-trackpoint-range.py} |  0
 4 files changed, 19 insertions(+), 7 deletions(-)
 rename tools/{libinput-measure-fuzz => libinput-measure-fuzz.py} (100%)
 rename tools/{libinput-measure-touchpad-tap => libinput-measure-touchpad-tap.py} (100%)
 rename tools/{libinput-measure-trackpoint-range => libinput-measure-trackpoint-range.py} (100%)

diff --git a/meson.build b/meson.build
index 842770e4..e10a0bc3 100644
--- a/meson.build
+++ b/meson.build
@@ -537,8 +537,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,
@@ -546,8 +551,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,
@@ -555,7 +564,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,
@@ -583,8 +591,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,
diff --git a/tools/libinput-measure-fuzz b/tools/libinput-measure-fuzz.py
similarity index 100%
rename from tools/libinput-measure-fuzz
rename to tools/libinput-measure-fuzz.py
diff --git a/tools/libinput-measure-touchpad-tap b/tools/libinput-measure-touchpad-tap.py
similarity index 100%
rename from tools/libinput-measure-touchpad-tap
rename to tools/libinput-measure-touchpad-tap.py
diff --git a/tools/libinput-measure-trackpoint-range b/tools/libinput-measure-trackpoint-range.py
similarity index 100%
rename from tools/libinput-measure-trackpoint-range
rename to tools/libinput-measure-trackpoint-range.py
-- 
2.17.1



More information about the wayland-devel mailing list