--- /dev/null
+gnome = import('gnome')
+
+version_file = configure_file(
+ input: 'version.xml.in',
+ output: 'version.xml',
+ configuration: cdata,
+)
+
+gnome.gtkdoc(
+ 'libkmod',
+ content_files : version_file,
+ ignore_headers : [
+ '@0@/libkmod/libkmod-index.h'.format(meson.project_source_root()),
+ '@0@/libkmod/libkmod-internal-file.h'.format(meson.project_source_root()),
+ '@0@/libkmod/libkmod-internal.h'.format(meson.project_source_root()),
+ ],
+ scan_args : '--ignore-decorators="KMOD_EXPORT"',
+ src_dir : '@0@/libkmod/'.format(meson.project_source_root()),
+ namespace : 'kmod',
+ module_version : '3',
+ main_xml : 'libkmod-docs.xml',
+)
subdir('man')
endif
+if get_option('docs')
+ subdir('libkmod/docs')
+endif
+
summary({
'moduledir' : moduledir,
'prefix' : get_option('prefix'),
'debug-messages' : get_option('debug-messages'),
'build-tests' : get_option('build-tests'),
'manpages' : get_option('manpages'),
+ 'docs' : get_option('docs'),
}, section : 'Options')
summary({
value : true,
description : 'Build the manpages. Default: true',
)
+
+option(
+ 'docs',
+ type : 'boolean',
+ value : false,
+ description : 'Build the documentation. Default: false',
+)