[gdk-pixbuf/workaround-modules-osx] Workaround to install modules with .so suffix on osx



commit 2335d2191d599cb539a97a64bd76735cf0e9ec85
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date:   Wed Oct 3 16:12:49 2018 +0200

    Workaround to install modules with .so suffix on osx
    
    The old autotools build system was create .so files instead of dylib
    and G_MODULE_SUFFIX does not take into account dylib suffixes so
    we should at least for now use .so until we have a better api to
    use than the one provided by gmodule.

 gdk-pixbuf/meson.build | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/gdk-pixbuf/meson.build b/gdk-pixbuf/meson.build
index 9a1083a93..166d23140 100644
--- a/gdk-pixbuf/meson.build
+++ b/gdk-pixbuf/meson.build
@@ -243,6 +243,12 @@ foreach l: loaders
   sources = l[1]
   cond = l.get(2, true)
   cflags = l.get(3, [])
+  name_suffix = []
+
+  # FIXME: workaround for https://gitlab.gnome.org/GNOME/glib/issues/1413
+  if host_system == 'darwin'
+    name_suffix = 'so'
+  endif
 
   if cond and not (builtin_loaders.contains(name) or builtin_all_loaders)
     mod = shared_module('pixbufloader-@0@'.format(name),
@@ -250,6 +256,7 @@ foreach l: loaders
                         dependencies: loaders_deps + gdk_pixbuf_deps + [ gdkpixbuf_dep ],
                         include_directories: [ root_inc, gdk_pixbuf_inc ],
                         c_args: common_cflags + gdk_pixbuf_cflags + cflags,
+                        name_suffix: name_suffix,
                         install: true,
                         install_dir: gdk_pixbuf_loaderdir)
 


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