+2008-10-31 Colin Walters <walters@verbum.org>
+
+ Bug 558109 – _g_typelib_init fails to find shared libraries
+
+ * transformer/glibtransformer.py: Use ctypes' find_library
+ on passed libraries and write that for the shared-library
+ entry. We want to avoid depending on -devel packages.
+
2008-10-31 Johan Dahlin <jdahlin@async.com.br>
* docs/g-ir-scanner.1:
from __future__ import with_statement
import os
+from ctypes.util import find_library
from .ast import (Callback, Class, Constant, Enum, Function, Interface, Member,
Array, Struct, Alias, Union, List, Map, Varargs)
def _write_namespace(self, namespace, shlibs):
libraries = []
for l in shlibs:
- libraries.append(os.path.basename(l))
+ found_libname = find_library(l)
+ if not found_libname:
+ found_libname = l
+ libraries.append(os.path.basename(found_libname))
attrs = [('name', namespace.name),
('version', namespace.version),