Commit e6a9f514 authored by Claude Paroz's avatar Claude Paroz Committed by Thibault Saunier

help: use gnome.yelp helper in help meson file

Fixes #2172
parent e4169170
Pipeline #12030 passed with stage
in 151 minutes and 54 seconds
_help_installdir = get_option('datadir') + '/help/C/pitivi'
install_subdir('figures', install_dir: _help_installdir)
foreach help_page: help_pages
install_data(help_page, install_dir: _help_installdir)
endforeach
ca
cs
de
el
es
fr
sl
sv
uk
lang = 'ca'
_help_installdir = get_option('datadir') + '/help/' + lang + '/pitivi/'
install_subdir('figures', install_dir: _help_installdir)
mo = custom_target(lang + '.mo',
output : lang + '.mo',
input : lang + '.po',
command : [msgfmt, '@INPUT@', '--output-file', '@OUTPUT@'])
foreach help_page: help_pages
custom_target(lang + '.' + help_page + '.page',
output : help_page,
input : '../C/' + help_page,
command : [itstool, '-m', mo,'@INPUT@', '--output', '@OUTPUT@'],
install: true,
install_dir: get_option('datadir') + '/help/' + lang + '/pitivi/')
endforeach
lang = 'cs'
_help_installdir = get_option('datadir') + '/help/' + lang + '/pitivi/'
install_subdir('figures', install_dir: _help_installdir)
mo = custom_target(lang + '.mo',
output : lang + '.mo',
input : lang + '.po',
command : [msgfmt, '@INPUT@', '--output-file', '@OUTPUT@'])
foreach help_page: help_pages
custom_target(lang + '.' + help_page + '.page',
output : help_page,
input : '../C/' + help_page,
command : [itstool, '-m', mo,'@INPUT@', '--output', '@OUTPUT@'],
install: true,
install_dir: get_option('datadir') + '/help/' + lang + '/pitivi/')
endforeach
lang = 'de'
_help_installdir = get_option('datadir') + '/help/' + lang + '/pitivi/'
install_subdir('figures', install_dir: _help_installdir)
mo = custom_target(lang + '.mo',
output : lang + '.mo',
input : lang + '.po',
command : [msgfmt, '@INPUT@', '--output-file', '@OUTPUT@'])
foreach help_page: help_pages
custom_target(lang + '.' + help_page + '.page',
output : help_page,
input : '../C/' + help_page,
command : [itstool, '-m', mo,'@INPUT@', '--output', '@OUTPUT@'],
install: true,
install_dir: get_option('datadir') + '/help/' + lang + '/pitivi/')
endforeach
lang = 'el'
_help_installdir = join_paths(get_option('datadir'), 'help', lang, 'pitivi')
install_subdir('figures', install_dir: _help_installdir)
mo = custom_target(lang + '.mo',
output : lang + '.mo',
input : lang + '.po',
command : [msgfmt, '@INPUT@', '--output-file', '@OUTPUT@'])
foreach help_page: help_pages
custom_target(lang + '.' + help_page + '.page',
output : help_page,
input : join_paths('../C', help_page),
command : [itstool, '-m', mo,'@INPUT@', '--output', '@OUTPUT@'],
install: true,
install_dir: join_paths(get_option('datadir'), 'help', lang, 'pitivi'))
endforeach
lang = 'es'
_help_installdir = join_paths(get_option('datadir'), 'help', lang, 'pitivi')
install_subdir('figures', install_dir: _help_installdir)
mo = custom_target(lang + '.mo',
output : lang + '.mo',
input : lang + '.po',
command : [msgfmt, '@INPUT@', '--output-file', '@OUTPUT@'])
foreach help_page: help_pages
custom_target(lang + '.' + help_page + '.page',
output : help_page,
input : join_paths('../C', help_page),
command : [itstool, '-m', mo,'@INPUT@', '--output', '@OUTPUT@'],
install: true,
install_dir: join_paths(get_option('datadir'), 'help', lang, 'pitivi'))
endforeach
lang = 'fr'
_help_installdir = join_paths(get_option('datadir'), 'help', lang, 'pitivi')
install_subdir('figures', install_dir: _help_installdir)
mo = custom_target(lang + '.mo',
output : lang + '.mo',
input : lang + '.po',
command : [msgfmt, '@INPUT@', '--output-file', '@OUTPUT@'])
foreach help_page: help_pages
custom_target(lang + '.' + help_page + '.page',
output : help_page,
input : join_paths('../C', help_page),
command : [itstool, '-m', mo,'@INPUT@', '--output', '@OUTPUT@'],
install: true,
install_dir: join_paths(get_option('datadir'), 'help', lang, 'pitivi'))
endforeach
help_pages = [
gnome = import('gnome')
sources = [
'about.page',
'cheatsheet.page',
'codecscontainers.page',
......@@ -27,13 +29,26 @@ help_pages = [
'workwithprojects.page'
]
subdir('C')
subdir('ca')
subdir('cs')
subdir('de')
subdir('el')
subdir('es')
subdir('fr')
subdir('sl')
subdir('sv')
subdir('uk')
media = [
'figures/codecscontainers.jpg',
'figures/fadestep1.png',
'figures/fadestep2.png',
'figures/fadestep3.png',
'figures/keyframecurves.png',
'figures/layers.png',
'figures/logo.png',
'figures/mainwindow.jpg',
'figures/ripple-after.png',
'figures/ripple-before.png',
'figures/roll-after.png',
'figures/roll-before.png',
'figures/ruler.png',
'figures/trimming-individual.png'
]
gnome.yelp(
meson.project_name(),
sources: sources,
media: media,
symlink_media: true
)
lang = 'sl'
_help_installdir = join_paths(get_option('datadir'), 'help', lang, 'pitivi')
install_subdir('figures', install_dir: _help_installdir)
mo = custom_target(lang + '.mo',
output : lang + '.mo',
input : lang + '.po',
command : [msgfmt, '@INPUT@', '--output-file', '@OUTPUT@'])
foreach help_page: help_pages
custom_target(lang + '.' + help_page + '.page',
output : help_page,
input : join_paths('../C', help_page),
command : [itstool, '-m', mo,'@INPUT@', '--output', '@OUTPUT@'],
install: true,
install_dir: join_paths(get_option('datadir'), 'help', lang, 'pitivi'))
endforeach
lang = 'sv'
_help_installdir = join_paths(get_option('datadir'), 'help', lang, 'pitivi')
install_subdir('figures', install_dir: _help_installdir)
mo = custom_target(lang + '.mo',
output : lang + '.mo',
input : lang + '.po',
command : [msgfmt, '@INPUT@', '--output-file', '@OUTPUT@'])
foreach help_page: help_pages
custom_target(lang + '.' + help_page + '.page',
output : help_page,
input : join_paths('../C', help_page),
command : [itstool, '-m', mo,'@INPUT@', '--output', '@OUTPUT@'],
install: true,
install_dir: join_paths(get_option('datadir'), 'help', lang, 'pitivi'))
endforeach
lang = 'uk'
_help_installdir = join_paths(get_option('datadir'), 'help', lang, 'pitivi')
install_subdir('figures', install_dir: _help_installdir)
mo = custom_target(lang + '.mo',
output : lang + '.mo',
input : lang + '.po',
command : [msgfmt, '@INPUT@', '--output-file', '@OUTPUT@'])
foreach help_page: help_pages
custom_target(lang + '.' + help_page + '.page',
output : help_page,
input : join_paths('../C', help_page),
command : [itstool, '-m', mo,'@INPUT@', '--output', '@OUTPUT@'],
install: true,
install_dir: join_paths(get_option('datadir'), 'help', lang, 'pitivi'))
endforeach
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment