2017-06-16 15:31:40 +00: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')
|
2020-01-28 15:09:56 +00:00
|
|
|
manpage_conf.set('PACKAGE_BUGREPORT', 'https://gitlab.freedesktop.org/pipewire/pipewire/issues')
|
2018-08-17 08:18:41 +00:00
|
|
|
manpage_conf.set('PIPEWIRE_CONFIG_DIR', pipewire_configdir)
|
2017-06-16 15:31:40 +00:00
|
|
|
manpage_conf.set('top_srcdir', meson.source_root())
|
|
|
|
manpage_conf.set('top_builddir', meson.build_root())
|
|
|
|
|
2018-08-30 12:49:08 +00:00
|
|
|
manpages = [
|
|
|
|
[ 'pipewire', '1' ],
|
|
|
|
[ 'pipewire.conf', '5' ],
|
2020-05-03 05:25:28 +00:00
|
|
|
[ 'pw-cat', '1' ],
|
2020-01-28 15:09:56 +00:00
|
|
|
[ 'pw-cli', '1' ],
|
2020-05-03 19:08:01 +00:00
|
|
|
[ 'pw-dot', '1' ],
|
2020-05-02 18:19:20 +00:00
|
|
|
[ 'pw-profiler', '1' ],
|
2020-05-06 15:12:01 +00:00
|
|
|
[ 'pw-metadata', '1' ],
|
2020-05-03 18:50:38 +00:00
|
|
|
[ 'pw-mididump', '1' ],
|
2020-01-28 15:09:56 +00:00
|
|
|
[ 'pw-mon', '1' ]
|
2018-08-30 12:49:08 +00:00
|
|
|
]
|
2017-06-16 15:31:40 +00:00
|
|
|
|
2020-06-08 13:24:49 +00:00
|
|
|
if get_option('pipewire-jack')
|
|
|
|
manpages += [[ 'pw-jack', '1' ]]
|
|
|
|
endif
|
|
|
|
|
2017-06-16 15:31:40 +00:00
|
|
|
foreach m : manpages
|
2018-08-30 12:49:08 +00:00
|
|
|
file = m.get(0) + '.' + m.get(1)
|
|
|
|
infile = file + '.xml.in'
|
|
|
|
outfile = file + '.xml'
|
2017-06-16 15:31:40 +00:00
|
|
|
xml = configure_file(input : infile,
|
|
|
|
output : outfile,
|
|
|
|
configuration : manpage_conf)
|
2018-08-30 12:49:08 +00:00
|
|
|
custom_target(file + '.target',
|
|
|
|
output : file,
|
2017-06-16 15:31:40 +00:00
|
|
|
input : xml,
|
|
|
|
command : [xmltoman, '@INPUT@'],
|
|
|
|
capture : true,
|
|
|
|
install : true,
|
2018-09-19 14:06:29 +00:00
|
|
|
install_dir : join_paths(get_option('mandir'), 'man' + m.get(1)))
|
2017-06-16 15:31:40 +00:00
|
|
|
endforeach
|