aboutsummaryrefslogtreecommitdiff
path: root/modules/gnome.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-10-19 00:26:54 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-10-19 00:26:54 +0300
commit0b63f32fe33298bb373522b0a717e186a4d0ebd4 (patch)
tree2ded6189b8ed88d9a980e9de3330b4ebdaddcebb /modules/gnome.py
parent3b2d33ef84ed717e875790b34bac028529420c08 (diff)
downloadmeson-0b63f32fe33298bb373522b0a717e186a4d0ebd4.zip
meson-0b63f32fe33298bb373522b0a717e186a4d0ebd4.tar.gz
meson-0b63f32fe33298bb373522b0a717e186a4d0ebd4.tar.bz2
Can specify extra args to gtkdoc-scan.
Diffstat (limited to 'modules/gnome.py')
-rw-r--r--modules/gnome.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/gnome.py b/modules/gnome.py
index a744ab2..9e2b476 100644
--- a/modules/gnome.py
+++ b/modules/gnome.py
@@ -233,6 +233,17 @@ class GnomeModule:
'--headerdir=' + header_dir,
'--mainfile=' + main_file,
'--modulename=' + modulename]
+ try:
+ html_args = kwargs['html_args']
+ if not isinstance(html_args, list):
+ html_args = [html_args]
+ for i in html_args:
+ if not isinstance(i, str):
+ raise MesonException('html_args values must be strings.')
+ except KeyError:
+ html_args = []
+ if len(html_args) > 0:
+ args.append('--htmlargs=' + '@@'.join(html_args))
res = [build.RunTarget(targetname, command, args, state.subdir)]
if kwargs.get('install', True):
res.append(build.InstallScript([command] + args))