[gobject-introspection] scanner: Accept library filenames



commit c86a5be5521bd275bda7ffb8217853a4b7b91cdc
Author: Olivier CrĂȘte <olivier crete collabora com>
Date:   Mon Nov 5 15:41:12 2018 -0500

    scanner: Accept library filenames
    
    This makes it easier to ensure that the right library is
    scanned.

 giscanner/ccompiler.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py
index 78e3825f..d327c581 100644
--- a/giscanner/ccompiler.py
+++ b/giscanner/ccompiler.py
@@ -156,7 +156,8 @@ class CCompiler(object):
                 if library != 'm':
                     args.append(library + '.lib')
             else:
-                if library.endswith(".la"):  # explicitly specified libtool library
+                # If we get a real filename, just use it as-is
+                if library.endswith(".la") or os.path.isfile(library):
                     args.append(library)
                 else:
                     args.append('-l' + library)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]