fa81335fe8
Using the existing metainfo to populate the about window means that we stop duplicating information, which is generally a good idea. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3158>
29 lines
648 B
Meson
29 lines
648 B
Meson
metainfo = i18n.merge_file(
|
|
input: configure_file(
|
|
input: base_id + '.metainfo.xml.in',
|
|
output: app_id + '.metainfo.xml.in',
|
|
configuration: {'app_id': app_id},
|
|
),
|
|
output: '@BASENAME@',
|
|
po_dir: po_dir,
|
|
install: true,
|
|
install_dir: metainfodir
|
|
)
|
|
|
|
if (appstream_util.found())
|
|
test('Validating metainfo via appstream_util',
|
|
appstream_util,
|
|
args: ['validate', '--nonet', metainfo],
|
|
workdir: meson.current_build_dir()
|
|
)
|
|
endif
|
|
|
|
# Validate Appdata
|
|
if (appstreamcli.found())
|
|
test('Validating metainfo',
|
|
appstreamcli,
|
|
args: ['validate', '--no-net', metainfo],
|
|
workdir: meson.current_build_dir()
|
|
)
|
|
endif
|