summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2018-02-21 12:56:52 +0100
committerIñigo Martínez <inigomartinez@gmail.com>2018-02-21 12:56:52 +0100
commitfe1584b1e1053fb4715a05018167ec676618aa8f (patch)
tree058cb6d1fed3baf01aa28ce6187920131f979cce
parentb265c00ed4ff64d10d4e0cc2abc6bb361f3e7fd9 (diff)
downloadtotem-wip/inigomartinez/meson-improve.tar.gz
build: Improve documentation generationwip/inigomartinez/meson-improve
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.
-rw-r--r--docs/reference/meson.build27
1 files changed, 9 insertions, 18 deletions
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
)