--- a/gplugin/meson.build Mon Jul 31 20:09:32 2017 -0500
+++ b/gplugin/meson.build Mon Jul 31 20:56:39 2017 -0500
@@ -113,12 +113,16 @@
output : 'gplugin-version.h',
configuration : version_conf,
- install_dir : join_paths(get_option('includedir'), 'gplugin-1.0', 'gplugin'))
+ install_dir : join_paths(get_option('includedir'), 'gplugin-1.0', 'gplugin') GPLUGIN_PUBLIC_BUILT_HEADERS += [
+gplugin_inc = include_directories('.') @@ -127,6 +131,7 @@
foreach header : ['gplugin-version.h', 'gplugin-enums.h'] # GPLUGIN_PUBLIC_BUILT_HEADERS
GPLUGIN_H_INCLUDES = '@0@\n#include <gplugin/@1@>'.format(
@@ -180,6 +185,7 @@
version : GPLUGIN_LIBRARY_VERSION,
gplugin_dep = declare_dependency(
include_directories : [toplevel_inc, include_directories('.')],
@@ -270,3 +276,7 @@
###############################################################################
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gplugin/reference/gplugin-docs.xml Mon Jul 31 20:56:39 2017 -0500
@@ -0,0 +1,39 @@
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" + "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [ +<!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'"> +<!ENTITY version SYSTEM "version.xml"> +<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude"> + <title>GPlugin Reference Manual</title> + <title>GPlugin &version;</title> + GPlugin is a GObject based library that implements a reusable plugin system +that supports loading plugins in other languages via loaders. GPlugin also +implements dependencies among the plugins. + <title>API Reference</title> + <index id="api-index-full"> + <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include> + <index id="api-index-deprecated" role="deprecated"> + <title>Index of deprecated symbols</title> + <xi:include href="xml/api-index-deprecated.xml"><xi:fallback /></xi:include> +<!-- <index id="api-index-2.11.0" role="2.11.0"> + <title>Index of new symbols in 2.11.0</title> + <xi:include href="xml/api-index-2.11.0.xml"><xi:fallback /></xi:include> + <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gplugin/reference/meson.build Mon Jul 31 20:56:39 2017 -0500
@@ -0,0 +1,37 @@
+# Header files or dirs to ignore when scanning. Use base file/dir names +ignore_hfiles = ['dynamic-test.h'] +ignore_hfiles += GPLUGIN_PRIVATE_HEADERS +# Extra options to supply to gtkdoc-scan. + '--deprecated-guards=GPLUGIN_DISABLE_DEPRECATED', + '--ignore-headers=' + ' '.join(ignore_hfiles), +# Extra options to supply to gtkdoc-mkdb. + '--ignore-files=' + ' '.join(ignore_hfiles), +gplugin_version_xml = configure_file( + input : 'version.xml.in', + output : 'version.xml', + configuration : version_conf) +gnome.gtkdoc(DOC_MODULE, + main_xml : DOC_MODULE + '-docs.xml', + dependencies : gplugin_dep, + gobject_typesfile : DOC_MODULE + '.types', + content_files : content_files, --- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gplugin/reference/version.xml.in Mon Jul 31 20:56:39 2017 -0500
@@ -0,0 +1,1 @@
--- a/meson.build Mon Jul 31 20:09:32 2017 -0500
+++ b/meson.build Mon Jul 31 20:56:39 2017 -0500
@@ -93,6 +93,20 @@
toplevel_inc = include_directories('.')
+############################################################################### +############################################################################### +ENABLE_DOC = get_option('doc') + if meson.version().version_compare('<0.41.2') + error('Meson 0.41.2 or newer is required to build documentation.') ###############################################################################
###############################################################################
--- a/meson_options.txt Mon Jul 31 20:09:32 2017 -0500
+++ b/meson_options.txt Mon Jul 31 20:56:39 2017 -0500
@@ -20,9 +20,15 @@
+ type : 'boolean', value : false, + description : 'build documentation with gtk-doc' type : 'boolean', value : true,
- description : 'Whether or not to build the gtk3 library'
+ description : 'Whether or not to build the gtk3 library'