2022-11-22 18:44:28 +01:00
|
|
|
appdata_conf = configuration_data()
|
|
|
|
appdata_conf.set('appid', application_id)
|
|
|
|
|
2023-12-21 17:59:43 +03:00
|
|
|
appdata_file = i18n.merge_file(
|
2022-11-22 18:44:28 +01:00
|
|
|
input: configure_file(
|
2024-02-08 16:07:57 -05:00
|
|
|
input: 'org.gnome.Settings.appdata.xml.in.in',
|
2022-11-22 18:44:28 +01:00
|
|
|
output: 'org.gnome.Settings.appdata.xml.in',
|
|
|
|
configuration: appdata_conf
|
|
|
|
),
|
|
|
|
output: '@0@.appdata.xml'.format(application_id),
|
2017-09-11 22:05:40 +02:00
|
|
|
po_dir: po_dir,
|
2017-07-25 22:28:38 +02:00
|
|
|
install: true,
|
|
|
|
install_dir: join_paths(control_center_datadir, 'metainfo')
|
|
|
|
)
|
2023-12-21 17:59:43 +03:00
|
|
|
|
|
|
|
# Validate Appdata
|
|
|
|
appstreamcli = find_program('appstreamcli', required: false)
|
|
|
|
if appstreamcli.found()
|
|
|
|
test(
|
|
|
|
'validate-appdata',
|
|
|
|
appstreamcli,
|
|
|
|
args: ['validate', '--no-net', '--explain', appdata_file.full_path()],
|
|
|
|
depends: appdata_file
|
|
|
|
)
|
|
|
|
endif
|