Debian Codegraph @

data/meson.build

raw
1 ################################################################################
2 # Generate files
3
4 desktop_files = []
5
6 desktop_files += i18n.merge_file(
7 input: configure_file(
8 input: 'org.gnome.SystemMonitor.desktop.in.in',
9 output: '@[email protected]'.format(app_id),
10 configuration: dataconf,
11 ),
12 output: '@[email protected]'.format(app_id),
13 type: 'desktop',
14 po_dir: '../po',
15 install: true,
16 install_dir: join_paths(get_option('datadir'), 'applications')
17 )
18
19 desktop_files += i18n.merge_file(
20 input: configure_file(
21 input: 'gnome-system-monitor-kde.desktop.in.in',
22 output: 'gnome-system-monitor-kde.desktop.in',
23 configuration: dataconf,
24 ),
25 output: 'gnome-system-monitor-kde.desktop',
26 type: 'desktop',
27 po_dir: '../po',
28 install: true,
29 install_dir: join_paths(get_option('datadir'), 'applications')
30 )
31
32 metainfo_file = i18n.merge_file(
33 input : configure_file(
34 configuration: dataconf,
35 input : 'org.gnome.SystemMonitor.metainfo.xml.in.in',
36 output: '@[email protected]'.format(app_id),
37 ),
38 output: '@[email protected]'.format(app_id),
39 po_dir: '../po',
40 install: true,
41 install_dir: join_paths(get_option('datadir'), 'metainfo'),
42 )
43
44 i18n.merge_file(
45 input : configure_file(
46 configuration: dataconf,
47 input : 'org.gnome.gnome-system-monitor.policy.in.in',
48 output: 'org.gnome.gnome-system-monitor.policy.in'
49 ),
50 output: 'org.gnome.gnome-system-monitor.policy',
51 po_dir: '../po',
52 data_dirs: '../po',
53 install: true,
54 install_dir: join_paths(get_option('datadir'), 'polkit-1', 'actions'),
55 )
56
57 configure_file(
58 input: 'org.gnome.SystemMonitor.service.in',
59 output: '@[email protected]'.format(app_id),
60 configuration: dataconf,
61 install: true,
62 install_dir: join_paths(get_option('datadir'), 'dbus-1', 'services'),
63 )
64
65 ################################################################################
66 # Tests
67
68 appstreamcli = find_program('appstreamcli', required: false)
69 if appstreamcli.found()
70 test('validate_metainfo',
71 appstreamcli,
72 args: [ 'validate', '--no-net', '--explain', metainfo_file ],
73 )
74 endif
75
76 desktop_validate = find_program('desktop-file-validate', required: false)
77 if desktop_validate.found()
78 test('validate_desktop',
79 desktop_validate,
80 args: [ desktop_files ],
81 )
82 endif
83
84
85 subdir('icons')