pipewire/man/meson.build

44 lines
1.3 KiB
Meson
Raw Normal View History

2017-06-16 17:31:40 +02:00
manpage_conf = configuration_data()
manpage_conf.set('PACKAGE_NAME', meson.project_name())
manpage_conf.set('PACKAGE_VERSION', meson.project_version())
manpage_conf.set('PACKAGE_URL', 'https://pipewire.org')
2020-01-28 16:09:56 +01:00
manpage_conf.set('PACKAGE_BUGREPORT', 'https://gitlab.freedesktop.org/pipewire/pipewire/issues')
2018-08-17 10:18:41 +02:00
manpage_conf.set('PIPEWIRE_CONFIG_DIR', pipewire_configdir)
manpage_conf.set('PIPEWIRE_CONFDATADIR', pipewire_confdatadir)
2017-06-16 17:31:40 +02:00
manpages = [
'pipewire.1.rst.in',
2021-11-10 11:27:33 +10:00
'pipewire-pulse.1.rst.in',
'pipewire.conf.5.rst.in',
'pw-cat.1.rst.in',
'pw-cli.1.rst.in',
'pw-dot.1.rst.in',
'pw-metadata.1.rst.in',
'pw-mididump.1.rst.in',
'pw-mon.1.rst.in',
'pw-profiler.1.rst.in',
'pw-top.1.rst.in',
]
2017-06-16 17:31:40 +02:00
if get_option('pipewire-jack').allowed()
manpages += 'pw-jack.1.rst.in'
endif
if not generate_manpages
subdir_done()
endif
2017-06-16 17:31:40 +02:00
foreach m : manpages
file = m.split('.rst.in').get(0)
rst = configure_file(input : m,
output : file + '.rst',
configuration : manpage_conf)
section = file.split('.').get(-1)
custom_target(file + '.target',
output : file,
input : rst,
command : [rst2man, '@INPUT@', '@OUTPUT@'],
install : true,
install_dir : get_option('mandir') / 'man' + section)
2017-06-16 17:31:40 +02:00
endforeach