diff options
author | Thibault Saunier <tsaunier@gnome.org> | 2015-05-15 18:39:14 +0200 |
---|---|---|
committer | Thibault Saunier <tsaunier@gnome.org> | 2015-05-15 18:39:14 +0200 |
commit | 25d5cf14efea86b7b20d5d821ac5d31cad6c18f9 (patch) | |
tree | 4142c8cabcd1d0de3512fe104f072cd3f0e61c95 /modules/gnome.py | |
parent | 84609174186f0d44de517b7b29e19d082eea128d (diff) | |
download | meson-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
Diffstat (limited to 'modules/gnome.py')
-rw-r--r-- | modules/gnome.py | 5 |
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} |