mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-09 08:18:02 +02:00
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 <peter.hutterer@who-t.net>
This commit is contained in:
parent
307f36e038
commit
97320328e6
1 changed files with 30 additions and 63 deletions
93
meson.build
93
meson.build
|
|
@ -475,6 +475,14 @@ configure_file(input : 'tools/libinput-measure.man',
|
||||||
install_dir : dir_man1,
|
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()
|
config_noop = configuration_data()
|
||||||
# Set a dummy replacement to silence meson warnings:
|
# Set a dummy replacement to silence meson warnings:
|
||||||
# meson.build:487: WARNING: Got an empty configuration_data() object and
|
# 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:'
|
# want to copy a file to the build dir, use the 'copy:'
|
||||||
# keyword argument added in 0.47.0
|
# keyword argument added in 0.47.0
|
||||||
config_noop.set('dummy', 'dummy')
|
config_noop.set('dummy', 'dummy')
|
||||||
configure_file(input: 'tools/libinput-measure-fuzz.py',
|
foreach t : src_python_tools
|
||||||
output: 'libinput-measure-fuzz',
|
configure_file(input: t,
|
||||||
configuration : config_noop,
|
output: '@BASENAME@',
|
||||||
install : true,
|
configuration : config_noop,
|
||||||
install_dir : libinput_tool_path
|
install : true,
|
||||||
)
|
install_dir : libinput_tool_path
|
||||||
configure_file(input : 'tools/libinput-measure-fuzz.man',
|
)
|
||||||
output : 'libinput-measure-fuzz.1',
|
endforeach
|
||||||
configuration : man_config,
|
|
||||||
install : true,
|
|
||||||
install_dir : dir_man1,
|
|
||||||
)
|
|
||||||
|
|
||||||
configure_file(input: 'tools/libinput-measure-touchpad-tap.py',
|
src_man = files(
|
||||||
output: 'libinput-measure-touchpad-tap',
|
'tools/libinput-measure-fuzz.man',
|
||||||
configuration : config_noop,
|
'tools/libinput-measure-touchpad-tap.man',
|
||||||
install : true,
|
'tools/libinput-measure-touchpad-pressure.man',
|
||||||
install_dir : libinput_tool_path
|
'tools/libinput-measure-touch-size.man',
|
||||||
)
|
'tools/libinput-measure-trackpoint-range.man',
|
||||||
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',
|
foreach m : src_man
|
||||||
output: 'libinput-measure-touchpad-pressure',
|
configure_file(input : m,
|
||||||
configuration : config_noop,
|
output : '@BASENAME@.1',
|
||||||
install : true,
|
configuration : man_config,
|
||||||
install_dir : libinput_tool_path
|
install : true,
|
||||||
)
|
install_dir : dir_man1)
|
||||||
|
endforeach
|
||||||
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,
|
|
||||||
)
|
|
||||||
|
|
||||||
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,
|
|
||||||
)
|
|
||||||
|
|
||||||
libinput_record_sources = [ 'tools/libinput-record.c', git_version_h ]
|
libinput_record_sources = [ 'tools/libinput-record.c', git_version_h ]
|
||||||
executable('libinput-record',
|
executable('libinput-record',
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue