summaryrefslogtreecommitdiffstats
path: root/subprojects/extensions-app/data/metainfo/meson.build
blob: dcdb03bd6a58ddd813f86cd0758760a7f78e14f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
metainfo = app_id + '.metainfo.xml'
i18n.merge_file(metainfo,
  input: metainfo + '.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