diff options
Diffstat (limited to 'modules/gnome.py')
-rw-r--r-- | modules/gnome.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/gnome.py b/modules/gnome.py index 11c1cc3..b90c109 100644 --- a/modules/gnome.py +++ b/modules/gnome.py @@ -71,6 +71,16 @@ class GnomeModule: scan_command += ['--cflags-begin'] scan_command += state.global_args['c'] scan_command += ['--cflags-end'] + if kwargs.get('symbol_prefix'): + sym_prefix = kwargs.pop('symbol_prefix') + if not isinstance(sym_prefix, str): + raise MesonException('Gir symbol prefix must be str') + scan_command += ['--symbol-prefix=%s' % sym_prefix] + if kwargs.get('identifier_prefix'): + identifier_prefix = kwargs.pop('identifier_prefix') + if not isinstance(identifier_prefix, str): + raise MesonException('Gir identifier prefix must be str') + scan_command += ['--identifier-prefix=%s' % identifier_prefix] if isinstance(girtarget, build.Executable): scan_command += ['--program', girtarget] elif isinstance(girtarget, build.SharedLibrary): |