summaryrefslogtreecommitdiff
path: root/docs/libnm
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2019-09-11 13:15:22 +0200
committerThomas Haller <thaller@redhat.com>2019-10-01 09:49:33 +0200
commit9d4e1ad5e3bd6b903f6c96f65fc1d7ef3a0febc7 (patch)
treed8b185345a4b09bb6ae930d2a5df5326f5c8bd9c /docs/libnm
parent700f6f6b5fd5dd9975200cb22a9251e811963d47 (diff)
downloadNetworkManager-9d4e1ad5e3bd6b903f6c96f65fc1d7ef3a0febc7.tar.gz
meson: Improve libnm documentation build file
the `doc_module` variable has been removed. It was created because its used in the autotools build file but actually `libnm_name` variable can be used easily. Different objects used in the documentation target have been grouped together. The content file `version.xml` is now added properly.
Diffstat (limited to 'docs/libnm')
-rw-r--r--docs/libnm/meson.build37
1 files changed, 20 insertions, 17 deletions
diff --git a/docs/libnm/meson.build b/docs/libnm/meson.build
index 7da4061a3d..43a13f498a 100644
--- a/docs/libnm/meson.build
+++ b/docs/libnm/meson.build
@@ -1,4 +1,7 @@
-doc_module = libnm_name
+src_dirs = [
+ libnm_core_inc,
+ libnm_inc,
+]
private_headers = [
'common.h',
@@ -26,29 +29,29 @@ private_headers = [
'test-general-enums.h',
]
-configure_file(
+scan_args = [
+ '--rebuild-types',
+ '--rebuild-sections',
+ '--ignore-decorators=NM_AVAILABLE_IN_\d_\d\d?|NM_DEPRECATED_IN_\d_\d\d?',
+ '--ignore-headers=' + ' '.join(private_headers),
+]
+
+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: [
- libnm_core_inc,
- libnm_inc,
- ],
+ libnm_name,
+ main_xml: libnm_name + '-docs.xml',
+ src_dir: src_dirs,
dependencies: libnm_dep,
- scan_args: [
- '--rebuild-types',
- '--rebuild-sections',
- '--ignore-decorators=NM_AVAILABLE_IN_\d_\d\d?|NM_DEPRECATED_IN_\d_\d\d?',
- '--ignore-headers=' + ' '.join(private_headers),
- ],
+ scan_args: scan_args,
scanobjs_args: '--type-init-func="g_type_init();"',
- fixxref_args: '--html-dir=' + join_paths(nm_prefix, gnome.gtkdoc_html_dir(doc_module)),
- gobject_typesfile: doc_module + '.types',
- html_assets: doc_module + '.png',
+ fixxref_args: '--html-dir=' + join_paths(nm_prefix, gnome.gtkdoc_html_dir(libnm_name)),
+ gobject_typesfile: libnm_name + '.types',
+ html_assets: 'libnm.png',
+ content_files: version_xml,
install: true,
)