[gimp] configure: remind to run gdk-pixbuf-query-loaders.exe on Windows builds.



commit e83b1361081503315fde56ca69dbd3199385d343
Author: Jehan <jehan girinstud io>
Date:   Wed May 3 00:30:32 2017 +0200

    configure: remind to run gdk-pixbuf-query-loaders.exe on Windows builds.
    
    Even though the SVG loader is installed, it needs to be properly
    registered for GdkPixbuf to find it. This is a problem for Windows where
    the installation prefix can end up being anything and where the command
    `gdk-pixbuf-query-loaders` is not run by any common component anyway.
    Let's just warn the Windows packager to not forget to have the installer
    run it if vector icons are enabled.

 configure.ac |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index d6ac406..4fb1c63 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2127,6 +2127,14 @@ if test "x$enable_vector_icons" != "xno"; then
           NATIVE_GLIB_LIBS=`pkg-config --libs gio-2.0 glib-2.0`
           NATIVE_GLIB_CFLAGS=`pkg-config --cflags gio-2.0 glib-2.0`
           enable_vector_icons="yes"
+
+          if test "x$platform_win32" = "xyes"; then
+            warning_vector_icons_windows="
+WARNING: You enabled vector icons on Win32. Make sure to run:
+           $ gdk-pixbuf-query-loaders.exe --update-cache
+         on the target machine (this command generates loaders.cache)
+         so that GdkPixbuf knows where to find the SVG loader."
+          fi
         else
           enable_vector_icons="no (missing native glib-2.0 > glib_required_version or gio-2.0)"
         fi
@@ -2621,7 +2629,7 @@ Optional Modules:
 
 Tests:
   Use xvfb-run         $have_xvfb_run
-$have_recommended_xgettext $have_recommended_fontconfig $have_recommended_gtk"
+$have_recommended_xgettext $have_recommended_fontconfig $have_recommended_gtk$warning_vector_icons_windows"
 
 if test "x$required_deps" = "x"; then
   AC_OUTPUT


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