summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2018-12-21 12:11:20 +0100
committerIñigo Martínez <inigomartinez@gmail.com>2019-01-11 12:17:38 +0100
commitdf46998feeeb77eec41e8bda6dd3fe1273fd5e37 (patch)
treebcd416783b76ba24b742b8a38221c518bf828737 /docs
parentaaafb400b7ef6dc204383761e59e86c583ef3fe7 (diff)
downloadgnome-bluetooth-df46998feeeb77eec41e8bda6dd3fe1273fd5e37.tar.gz
build: Improve GtkDoc documentation generation
Since gnome-bluetooth was ported to meson, version has acquired a new parameter called `private_headers` which replaces the `--ignore-headers` argument in `scan_args` parameter. `--rebuild-types` argument is also not necessary because a types does exist already. `--sgml-mode` and `--output-format=xml` parameters are also not necessary because meson already handles them automatically. Finally, the `version.xml` is included now explicitly as a content file because previously it was copied as a workaround.
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/libgnome-bluetooth/meson.build14
1 files changed, 4 insertions, 10 deletions
diff --git a/docs/reference/libgnome-bluetooth/meson.build b/docs/reference/libgnome-bluetooth/meson.build
index 728c24d7..67e030de 100644
--- a/docs/reference/libgnome-bluetooth/meson.build
+++ b/docs/reference/libgnome-bluetooth/meson.build
@@ -12,7 +12,7 @@ private_headers = [
version_conf = configuration_data()
version_conf.set('VERSION', gnomebt_version)
-configure_file(
+version_xml = configure_file(
input: 'version.xml.in',
output: '@BASENAME@',
configuration: version_conf,
@@ -21,16 +21,10 @@ configure_file(
gnome.gtkdoc(
meson.project_name(),
main_sgml: meson.project_name() + '-docs.sgml',
- src_dir: top_inc,
+ src_dir: lib_inc,
dependencies: libgnome_bluetooth_dep,
- scan_args: [
- '--rebuild-types',
- '--ignore-headers=' + ' '.join(private_headers),
- ],
- mkdb_args: [
- '--sgml-mode',
- '--output-format=xml',
- ],
+ ignore_headers: private_headers,
gobject_typesfile: meson.project_name() + '.types',
+ content_files: version_xml,
install: true,
)