aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2017-10-05 15:03:18 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-10-08 14:04:34 +0300
commit8b8e1ee620ad170fc32fbabc362827ed53332186 (patch)
tree03d2384b558a6b7c43a6588493255e619145d4a4
parent68bd64cd38f40eedddbe8e96ea6a61c746d1b78b (diff)
downloadmeson-8b8e1ee620ad170fc32fbabc362827ed53332186.zip
meson-8b8e1ee620ad170fc32fbabc362827ed53332186.tar.gz
meson-8b8e1ee620ad170fc32fbabc362827ed53332186.tar.bz2
gnome: g-ir-scanner accepts multiple symbol-prefix arguments
-rw-r--r--docs/markdown/Gnome-module.md3
-rw-r--r--mesonbuild/modules/gnome.py6
2 files changed, 4 insertions, 5 deletions
diff --git a/docs/markdown/Gnome-module.md b/docs/markdown/Gnome-module.md
index 9697b7f..738e2a9 100644
--- a/docs/markdown/Gnome-module.md
+++ b/docs/markdown/Gnome-module.md
@@ -72,7 +72,8 @@ tool so see its documentation for more information.
* `install_dir_typelib`: (*Added 0.35.0*) which directory to install
the typelib file into
* `link_with`: list of libraries to link with
-* `symbol_prefix`: the symbol prefix for the gir object, e.g. `gtk`
+* `symbol_prefix`: the symbol prefix for the gir object, e.g. `gtk`,
+ (*Since 0.43.0*) an ordered list of multiple prefixes is allowed
Returns an array of two elements which are: `[gir_target,
typelib_target]`
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):