From 0b63f32fe33298bb373522b0a717e186a4d0ebd4 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Mon, 19 Oct 2015 00:26:54 +0300 Subject: Can specify extra args to gtkdoc-scan. --- modules/gnome.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'modules/gnome.py') 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)) -- cgit v1.1