pipewire/man/meson.build

26 lines
827 B
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', 'http://pipewire.org')
manpage_conf.set('PACKAGE_BUGREPORT', 'https://github.com/PipeWire/pipewire/issues')
2017-06-16 17:31:40 +02:00
manpage_conf.set('top_srcdir', meson.source_root())
manpage_conf.set('top_builddir', meson.build_root())
manpages = ['pipewire.1',
'pipewire-monitor.1' ]
foreach m : manpages
infile = m + '.xml.in'
outfile = m + '.xml'
xml = configure_file(input : infile,
output : outfile,
configuration : manpage_conf)
custom_target(m + '.target',
output : m,
input : xml,
command : [xmltoman, '@INPUT@'],
capture : true,
install : true,
2017-06-16 17:47:56 +02:00
install_dir : join_paths(get_option('mandir'), 'man1'))
2017-06-16 17:31:40 +02:00
endforeach