diff options
author | Daniel Espinosa <daniel.espinosa@pwmc.mx> | 2017-05-11 15:10:19 -0500 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2022-02-21 13:56:21 +0100 |
commit | f7b5bb86f2baccfb64c326d4e801ce8316c6e615 (patch) | |
tree | e34470d224e111e722e80ccbcd26b386688a2e01 | |
parent | 2a88374cf0225b27e2f7501a482a37f9b540bb74 (diff) | |
download | libgee-f7b5bb86f2baccfb64c326d4e801ce8316c6e615.tar.gz |
Meson: Added devhelp documentation generation
-rw-r--r-- | doc/meson.build | 27 | ||||
-rw-r--r-- | meson.build | 2 |
2 files changed, 28 insertions, 1 deletions
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') |