1# Install icons
2install_data(
3  join_paths('icons', 'org.gnome.TwentyFortyEight.svg'),
4  install_dir: join_paths(icondir, 'scalable', 'apps'),
5)
6
7install_data(
8  join_paths('icons', 'org.gnome.TwentyFortyEight-symbolic.svg'),
9  install_dir: join_paths(icondir, 'symbolic', 'apps'),
10)
11
12# Install gschema
13install_data(
14  'org.gnome.TwentyFortyEight.gschema.xml',
15  install_dir: schemadir,
16)
17
18# Desktop file
19desktop_file = i18n.merge_file(
20  'desktop-file',
21  input: 'org.gnome.TwentyFortyEight.desktop.in',
22  output: 'org.gnome.TwentyFortyEight.desktop',
23  install: true,
24  install_dir: join_paths(datadir, 'applications'),
25  po_dir: podir,
26  type: 'desktop',
27)
28
29# Validate desktop file
30if desktop_file_validate.found()
31  test(
32    'Validating @0@'.format(desktop_file),
33    desktop_file_validate,
34    args: [desktop_file],
35  )
36endif
37
38# AppData file
39appdata_file = i18n.merge_file(
40  'appdata-file',
41  input: 'org.gnome.TwentyFortyEight.appdata.xml.in',
42  output: 'org.gnome.TwentyFortyEight.appdata.xml',
43  install: true,
44  install_dir: join_paths(datadir, 'metainfo'),
45  po_dir: podir,
46)
47
48# Validate AppData file
49if appstream_util.found()
50  test(
51    'Validating @0@'.format(appdata_file),
52    appstream_util,
53    args: ['validate', '--nonet', appdata_file],
54  )
55endif
56
57# Install man page
58install_man('@0@.6'.format(meson.project_name()))
59