File: meson.build

package info (click to toggle)
setzer 65-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,372 kB
  • sloc: python: 13,320; xml: 3,660; makefile: 139; sh: 6
file content (43 lines) | stat: -rw-r--r-- 981 bytes parent folder | download
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
# .desktop file
desktop_file =files('org.cvfosammmm.Setzer.desktop')
install_data(
  desktop_file,
  install_dir: join_paths(datadir, 'applications'),
)

# icon
install_data(
  files('org.cvfosammmm.Setzer.svg'),
  install_dir: join_paths(datadir, 'icons', 'hicolor', 'scalable', 'apps'),
)

# MIME type
install_data(
  files('org.cvfosammmm.Setzer.mime.xml'),
  install_dir: join_paths(datadir, 'mime', 'packages'),
)

# metainfo
metainfo_file = i18n.merge_file(
  input:  files('org.cvfosammmm.Setzer.metainfo.xml.in'),
  output: 'org.cvfosammmm.Setzer.metainfo.xml',
  type: 'xml',
  po_dir: join_paths(meson.source_root(), 'po'),
  install: true,
  install_dir: join_paths(datadir, 'metainfo'),
)

# man page
config_man = configuration_data()
config_man.set('VERSION', meson.project_version())

man_file = configure_file(
  input: files('setzer.1.in'),
  output: 'setzer.1',
  configuration: config_man,
)

install_man(
  man_file,
  install_dir: join_paths(mandir, 'man1'),
)