From c84daa275459b017362e9f30b5de1c421f24017f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Mart=C3=ADnez?= Date: Wed, 21 Feb 2018 12:56:52 +0100 Subject: build: Improve documentation generation Some of the parameters used in documentation generation are duplicated because many of them are already added by meson. The `src` directory is the only one that has been left as there is no need for the rest. The references has also been fixed by using the proper path. --- docs/reference/meson.build | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) (limited to 'docs') diff --git a/docs/reference/meson.build b/docs/reference/meson.build index ff61274f0..618aef945 100644 --- a/docs/reference/meson.build +++ b/docs/reference/meson.build @@ -1,3 +1,5 @@ +doc_module = meson.project_name() + private_headers = [ 'bacon-resize.h', 'bacon-time-label.h', @@ -72,27 +74,16 @@ configure_file( configuration: version_conf ) -doc_path = join_paths(totem_datadir, 'gtk-doc', 'html', meson.project_name()) +doc_path = join_paths(totem_prefix, gnome.gtkdoc_html_dir(doc_module)) gnome.gtkdoc( - meson.project_name(), - main_xml: meson.project_name() + '-docs.xml', - src_dir: [ - top_inc, - src_inc, - plugins_inc, - backend_inc - ], + doc_module, + main_xml: doc_module + '-docs.xml', + src_dir: join_paths(meson.source_root(), 'src'), dependencies: libtotem_dep, - scan_args: [ - '--rebuild-types', - '--ignore-headers=' + ' '.join(private_headers), - ], - mkdb_args: [ - '--xml-mode', - '--output-format=xml', - '--name-space=' + meson.project_name() - ], + scan_args: '--ignore-headers=' + ' '.join(private_headers), + mkdb_args: '--name-space=' + doc_module, + fixxref_args: '--html-dir=' + doc_path, install: true, install_dir: doc_path ) -- cgit v1.2.1