Debian Codegraph @

docs/reference/meson.build

raw
1 api_version_major = '0'
2 expand_content_md_files = []
3
4 toml_data = configuration_data()
5 toml_data.set('VERSION', meson.project_version())
6
7 libnotify_toml = configure_file(
8 input: 'libnotify.toml.in',
9 output: 'libnotify.toml',
10 configuration: toml_data
11 )
12
13 dependency('gi-docgen', version: '>= 2021.7',
14 fallback: ['gi-docgen', 'dummy_dep'],
15 native: true,
16 required: get_option('gtk_doc'))
17
18 gidocgen = find_program('gi-docgen')
19
20 docs_dir = get_option('datadir') / 'doc'
21
22 custom_target('libnotify-doc',
23 input: [ libnotify_toml, libnotify_gir[0] ],
24 output: 'libnotify-@0@'.format(api_version_major),
25 command: [
26 gidocgen,
27 'generate',
28 '--quiet',
29 '--add-include-path=@0@'.format(meson.current_build_dir() / '../../libnotify'),
30 '--config=@INPUT0@',
31 '--output-dir=@OUTPUT@',
32 '--no-namespace-dir',
33 '--content-dir=@0@'.format(meson.current_source_dir()),
34 '@INPUT1@',
35 ],
36 depend_files: [ expand_content_md_files ],
37 build_by_default: true,
38 install: true,
39 install_dir: docs_dir,
40 )