1desktop = 'org.gnome.five-or-more.desktop'
2# Desktop file
3desktop_file = i18n.merge_file (
4  input: desktop + '.in',
5  output: desktop,
6  type: 'desktop',
7  po_dir: po_dir,
8  install: true,
9  install_dir: join_paths (data_dir, 'applications')
10)
11desktop_file_validate = find_program('desktop-file-validate', required: false)
12if desktop_file_validate.found()
13  test(
14    'validate-desktop',
15    desktop_file_validate,
16    args: [
17      desktop_file.full_path()
18    ]
19  )
20endif
21
22# Themes
23foreach file: ['balls.svg', 'shapes.svg', 'tango.svg']
24  install_data (file,
25                install_dir: join_paths(pkgdata_dir, 'themes')
26  )
27endforeach
28
29# UI files
30foreach file: ['five-or-more.ui', 'five-or-more-preferences.ui']
31  install_data (file,
32    install_dir: join_paths (pkgdata_dir)
33  )
34endforeach
35
36# Icons
37foreach size: [ '16x16', '22x22', '24x24', '32x32', '48x48', '256x256', '512x512' ]
38    install_data(join_paths('icons', 'hicolor', size, 'org.gnome.five-or-more.png'),
39                 install_dir: join_paths (data_dir, 'icons', 'hicolor', size, 'apps')
40    )
41endforeach
42
43install_data (join_paths ('icons', 'hicolor', 'symbolic', 'org.gnome.five-or-more-symbolic.svg'),
44             install_dir: join_paths (data_dir, 'icons', 'hicolor', 'symbolic', 'apps')
45             )
46
47appdata = 'org.gnome.five-or-more.appdata.xml'
48# Appdata
49appdata_file = i18n.merge_file (
50  input: appdata + '.in',
51  output: appdata,
52  type: 'xml',
53  po_dir: po_dir,
54  install: true,
55  install_dir: join_paths (data_dir, 'metainfo'),
56)
57appstream_util = find_program('appstream-util', required: false)
58if appstream_util.found()
59  test(
60    'validate-appdata', appstream_util,
61    args: [
62      'validate-relax', '--nonet', appdata_file.full_path()
63    ]
64  )
65endif
66
67# Gschema
68install_data ('org.gnome.five-or-more.gschema.xml',
69  install_dir: join_paths (data_dir, 'glib-2.0', 'schemas')
70)
71
72# Gresource
73resource_files = files ('org.gnome.five-or-more.gresource.xml')
74resources = gnome.compile_resources ('five-or-more', resource_files)
75
76# Manpage
77install_man (
78  'five-or-more.6'
79)
80