meson.build: drop explicit install:true from configure_file

meson implicitly sets install to whether install_dir is nonzero. Which means
it's superfluous anyway and removing it drops the meson warning:

WARNING: Project specifies a minimum meson_version '>= 0.41.0' but uses
features which were added in newer versions:
 * 0.50.0: {'install arg in configure_file'}

Fixes #334

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2019-08-02 22:45:16 +10:00
parent 4ab8a51b68
commit f5fc850a08
3 changed files with 7 additions and 32 deletions

View file

@ -58,8 +58,7 @@ doxyfiles = []
foreach f : src_doxygen foreach f : src_doxygen
df = configure_file(input: f, df = configure_file(input: f,
output: '@PLAINNAME@', output: '@PLAINNAME@',
configuration : config_noop, configuration : config_noop)
install : false)
doxyfiles += [ df ] doxyfiles += [ df ]
endforeach endforeach
@ -70,8 +69,7 @@ doc_config.set('builddir', meson.current_build_dir())
doxyfile = configure_file(input : 'libinput.doxygen.in', doxyfile = configure_file(input : 'libinput.doxygen.in',
output : 'libinput.doxygen', output : 'libinput.doxygen',
configuration : doc_config, configuration : doc_config)
install : false)
custom_target('doxygen', custom_target('doxygen',
input : [ doxyfiles, doxyfile, mainpage ] + src_doxygen, input : [ doxyfiles, doxyfile, mainpage ] + src_doxygen,

View file

@ -17,8 +17,7 @@ git_version_page = vcs_tag(command : ['git', 'log', '-1', '--format=%H'],
sphinx_conf_py = configure_file(input : 'conf.py.in', sphinx_conf_py = configure_file(input : 'conf.py.in',
output : 'conf.py', output : 'conf.py',
configuration : sphinx_config, configuration : sphinx_config)
install : false)
# 404 replacements for old URLs # 404 replacements for old URLs
# The switch to sphinx caused a few pages to be renamed, sphinx uses # The switch to sphinx caused a few pages to be renamed, sphinx uses
@ -80,8 +79,7 @@ foreach s404 : src_404s
config_404.set('TARGET', '@0@.html'.format(tname)) config_404.set('TARGET', '@0@.html'.format(tname))
c = configure_file(input : '404.rst', c = configure_file(input : '404.rst',
output : '@0@.rst'.format(oname), output : '@0@.rst'.format(oname),
configuration : config_404, configuration : config_404)
install : false)
dst_404s += [c] dst_404s += [c]
endif endif
endforeach endforeach
@ -181,8 +179,7 @@ src_sphinx = []
foreach f : src_rst foreach f : src_rst
sf = configure_file(input: f, sf = configure_file(input: f,
output: '@PLAINNAME@', output: '@PLAINNAME@',
configuration : config_noop, configuration : config_noop)
install : false)
src_sphinx += [ sf ] src_sphinx += [ sf ]
endforeach endforeach

View file

@ -160,12 +160,10 @@ udev_rules_config = configuration_data()
udev_rules_config.set('UDEV_TEST_PATH', '') udev_rules_config.set('UDEV_TEST_PATH', '')
configure_file(input : 'udev/80-libinput-device-groups.rules.in', configure_file(input : 'udev/80-libinput-device-groups.rules.in',
output : '80-libinput-device-groups.rules', output : '80-libinput-device-groups.rules',
install : true,
install_dir : dir_udev_rules, install_dir : dir_udev_rules,
configuration : udev_rules_config) configuration : udev_rules_config)
configure_file(input : 'udev/90-libinput-fuzz-override.rules.in', configure_file(input : 'udev/90-libinput-fuzz-override.rules.in',
output : '90-libinput-fuzz-override.rules', output : '90-libinput-fuzz-override.rules',
install : true,
install_dir : dir_udev_rules, install_dir : dir_udev_rules,
configuration : udev_rules_config) configuration : udev_rules_config)
@ -173,11 +171,9 @@ litest_udev_rules_config = configuration_data()
litest_udev_rules_config.set('UDEV_TEST_PATH', meson.build_root() + '/') litest_udev_rules_config.set('UDEV_TEST_PATH', meson.build_root() + '/')
litest_groups_rules_file = configure_file(input : 'udev/80-libinput-device-groups.rules.in', litest_groups_rules_file = configure_file(input : 'udev/80-libinput-device-groups.rules.in',
output : '80-libinput-device-groups-litest.rules', output : '80-libinput-device-groups-litest.rules',
install : false,
configuration : litest_udev_rules_config) configuration : litest_udev_rules_config)
litest_fuzz_override_file = configure_file(input : 'udev/90-libinput-fuzz-override.rules.in', litest_fuzz_override_file = configure_file(input : 'udev/90-libinput-fuzz-override.rules.in',
output : '90-libinput-fuzz-override-litest.rules', output : '90-libinput-fuzz-override-litest.rules',
install : false,
configuration : litest_udev_rules_config) configuration : litest_udev_rules_config)
############ Check for leftover udev rules ######## ############ Check for leftover udev rules ########
@ -364,7 +360,6 @@ libinput_version_h = configure_file(
input : 'src/libinput-version.h.in', input : 'src/libinput-version.h.in',
output : 'libinput-version.h', output : 'libinput-version.h',
configuration : libinput_version_h_config, configuration : libinput_version_h_config,
install : false,
) )
mapfile = join_paths(dir_src, 'libinput.sym') mapfile = join_paths(dir_src, 'libinput.sym')
@ -440,7 +435,6 @@ executable('libinput-debug-events',
configure_file(input : 'tools/libinput-debug-events.man', configure_file(input : 'tools/libinput-debug-events.man',
output : 'libinput-debug-events.1', output : 'libinput-debug-events.1',
configuration : man_config, configuration : man_config,
install : true,
install_dir : dir_man1, install_dir : dir_man1,
) )
@ -461,20 +455,17 @@ test('validate-quirks',
configure_file(input : 'tools/libinput-quirks.man', configure_file(input : 'tools/libinput-quirks.man',
output : 'libinput-quirks.1', output : 'libinput-quirks.1',
configuration : man_config, configuration : man_config,
install : true,
install_dir : dir_man1, install_dir : dir_man1,
) )
# Same man page for the subtools to stay consistent with the other tools # Same man page for the subtools to stay consistent with the other tools
configure_file(input : 'tools/libinput-quirks.man', configure_file(input : 'tools/libinput-quirks.man',
output : 'libinput-quirks-list.1', output : 'libinput-quirks-list.1',
configuration : man_config, configuration : man_config,
install : true,
install_dir : dir_man1, install_dir : dir_man1,
) )
configure_file(input : 'tools/libinput-quirks.man', configure_file(input : 'tools/libinput-quirks.man',
output : 'libinput-quirks-validate.1', output : 'libinput-quirks-validate.1',
configuration : man_config, configuration : man_config,
install : true,
install_dir : dir_man1, install_dir : dir_man1,
) )
@ -493,7 +484,6 @@ test('list-devices',
configure_file(input : 'tools/libinput-list-devices.man', configure_file(input : 'tools/libinput-list-devices.man',
output : 'libinput-list-devices.1', output : 'libinput-list-devices.1',
configuration : man_config, configuration : man_config,
install : true,
install_dir : dir_man1, install_dir : dir_man1,
) )
@ -508,7 +498,6 @@ executable('libinput-measure',
configure_file(input : 'tools/libinput-measure.man', configure_file(input : 'tools/libinput-measure.man',
output : 'libinput-measure.1', output : 'libinput-measure.1',
configuration : man_config, configuration : man_config,
install : true,
install_dir : dir_man1, install_dir : dir_man1,
) )
@ -530,7 +519,6 @@ foreach t : src_python_tools
configure_file(input: t, configure_file(input: t,
output: '@BASENAME@', output: '@BASENAME@',
configuration : config_noop, configuration : config_noop,
install : true,
install_dir : libinput_tool_path install_dir : libinput_tool_path
) )
endforeach endforeach
@ -546,7 +534,6 @@ foreach m : src_man
configure_file(input : m, configure_file(input : m,
output : '@BASENAME@.1', output : '@BASENAME@.1',
configuration : man_config, configuration : man_config,
install : true,
install_dir : dir_man1) install_dir : dir_man1)
endforeach endforeach
@ -561,7 +548,6 @@ executable('libinput-record',
configure_file(input : 'tools/libinput-record.man', configure_file(input : 'tools/libinput-record.man',
output : 'libinput-record.1', output : 'libinput-record.1',
configuration : man_config, configuration : man_config,
install : true,
install_dir : dir_man1, install_dir : dir_man1,
) )
@ -570,7 +556,6 @@ install_data('tools/libinput-replay',
configure_file(input : 'tools/libinput-replay.man', configure_file(input : 'tools/libinput-replay.man',
output : 'libinput-replay.1', output : 'libinput-replay.1',
configuration : man_config, configuration : man_config,
install : true,
install_dir : dir_man1, install_dir : dir_man1,
) )
@ -595,7 +580,6 @@ if get_option('debug-gui')
configure_file(input : 'tools/libinput-debug-gui.man', configure_file(input : 'tools/libinput-debug-gui.man',
output : 'libinput-debug-gui.1', output : 'libinput-debug-gui.1',
configuration : man_config, configuration : man_config,
install : true,
install_dir : dir_man1, install_dir : dir_man1,
) )
endif endif
@ -611,7 +595,6 @@ libinput_tool = executable('libinput',
configure_file(input : 'tools/libinput.man', configure_file(input : 'tools/libinput.man',
output : 'libinput.1', output : 'libinput.1',
configuration : man_config, configuration : man_config,
install : true,
install_dir : dir_man1, install_dir : dir_man1,
) )
@ -630,8 +613,7 @@ if get_option('buildtype') == 'debug' or get_option('buildtype') == 'debugoptimi
config_tool_option_test.set('MESON_ENABLED_DEBUG_GUI', get_option('debug-gui')) config_tool_option_test.set('MESON_ENABLED_DEBUG_GUI', get_option('debug-gui'))
tool_option_test = configure_file(input: 'tools/test-tool-option-parsing.py', tool_option_test = configure_file(input: 'tools/test-tool-option-parsing.py',
output: '@BASENAME@', output: '@BASENAME@',
configuration : config_tool_option_test, configuration : config_tool_option_test)
install : false)
test('tool-option-parsing', test('tool-option-parsing',
tool_option_test, tool_option_test,
args : ['--tool-path', libinput_tool.full_path()], args : ['--tool-path', libinput_tool.full_path()],
@ -894,7 +876,6 @@ if get_option('tests')
configure_file(input : 'test/libinput-test-suite.man', configure_file(input : 'test/libinput-test-suite.man',
output : 'libinput-test-suite.1', output : 'libinput-test-suite.1',
configuration : man_config, configuration : man_config,
install : true,
install_dir : dir_man1, install_dir : dir_man1,
) )
@ -937,8 +918,7 @@ if get_option('tests')
message('valgrind not found, disabling valgrind test suite') message('valgrind not found, disabling valgrind test suite')
endif endif
configure_file(output : 'litest-config.h', configure_file(output : 'litest-config.h',
install : false,
configuration : litest_config_h) configuration : litest_config_h)
endif endif
############ output files ############ ############ output files ############
configure_file(output : 'config.h', install : false, configuration : config_h) configure_file(output : 'config.h', configuration : config_h)