Debian Codegraph @

data/meson.build

raw
1 install_man('fsearch.1')
2
3 install_data('io.github.cboxdoerfer.FSearch.svg',
4 install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', 'scalable', 'apps'))
5
6
7 desktop_file_in_config = configuration_data()
8 desktop_file_in_config.set('app_id', app_id)
9 desktop_file_in = configure_file(
10 input: 'io.github.cboxdoerfer.FSearch.desktop.in.in',
11 output: '@[email protected]'.format(app_id),
12 configuration: desktop_file_in_config,
13 )
14
15
16 desktop_file = i18n.merge_file(
17 input: desktop_file_in,
18 output: '@[email protected]'.format(app_id),
19 type: 'desktop',
20 po_dir: '../po',
21 install: true,
22 install_dir: join_paths(get_option('datadir'), 'applications')
23 )
24
25 desktop_utils = find_program('desktop-file-validate', required: false)
26 if desktop_utils.found()
27 test('Validate desktop file', desktop_utils,
28 args: [desktop_file]
29 )
30 endif
31
32 appdata_file = i18n.merge_file(
33 input: 'io.github.cboxdoerfer.FSearch.appdata.xml.in',
34 output: 'io.github.cboxdoerfer.FSearch.appdata.xml',
35 type: 'xml',
36 po_dir: join_paths(meson.source_root(), 'po'),
37 install: true,
38 install_dir: join_paths(get_option('datadir'), 'metainfo')
39 )
40
41 appstream_util = find_program('appstream-util', required: false)
42 if appstream_util.found()
43 test(
44 'validate-appdata', appstream_util,
45 args: [
46 'validate-relax', '--nonet', appdata_file.full_path()
47 ]
48 )
49 endif