From d764c7dc91f5d679687fa2dc00ad29c2ee0ca875 Mon Sep 17 00:00:00 2001 From: Patrick Griffis Date: Tue, 6 Dec 2016 13:23:58 -0500 Subject: gnome.gtkdoc(): Add namespace keyword --- mesonbuild/modules/gnome.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mesonbuild/modules') diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 4658e6d..7f63753 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -656,6 +656,8 @@ can not be used with the current version of glib-compiled-resources, due to targetname = modulename + '-doc' command = [state.environment.get_build_command(), '--internal', 'gtkdoc'] + namespace = kwargs.get('namespace', '') + src_dirs = kwargs['src_dir'] if not isinstance(src_dirs, list): src_dirs = [src_dirs] @@ -677,6 +679,8 @@ can not be used with the current version of glib-compiled-resources, due to '--headerdirs=' + '@@'.join(header_dirs), '--mainfile=' + main_file, '--modulename=' + modulename] + if namespace: + args.append('--namespace=' + namespace) args += self._unpack_args('--htmlargs=', 'html_args', kwargs) args += self._unpack_args('--scanargs=', 'scan_args', kwargs) args += self._unpack_args('--scanobjsargs=', 'scanobjs_args', kwargs) -- cgit v1.1