File: meson.build

package info (click to toggle)
gnome-2048 3.38.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,056 kB
  • sloc: xml: 70; python: 18; makefile: 6
file content (58 lines) | stat: -rw-r--r-- 1,339 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Install icons
install_data(
  join_paths('icons', 'org.gnome.TwentyFortyEight.svg'),
  install_dir: join_paths(icondir, 'scalable', 'apps'),
)

install_data(
  join_paths('icons', 'org.gnome.TwentyFortyEight-symbolic.svg'),
  install_dir: join_paths(icondir, 'symbolic', 'apps'),
)

# Install gschema
install_data(
  'org.gnome.TwentyFortyEight.gschema.xml',
  install_dir: schemadir,
)

# Desktop file
desktop_file = i18n.merge_file(
  'desktop-file',
  input: 'org.gnome.TwentyFortyEight.desktop.in',
  output: 'org.gnome.TwentyFortyEight.desktop',
  install: true,
  install_dir: join_paths(datadir, 'applications'),
  po_dir: podir,
  type: 'desktop',
)

# Validate desktop file
if desktop_file_validate.found()
  test(
    'Validating @0@'.format(desktop_file),
    desktop_file_validate,
    args: [desktop_file],
  )
endif

# AppData file
appdata_file = i18n.merge_file(
  'appdata-file',
  input: 'org.gnome.TwentyFortyEight.appdata.xml.in',
  output: 'org.gnome.TwentyFortyEight.appdata.xml',
  install: true,
  install_dir: join_paths(datadir, 'metainfo'),
  po_dir: podir,
)

# Validate AppData file
if appstream_util.found()
  test(
    'Validating @0@'.format(appdata_file),
    appstream_util,
    args: ['validate', '--nonet', appdata_file],
  )
endif

# Install man page
install_man('@0@.6'.format(meson.project_name()))