gnome: Take the gittarget.soversion into account to compute library name

Otherwize g-ir-scanner won't have the right library name
pull/112/head
Thibault Saunier 10 years ago
parent 8460917418
commit 25d5cf14ef
  1. 5
      modules/gnome.py

@ -105,7 +105,10 @@ class GnomeModule:
if isinstance(girtarget, build.Executable): if isinstance(girtarget, build.Executable):
scan_command += ['--program', girtarget] scan_command += ['--program', girtarget]
elif isinstance(girtarget, build.SharedLibrary): 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, scankwargs = {'output' : girfile,
'input' : libsources, 'input' : libsources,
'command' : scan_command} 'command' : scan_command}

Loading…
Cancel
Save