Debian Codegraph @

data/meson.build

raw
1 desktop_file = i18n.merge_file(
2 input: 'com.github.tchx84.Flatseal.desktop.in',
3 output: 'com.github.tchx84.Flatseal.desktop',
4 type: 'desktop',
5 po_dir: '../po',
6 install: true,
7 install_dir: join_paths(get_option('datadir'), 'applications')
8 )
9
10 desktop_utils = find_program('desktop-file-validate', required: false)
11 if desktop_utils.found()
12 test('Validate desktop file', desktop_utils,
13 args: [desktop_file]
14 )
15 endif
16
17 appstream_file = i18n.merge_file(
18 input: 'com.github.tchx84.Flatseal.metainfo.xml.in',
19 output: 'com.github.tchx84.Flatseal.metainfo.xml',
20 po_dir: '../po',
21 install: true,
22 install_dir: join_paths(get_option('datadir'), 'metainfo')
23 )
24
25 appstreamcli = find_program('appstreamcli', required: false)
26 if appstreamcli.found()
27 test('Validate appstream file', appstreamcli,
28 args: ['validate', '--no-net', '--explain', appstream_file]
29 )
30 endif
31
32 install_data(
33 'com.github.tchx84.Flatseal.gschema.xml',
34 install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas')
35 )
36
37 compile_schemas = find_program('glib-compile-schemas', required: false)
38 if compile_schemas.found()
39 test('Validate schema file', compile_schemas,
40 args: ['--strict', '--dry-run', meson.current_source_dir()]
41 )
42 endif
43
44 conf = configuration_data()
45 conf.set('prefix', get_option('prefix'))
46 conf.set('bindir', get_option('bindir'))
47
48 configure_file(
49 input: 'com.github.tchx84.Flatseal.service.in',
50 output: 'com.github.tchx84.Flatseal.service',
51 configuration: conf,
52 install_dir: join_paths(get_option('datadir'), 'dbus-1', 'services')
53 )
54
55 subdir('icons')