aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2015-05-15 18:39:14 +0200
committerThibault Saunier <tsaunier@gnome.org>2015-05-15 18:39:14 +0200
commit25d5cf14efea86b7b20d5d821ac5d31cad6c18f9 (patch)
tree4142c8cabcd1d0de3512fe104f072cd3f0e61c95
parent84609174186f0d44de517b7b29e19d082eea128d (diff)
downloadmeson-25d5cf14efea86b7b20d5d821ac5d31cad6c18f9.zip
meson-25d5cf14efea86b7b20d5d821ac5d31cad6c18f9.tar.gz
meson-25d5cf14efea86b7b20d5d821ac5d31cad6c18f9.tar.bz2
gnome: Take the gittarget.soversion into account to compute library name
Otherwize g-ir-scanner won't have the right library name
-rw-r--r--modules/gnome.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/gnome.py b/modules/gnome.py
index e3174bb..55eec17 100644
--- a/modules/gnome.py
+++ b/modules/gnome.py
@@ -105,7 +105,10 @@ class GnomeModule:
if isinstance(girtarget, build.Executable):
scan_command += ['--program', girtarget]
elif isinstance(girtarget, build.SharedLibrary):
- scan_command += ['--library', girtarget.get_basename()]
+ libname = girtarget.get_basename()
+ if girtarget.soversion:
+ libname += "-%s" % girtarget.soversion
+ scan_command += ['--library', libname]
scankwargs = {'output' : girfile,
'input' : libsources,
'command' : scan_command}