aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/gnome.py
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2017-09-10 13:52:17 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-09-12 20:29:24 +0300
commit540c928e3009040a520459d2993a9dfa021c1a1a (patch)
treea3b459bc47b169155101fe59478f3630426968c1 /mesonbuild/modules/gnome.py
parentb04c4fa878d9a1fc3ca9f7b6e4c613735d871476 (diff)
downloadmeson-540c928e3009040a520459d2993a9dfa021c1a1a.zip
meson-540c928e3009040a520459d2993a9dfa021c1a1a.tar.gz
meson-540c928e3009040a520459d2993a9dfa021c1a1a.tar.bz2
gnome: Docbook generation for gdbus_codegen()
Add new 'docbook' argument which generates Docbook documentation for each D-Bus interface. The docbook argument will be used as prefix in `PREFIX`-NAME.xml pattern, and NAME will be replaced by the D-Bus interfaces.
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r--mesonbuild/modules/gnome.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index cb8f560..476f80b 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -850,7 +850,8 @@ class GnomeModule(ExtensionModule):
return []
- @permittedKwargs({'interface_prefix', 'namespace', 'object_manager', 'build_by_default', 'annotations'})
+ @permittedKwargs({'interface_prefix', 'namespace', 'object_manager', 'build_by_default',
+ 'annotations', 'docbook'})
def gdbus_codegen(self, state, args, kwargs):
if len(args) != 2:
raise MesonException('Gdbus_codegen takes two arguments, name and xml file.')
@@ -864,6 +865,8 @@ class GnomeModule(ExtensionModule):
cmd += ['--c-namespace', kwargs.pop('namespace')]
if kwargs.get('object_manager', False):
cmd += ['--c-generate-object-manager']
+ if 'docbook' in kwargs:
+ cmd += ['--generate-docbook', kwargs.pop('docbook')]
# Annotations are a bit ugly in that they are a list of lists of strings...
annotations = kwargs.pop('annotations', [])