1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2021 IƱigo Martinez <inigomartinez@gmail.com>
subdir('xml')
doc_module = 'libmbim-glib'
src_dirs = [
generated_inc,
libmbim_glib_inc,
]
private_headers = [
'mbim-helpers.h',
'mbim-message-private.h',
'mbim-net-port-manager.h',
]
scan_args = [
'--rebuild-types',
'--deprecated-guards="MBIM_DISABLE_DEPRECATED"',
]
glib_prefix = glib_dep.get_pkgconfig_variable('prefix')
fixxref_args = [
'--html-dir=' + (mbim_prefix / gnome.gtkdoc_html_dir(doc_module)),
'--extra-dir=' + (glib_prefix / gnome.gtkdoc_html_dir('glib')),
'--extra-dir=' + (glib_prefix / gnome.gtkdoc_html_dir('gio')),
]
name = doc_module + '-sections.txt'
'''
FIXME: gen_sections should be used in the `input` field but it would add
a dependency over file paths that are not yet created, so
the `depends` section is used to generate alternate dependency.
This is fixed in newer meson versions.
'''
sections_txt = custom_target(
name,
input: 'libmbim-glib-common.sections',
output: name,
capture: true,
command: [find_program('cat'), '@INPUT@'] + gen_sections,
depends: gen_sections_deps,
)
version_xml = configure_file(
input: 'version.xml.in',
output: '@BASENAME@',
configuration: version_conf,
)
gnome.gtkdoc(
doc_module,
main_xml: doc_module + '-docs.xml',
src_dir: src_dirs,
ignore_headers: private_headers,
include_directories: top_inc,
gobject_typesfile: doc_module + '.types',
dependencies: libmbim_glib_dep,
namespace: 'mbim',
scan_args: scan_args,
fixxref_args: fixxref_args,
install: true,
)
|