diff options
author | Patrick Griffis <tingping@tingping.se> | 2016-12-06 14:07:45 -0500 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2016-12-06 14:07:45 -0500 |
commit | e265887ac33bc8de5e96ff52c37f3c94a0d7ce46 (patch) | |
tree | 21e395a486466cb37861e4c51a8d102945948a2a /mesonbuild/modules/gnome.py | |
parent | d764c7dc91f5d679687fa2dc00ad29c2ee0ca875 (diff) | |
download | meson-e265887ac33bc8de5e96ff52c37f3c94a0d7ce46.zip meson-e265887ac33bc8de5e96ff52c37f3c94a0d7ce46.tar.gz meson-e265887ac33bc8de5e96ff52c37f3c94a0d7ce46.tar.bz2 |
gnome.gtkdoc(): Add keyword to override the mode
I'm not entirely sure if you ever want to mix and match but
I can say that glib required none of them to be passed so
this allows for that.
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r-- | mesonbuild/modules/gnome.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 7f63753..e32037a 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -657,6 +657,10 @@ can not be used with the current version of glib-compiled-resources, due to command = [state.environment.get_build_command(), '--internal', 'gtkdoc'] namespace = kwargs.get('namespace', '') + mode = kwargs.get('mode', 'auto') + VALID_MODES = ('xml', 'sgml', 'none', 'auto') + if not mode in VALID_MODES: + raise MesonException('gtkdoc: Mode {} is not a valid mode: {}'.format(mode, VALID_MODES)) src_dirs = kwargs['src_dir'] if not isinstance(src_dirs, list): @@ -678,7 +682,8 @@ can not be used with the current version of glib-compiled-resources, due to '--subdir=' + state.subdir, '--headerdirs=' + '@@'.join(header_dirs), '--mainfile=' + main_file, - '--modulename=' + modulename] + '--modulename=' + modulename, + '--mode=' + mode] if namespace: args.append('--namespace=' + namespace) args += self._unpack_args('--htmlargs=', 'html_args', kwargs) @@ -688,6 +693,7 @@ can not be used with the current version of glib-compiled-resources, due to args += self._unpack_args('--fixxrefargs=', 'fixxref_args', kwargs) args += self._unpack_args('--html-assets=', 'html_assets', kwargs, state) args += self._unpack_args('--content-files=', 'content_files', kwargs, state) + args += self._unpack_args('--expand-content-files=', 'expand_content_files', kwargs, state) args += self._unpack_args('--ignore-headers=', 'ignore_headers', kwargs) args += self._unpack_args('--installdir=', 'install_dir', kwargs, state) args += self._get_build_args(kwargs, state) |