File: meson.build

package info (click to toggle)
appstream-generator 0.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,864 kB
  • sloc: cpp: 13,398; xml: 259; sh: 235; python: 103; makefile: 19
file content (29 lines) | stat: -rw-r--r-- 1,029 bytes parent folder | download | duplicates (2)
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
26
27
28
29

# data
install_data('asgen-hints.json', install_dir: 'share/appstream')
install_data('hicolor-theme-index.theme', install_dir: 'share/appstream')

ascli_exe = find_program('appstreamcli', required: true)

metainfo_filename = 'org.freedesktop.appstream.generator.metainfo.xml'
metainfo_with_relinfo = custom_target('add-metainfo-releases',
    input : ['../NEWS', files(metainfo_filename)],
    output : [metainfo_filename],
    command : [ascli_exe, 'news-to-metainfo', '--limit=6', '@INPUT0@', '@INPUT1@', '@OUTPUT@'],
    install : true,
    install_dir : join_paths (get_option ('datadir'), 'metainfo')
)

if ascli_exe.found()
  # Validate our MetaInfo file
  test('asgen-validate_metainfo',
    ascli_exe,
    args: ['validate',
           '--no-net', '--pedantic',
           files(metainfo_filename)]
  )
endif

# templates
#install_subdir('data/templates/', install_dir: 'share/appstream') # FIXME: Doesn't handle dir symlinks correctly
meson.add_install_script(source_root + '/contrib/setup/meson-install-templates.sh')