File: meson.build

package info (click to toggle)
totem 43.2-9
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,496 kB
  • sloc: ansic: 30,058; python: 964; makefile: 228; xml: 221; sh: 157
file content (25 lines) | stat: -rw-r--r-- 677 bytes parent folder | download | duplicates (3)
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
source_appdata = 'org.gnome.Totem.appdata.xml'
dest_appdata = application_id + '.appdata.xml'

appdata_in = configure_file(
  input: source_appdata + '.in.in',
  output: source_appdata + '.in',
  configuration: desktop_conf
)

appdata_file = i18n.merge_file (
    input: appdata_in,
    output: dest_appdata,
    install: true,
    install_dir: join_paths(totem_datadir, 'metainfo'),
    po_dir: po_dir,)

# Validate Appdata
appstreamcli = find_program('appstreamcli', required: false)
if appstreamcli.found()
  test(
      'validate-appdata', appstreamcli,
      depends: appdata_file,
      args: ['validate', '--no-net', '--explain', appdata_file.full_path()]
      )
endif