diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2019-09-03 15:11:16 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2019-09-05 11:17:54 +0200 |
commit | 2d941dc95a1d94d023ac8f98df2f344dbb1d223e (patch) | |
tree | 9a5c4b3841a901eb1aab117250d131b4433112f4 /docs | |
parent | de6f0bc6db35a7c6b6f70b18502a9fcb0afd5ad6 (diff) | |
download | NetworkManager-2d941dc95a1d94d023ac8f98df2f344dbb1d223e.tar.gz |
build: fix errors when building with gtk-doc 1.32
gtkdoc-scan 1.32 performs stricter checks on structures definitions
and so it complains on:
/build/networkmanager/src/NetworkManager/libnm/./nm-vpn-plugin-old.h:0: warning: partial declaration (struct) : typedef struct {
NM_DEPRECATED_IN_1_2
GObject parent;
} NMVpnPluginOld NM_DEPRECATED_IN_1_2;
because of the unrecognized token 'NM_DEPRECATED_IN_1_2'.
Pass all allowed macros to gtkdoc-scan through the --ignore-decorators
argument.
https://gitlab.gnome.org/GNOME/gtk-doc/issues/98
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/238
Diffstat (limited to 'docs')
-rw-r--r-- | docs/libnm/Makefile.am | 4 | ||||
-rw-r--r-- | docs/libnm/meson.build | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/docs/libnm/Makefile.am b/docs/libnm/Makefile.am index 7aa9810e81..ded32f8218 100644 --- a/docs/libnm/Makefile.am +++ b/docs/libnm/Makefile.am @@ -18,8 +18,10 @@ DOC_SOURCE_DIR= \ $(top_srcdir)/libnm \ $(top_builddir)/libnm +decorators := $(shell $(top_srcdir)/tools/decorators.sh $(top_srcdir)/libnm-core/nm-version.h) + # Extra options to supply to gtkdoc-scan. -SCAN_OPTIONS=--rebuild-types --rebuild-sections +SCAN_OPTIONS=--rebuild-types --rebuild-sections --ignore-decorators "$(decorators)" # Extra options to supply to gtkdoc-mkdb. MKDB_OPTIONS=--sgml-mode --output-format=xml diff --git a/docs/libnm/meson.build b/docs/libnm/meson.build index c031a3176f..3403b339d7 100644 --- a/docs/libnm/meson.build +++ b/docs/libnm/meson.build @@ -32,6 +32,9 @@ configure_file( configuration: version_conf, ) +result = run_command(join_paths(meson.source_root(), 'tools', 'decorators.sh'), + join_paths(meson.source_root(), 'libnm-core', 'nm-version.h')) + gnome.gtkdoc( doc_module, main_xml: doc_module + '-docs.xml', @@ -43,6 +46,7 @@ gnome.gtkdoc( scan_args: [ '--rebuild-types', '--rebuild-sections', + '--ignore-decorators=' + result.stdout().strip(), '--ignore-headers=' + ' '.join(private_headers), ], scanobjs_args: '--type-init-func="g_type_init();"', |