diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-10-05 15:03:18 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-10-08 14:04:34 +0300 |
commit | 8b8e1ee620ad170fc32fbabc362827ed53332186 (patch) | |
tree | 03d2384b558a6b7c43a6588493255e619145d4a4 /mesonbuild/modules/gnome.py | |
parent | 68bd64cd38f40eedddbe8e96ea6a61c746d1b78b (diff) | |
download | meson-8b8e1ee620ad170fc32fbabc362827ed53332186.zip meson-8b8e1ee620ad170fc32fbabc362827ed53332186.tar.gz meson-8b8e1ee620ad170fc32fbabc362827ed53332186.tar.bz2 |
gnome: g-ir-scanner accepts multiple symbol-prefix arguments
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r-- | mesonbuild/modules/gnome.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 1f813da..a754b32 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -511,10 +511,8 @@ class GnomeModule(ExtensionModule): # does not understand -f LDFLAGS. https://bugzilla.gnome.org/show_bug.cgi?id=783892 # ldflags += compilers.sanitizer_link_args(sanitize) if 'symbol_prefix' in kwargs: - 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] + sym_prefixes = mesonlib.stringlistify(kwargs.pop('symbol_prefix', [])) + scan_command += ['--symbol-prefix=%s' % sym_prefix for sym_prefix in sym_prefixes] if 'identifier_prefix' in kwargs: identifier_prefix = kwargs.pop('identifier_prefix') if not isinstance(identifier_prefix, str): |