[libgee/meson: 10/21] Meson: Added devhelp documentation generation




commit 30570ce60418d04970ae2bd7ef81144187f023c7
Author: Daniel Espinosa <daniel espinosa pwmc mx>
Date:   Thu May 11 15:10:19 2017 -0500

    Meson: Added devhelp documentation generation

 doc/meson.build | 27 +++++++++++++++++++++++++++
 meson.build     |  2 +-
 2 files changed, 28 insertions(+), 1 deletion(-)
---
diff --git a/doc/meson.build b/doc/meson.build
new file mode 100644
index 0000000..b31eb2b
--- /dev/null
+++ b/doc/meson.build
@@ -0,0 +1,27 @@
+valadoc = find_program ('valadoc')
+outdir ='Gee-'+API_VERSION
+valacapi = run_command ('valac', '--api-version')
+driver = '--driver='+valacapi.stdout().strip()
+pkgname = '--package-name='+'Gee-'+API_VERSION
+pkgversion = '--package-version='+VERSION
+vapidir = '--vapidir='+join_paths (meson.current_source_dir (),'gee')
+vapidirvapi = '--vapidir='+join_paths (meson.current_source_dir (),'vapi')
+docsdir = join_paths (get_option ('datadir'), 'devhelp','books')
+
+custom_target ('valadocs',
+               input : sources,
+               output : outdir,
+               command : [valadoc,
+                       driver,
+                       '--doclet=devhelp',
+                       '--force',
+                       pkgname,
+                       pkgversion,
+                       '--pkg=gio-2.0',
+                       vapidir,
+                       vapidirvapi,
+                       utilsvapi,
+                       '--directory=@OUTDIR@',
+                       valasources],
+               install : true,
+               install_dir : docsdir)
diff --git a/meson.build b/meson.build
index e2c7e7c..39e56be 100644
--- a/meson.build
+++ b/meson.build
@@ -36,5 +36,5 @@ configure_file(input : 'gee.deps.in',
 
 subdir('utils')
 subdir('gee')
-#subdir('doc')
+subdir('doc')
 #subdir('tests')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]