[eog: 16/21] build: Improve GtkDoc documentation generation
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog: 16/21] build: Improve GtkDoc documentation generation
- Date: Mon, 15 Jul 2019 19:31:01 +0000 (UTC)
commit 6c41a99f9cf91c734938f19a8784028b16ca4edc
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Fri Jun 28 10:31:17 2019 +0200
build: Improve GtkDoc documentation generation
The `gtkdoc` method also supports a parameter called
`ignore_headers` so there is no need to use a custom `scan_args`
flag.
`version.xml` file has also been added as a content file for
correctness.
Finally, the `gobject_typesfile` parameter has been removed becuase
`--rebuild-types` parameter is already provided.
doc/reference/meson.build | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/doc/reference/meson.build b/doc/reference/meson.build
index f8546421..716955c0 100644
--- a/doc/reference/meson.build
+++ b/doc/reference/meson.build
@@ -21,7 +21,7 @@ if not enable_libexif
private_headers += 'eog-exif-util.h'
endif
-configure_file(
+version_xml = configure_file(
input: 'version.xml.in',
output: '@BASENAME@',
configuration: {'VERSION': eog_version},
@@ -31,11 +31,9 @@ gnome.gtkdoc(
meson.project_name(),
main_xml: meson.project_name() + '-docs.xml',
src_dir: src_inc,
+ ignore_headers: private_headers,
dependencies: libeog_dep,
- scan_args: [
- '--rebuild-types',
- '--ignore-headers=' + ' '.join(private_headers),
- ],
- gobject_typesfile: meson.project_name() + '.types',
+ scan_args: '--rebuild-types',
+ content_files: version_xml,
install: true,
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]