[meld] Update win32 build library hacks for SVG display (#279)



commit 6ae6a34f66e9bb25a3be896576025298ab8e8988
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 5b073e81..1b3a4147 100755
--- a/setup_win32.py
+++ b/setup_win32.py
@@ -64,10 +64,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]