Merge pull request #168 from nacho/nacho/gtk-doc

meson: build reference manual with gtk_doc
This commit is contained in:
Tim Rühsen 2021-01-31 17:38:23 +01:00 committed by GitHub
commit 6ce6c4e399
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 1 deletions

View File

@ -1 +1,20 @@
install_man('libpsl.3')
gnome = import('gnome')
if get_option('docs')
configure_file(
input : 'version.xml.in',
output : 'version.xml',
configuration : cdata)
gnome.gtkdoc('libpsl',
main_sgml: 'libpsl-docs.sgml',
src_dir: [
'src',
'include',
],
dependencies: libpsl,
scan_args: [
'--ignore-decorators=G_GNUC_PSL_UNUSED',
],
install: true)
endif

View File

@ -14,3 +14,6 @@ option('psl_file', type : 'string', value : '',
option('psl_testfile', type : 'string', value : '',
description : 'path to PSL test file')
option('docs', type: 'boolean', value: false,
description: 'Build the API reference (requires gtk-doc)')