Debian Codegraph @

data/meson.build

raw
1 # Desktop file
2 desktop_file = i18n.merge_file(
3 input: '@[email protected]'.format(application_id),
4 output: '@[email protected]'.format(application_id),
5 po_dir: join_paths(meson.project_source_root(), 'po'),
6 type: 'desktop',
7 install: true,
8 install_dir: join_paths(get_option('datadir'), 'applications')
9 )
10
11 # Validate desktop file
12 desktop_file_validate = find_program('desktop-file-validate', required: false)
13 if desktop_file_validate.found()
14 test(
15 'validate-desktop',
16 desktop_file_validate,
17 args: [
18 desktop_file.full_path()
19 ]
20 )
21 endif
22
23 # MetaInfo file
24 metainfo_file = i18n.merge_file(
25 input: '@[email protected]'.format(application_id),
26 output: '@[email protected]'.format(application_id),
27 po_dir: join_paths(meson.project_source_root(), 'po'),
28 install: true,
29 install_dir: join_paths(get_option('datadir'), 'metainfo')
30 )
31
32 # Validate MetaInfo file
33 appstreamcli = find_program('appstreamcli', required: false)
34 if appstreamcli.found()
35 test(
36 'validate-metainfo', appstreamcli,
37 args: [
38 'validate', '--no-net', '--explain', metainfo_file.full_path()
39 ]
40 )
41 endif
42
43 # Install man page
44 install_man('@[email protected]'.format(meson.project_name()))
45
46 # Make D-Bus activatable
47 service_conf = configuration_data()
48 service_conf.set('bindir', bindir)
49
50 service = 'org.gnome.Robots.service'
51
52 configure_file(
53 input: service + '.in',
54 output: service,
55 install: true,
56 install_dir: join_paths(datadir, 'dbus-1', 'services'),
57 configuration: service_conf
58 )
59
60 # Install GSchema file
61 install_data(
62 '@[email protected]'.format(application_id),
63 install_dir : join_paths(get_option('datadir'), 'glib-2.0', 'schemas')
64 )
65
66 install_data(
67 [
68 'cursors/cursor-up-left.png',
69 'cursors/cursor-up.png',
70 'cursors/cursor-up-right.png',
71 'cursors/cursor-left.png',
72 'cursors/cursor-hold.png',
73 'cursors/cursor-right.png',
74 'cursors/cursor-down-left.png',
75 'cursors/cursor-down.png',
76 'cursors/cursor-down-right.png'
77 ],
78 install_dir: join_paths(pkgdatadir, 'cursors')
79 )
80
81 install_data(
82 [
83 'pixmaps/aieee.png',
84 'pixmaps/splat.png',
85 'pixmaps/yahoo.png'
86 ],
87 install_dir: join_paths(pkgdatadir, 'pixmaps')
88 )
89
90 install_data(
91 [
92 'sounds/die.ogg',
93 'sounds/splat.ogg',
94 'sounds/teleport.ogg',
95 'sounds/victory.ogg',
96 'sounds/yahoo.ogg'
97 ],
98 install_dir: join_paths(pkgdatadir, 'sounds')
99 )
100
101 install_data(
102 [
103 'themes/anthills.png',
104 'themes/boo.svg',
105 'themes/cows.png',
106 'themes/eggs.png',
107 'themes/gnomes.png',
108 'themes/mice.png',
109 'themes/robots.svg',
110 'themes/spills.png',
111 'themes/stormclouds.png',
112 'themes/toasters.png',
113 'themes/ufo.svg'
114 ],
115 install_dir: join_paths(pkgdatadir, 'themes')
116 )
117 subdir('icons')