diff options
author | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2015-03-25 13:44:57 +0300 |
---|---|---|
committer | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2015-03-26 02:29:12 +0300 |
commit | 2db5f974026b619cea93e34900dfbff9ead5b2e0 (patch) | |
tree | 6493575b736c7a3ff66dcf2c4684c834acf9cbbf /modules | |
parent | 92d32c45a77eb9b7e8002c2929cd1db7272dea73 (diff) | |
download | meson-2db5f974026b619cea93e34900dfbff9ead5b2e0.zip meson-2db5f974026b619cea93e34900dfbff9ead5b2e0.tar.gz meson-2db5f974026b619cea93e34900dfbff9ead5b2e0.tar.bz2 |
modules/gnome: add symbol_prefix kwarg to g-ir-scanner
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'modules')
-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): |