remove deprecated 'languages' parameter of gnome.yelp()
Since version 0.43 Meson automatically reads the LINGUAS file.
This commit is contained in:
parent
c1bc3ee99d
commit
7094de03cf
2 changed files with 1 additions and 15 deletions
|
|
@ -18,21 +18,7 @@ geary_help_media = [
|
||||||
'figures/geary.svg'
|
'figures/geary.svg'
|
||||||
]
|
]
|
||||||
|
|
||||||
# Meson 0.44 added support for automatically reading LINGUAS, until we
|
|
||||||
# can depend on that, read it in outselves. Note this means if you
|
|
||||||
# change LINGUAS, you will need remove your build directory and re-run
|
|
||||||
# meson for it to be picked up.
|
|
||||||
linguas = run_command(['cat', 'LINGUAS']).stdout().strip()
|
|
||||||
langs = []
|
|
||||||
foreach line : linguas.split('\n')
|
|
||||||
line = line.strip()
|
|
||||||
if not line.startswith('#')
|
|
||||||
langs += line
|
|
||||||
endif
|
|
||||||
endforeach
|
|
||||||
|
|
||||||
gnome.yelp(meson.project_name(),
|
gnome.yelp(meson.project_name(),
|
||||||
languages: langs,
|
|
||||||
sources: geary_help_pages,
|
sources: geary_help_pages,
|
||||||
media: geary_help_media
|
media: geary_help_media
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
project('geary', [ 'vala', 'c' ],
|
project('geary', [ 'vala', 'c' ],
|
||||||
version: '0.13-dev',
|
version: '0.13-dev',
|
||||||
license: 'LGPL2.1+',
|
license: 'LGPL2.1+',
|
||||||
meson_version: '>= 0.41',
|
meson_version: '>= 0.43',
|
||||||
)
|
)
|
||||||
|
|
||||||
gnome = import('gnome')
|
gnome = import('gnome')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue