weston/man/meson.build
Harish Krupo b81fc517d8 meson.build: Fix warning for configure_file
We claim to support meson versions >= 0.47 but the `install:` argument
in configure_file was introduced in version 0.50. This produces the
following meson warning:

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

From the documentation for the install argument [1]:
" When omitted it (install) defaults to true when install_dir is set and
not empty, false otherwise."

So, remove the `install:` argument and just depend on `install_dir` for
installing.

Fixes: https://gitlab.freedesktop.org/wayland/weston/issues/225

[1] https://mesonbuild.com/Reference-manual.html#configure_file

Signed-off-by: Harish Krupo <harish.krupo.kps@intel.com>
2019-04-16 10:51:36 +05:30

49 lines
1.2 KiB
Meson

man_conf = configuration_data()
man_conf.set('weston_native_backend', opt_backend_native)
man_conf.set('weston_modules_dir', dir_module_weston)
man_conf.set('libweston_modules_dir', dir_module_libweston)
man_conf.set('weston_shell_client', get_option('desktop-shell-client-default'))
man_conf.set('weston_libexecdir', dir_libexec)
man_conf.set('weston_bindir', dir_bin)
man_conf.set('xserver_path', get_option('xwayland-path'))
man_conf.set('version', version_weston)
configure_file(
input: 'weston.man',
output: 'weston.1',
install_dir: join_paths(dir_man, 'man1'),
configuration: man_conf
)
configure_file(
input: 'weston-debug.man',
output: 'weston-debug.1',
install_dir: join_paths(dir_man, 'man1'),
configuration: man_conf
)
configure_file(
input: 'weston.ini.man',
output: 'weston.ini.5',
install_dir: join_paths(dir_man, 'man5'),
configuration: man_conf
)
if get_option('backend-drm')
configure_file(
input: 'weston-drm.man',
output: 'weston-drm.7',
install_dir: join_paths(dir_man, 'man7'),
configuration: man_conf
)
endif
if get_option('backend-rdp')
configure_file(
input: 'weston-rdp.man',
output: 'weston-rdp.7',
install_dir: join_paths(dir_man, 'man7'),
configuration: man_conf
)
endif