weston/man/meson.build
Philipp Zabel 84c10124cd compositor: support loading backend via shortened name
While the --backend parameter looks like it takes a file name, it really
is selected from a list of supported strings that are then funneled
through a translation to enum weston_compositor_backend [1].

Because all backend parameters are of the form "...-backend.so", and
writing "--backend=...-backend.so" is boring, allow the --backend option
to match the backend name without "-backend.so" suffix instead.

For example, this allows to use "--backend=headless" instead of
"--backend=headless-backend.so".

Update help text and documentation. Keep the old way working for
backwards compatibility.

[1] 50dbf38514 ("libweston: use enum to choose the backend")

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
2022-12-08 17:39:12 +01:00

65 lines
1.5 KiB
Meson

man_conf = configuration_data()
man_conf.set('weston_native_backend', backend_default)
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-bindings.man',
output: 'weston-bindings.7',
install_dir: join_paths(dir_man, 'man7'),
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
if get_option('backend-vnc')
configure_file(
input: 'weston-vnc.man',
output: 'weston-vnc.7',
install_dir: join_paths(dir_man, 'man7'),
configuration: man_conf
)
endif