gnome-shell/subprojects/extensions-app/data/metainfo/meson.build
Florian Müllner 60d640189b extensions-app: Support building a separate Devel app
Follow the pattern used by most GNOME applications and add a profile
build option that allows building a Devel app instead of the regular
release.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3612

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1661>
2021-02-11 17:45:00 +01:00

26 lines
674 B
Meson

metainfo = app_id + '.metainfo.xml'
i18n.merge_file(metainfo,
input: base_id + '.metainfo.xml.in',
output: metainfo,
po_dir: po_dir,
install: true,
install_dir: metainfodir
)
if (appstream_util.found())
test('Validating ' + metainfo,
appstream_util,
args: ['validate', '--nonet', metainfo],
workdir: meson.current_build_dir()
)
r = run_command(appstream_util, '--help')
if (r.stdout().contains('validate-version'))
test('Checking release entry for @0@'.format(meson.project_version()),
appstream_util,
args: ['validate-version', metainfo, meson.project_version()],
workdir: meson.current_build_dir()
)
endif
endif