Debian Codegraph @

help/meson.build

raw
1
2 list_help_files = '''
3 from glob import glob
4 for f in sorted(glob('**/*.page', recursive=False)):
5 print(f)
6 '''
7
8 if get_option('manager')
9
10 install_man(
11 configure_file(
12 input: '@[email protected]'.format(meson.project_name()),
13 output: '@[email protected]'.format(meson.project_name()),
14 configuration: config
15 )
16 )
17
18 endif
19
20 yelp_tools_info = '''
21
22 Install the yelp-tools package and try again.
23
24 https://gitlab.gnome.org/GNOME/yelp-tools
25
26 For more information see http://yelp.io/
27 '''
28
29 if get_option('yelp-doc')
30
31 # Check for programs required by gnome.yelp #
32 # Display a friendlier message if not present #
33
34 yelp_tools = find_program('yelp-build', required: false)
35
36 if not yelp_tools.found()
37 dependency('yelp-tools', not_found_message: yelp_tools_info)
38 endif
39
40 # #
41
42 result = run_command(python, '-c', list_help_files, check: true)
43
44 help_files = []
45
46 foreach f: result.stdout().strip().split('\n')
47 help_files += f.split('/')[1]
48 endforeach
49
50 help_media = [
51 'media/character-map.png',
52 'media/license.png',
53 'media/list-add-symbolic.svg',
54 'media/list-remove-symbolic.svg',
55 'media/main-window.png',
56 'media/metadata.png',
57 'media/open-menu.svg',
58 'media/orthographies.png',
59 'media/com.github.FontManager.FontManager-48.png',
60 'media/com.github.FontManager.FontManager-64.png'
61 ]
62
63 gnome.yelp(meson.project_name(), sources: help_files, media: help_media)
64
65 endif