Commit 97320328 authored by Peter Hutterer's avatar Peter Hutterer
Browse files

meson.build: process the various tools as a single file list



All these tools just copy the input file over, we can do that in a loop
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 307f36e0
......@@ -475,6 +475,14 @@ configure_file(input : 'tools/libinput-measure.man',
install_dir : dir_man1,
)
src_python_tools = files(
'tools/libinput-measure-fuzz.py',
'tools/libinput-measure-touchpad-tap.py',
'tools/libinput-measure-touchpad-pressure.py',
'tools/libinput-measure-touch-size.py',
'tools/libinput-measure-trackpoint-range.py',
)
config_noop = configuration_data()
# Set a dummy replacement to silence meson warnings:
# meson.build:487: WARNING: Got an empty configuration_data() object and
......@@ -482,71 +490,30 @@ config_noop = configuration_data()
# want to copy a file to the build dir, use the 'copy:'
# keyword argument added in 0.47.0
config_noop.set('dummy', 'dummy')
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,
install : true,
install_dir : dir_man1,
)
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,
install : true,
install_dir : dir_man1,
)
configure_file(input: 'tools/libinput-measure-touchpad-pressure.py',
output: 'libinput-measure-touchpad-pressure',
configuration : config_noop,
install : true,
install_dir : libinput_tool_path
)
configure_file(input : 'tools/libinput-measure-touchpad-pressure.man',
output : 'libinput-measure-touchpad-pressure.1',
configuration : man_config,
install : true,
install_dir : dir_man1,
)
configure_file(input: 'tools/libinput-measure-touch-size.py',
output: 'libinput-measure-touch-size',
configuration : config_noop,
install : true,
install_dir : libinput_tool_path
)
configure_file(input : 'tools/libinput-measure-touch-size.man',
output : 'libinput-measure-touch-size.1',
configuration : man_config,
install : true,
install_dir : dir_man1,
)
foreach t : src_python_tools
configure_file(input: t,
output: '@BASENAME@',
configuration : config_noop,
install : true,
install_dir : libinput_tool_path
)
endforeach
src_man = files(
'tools/libinput-measure-fuzz.man',
'tools/libinput-measure-touchpad-tap.man',
'tools/libinput-measure-touchpad-pressure.man',
'tools/libinput-measure-touch-size.man',
'tools/libinput-measure-trackpoint-range.man',
)
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,
install : true,
install_dir : dir_man1,
)
foreach m : src_man
configure_file(input : m,
output : '@BASENAME@.1',
configuration : man_config,
install : true,
install_dir : dir_man1)
endforeach
libinput_record_sources = [ 'tools/libinput-record.c', git_version_h ]
executable('libinput-record',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment