[meld/meld-3-20] Update win32 build library hacks for SVG display (#279)



commit 972d1c61e54d999a587e2127dc61aa1022ded441
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Fri Jan 10 09:27:59 2020 +1000

    Update win32 build library hacks for SVG display (#279)
    
    These libraries don't get included unless we manually pull them in.
    `librsvg` is the main SVG library used for gdkpixbuf loading, and
    `libcroco` is used for the associated CSS parsing.

 setup_win32.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/setup_win32.py b/setup_win32.py
index 9c1a98d1..66a48ce8 100755
--- a/setup_win32.py
+++ b/setup_win32.py
@@ -66,10 +66,13 @@ for data_dir in gtk_data_dirs:
             [os.path.join(local_data_subdir, file) for file in files]
         ))
 
-# add libgdk_pixbuf-2.0-0.dll manually to forbid auto-pulling of gdiplus.dll
 manually_added_libs = {
+    # add libgdk_pixbuf-2.0-0.dll manually to forbid auto-pulling of gdiplus.dll
     "libgdk_pixbuf-2.0-0.dll": os.path.join(sys.prefix, 'bin'),
-    }
+    # libcroco and librsvg are needed for SVG loading in gdkpixbuf
+    "libcroco-0.6-3.dll": os.path.join(sys.prefix, 'bin'),
+    "librsvg-2-2.dll": os.path.join(sys.prefix, 'bin'),
+}
 
 for lib, possible_path in manually_added_libs.items():
     local_lib = os.path.join(possible_path, lib)


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