]> gitweb.michael.orlitzky.com - libsvgtiny-pixbuf.git/commitdiff
configure.ac,Makefile.am: build and install the new thumbnailer.
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 5 Aug 2023 14:10:46 +0000 (10:10 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sat, 5 Aug 2023 14:10:46 +0000 (10:10 -0400)
Makefile.am
configure.ac

index 705c46be07e7c2760a76b7e75d029ea0ec2c05ec..7d7e48e56e8a733559e9927f5401421889b29a63 100644 (file)
@@ -1,5 +1,6 @@
 ACLOCAL_AMFLAGS = -I m4
 
+# The main library
 gdk_pixbuf_module_LTLIBRARIES = libpixbufloader-svg.la
 libpixbufloader_svg_la_SOURCES = io-svg.c
 
@@ -17,6 +18,11 @@ libpixbufloader_svg_la_LIBADD = $(CAIRO_LIBS) \
 # dlopen()ed.
 libpixbufloader_svg_la_LDFLAGS = -avoid-version -module
 
+# Install our GTK thumbnailer entry
+thumbnailerdir = $(datadir)/thumbnailers/
+thumbnailer_DATA = libsvgtiny.thumbnailer
+
+# The svg2png test program.
 noinst_PROGRAMS = svg2png
 svg2png_SOURCES = $(libpixbufloader_svg_la_SOURCES)
 svg2png_CPPFLAGS = $(libpixbufloader_svg_la_CPPFLAGS)
index d06bf5f6ae9c0cb9d124c4ecaf9a00af1ca99b99..d2e4f938216612ed32db6f03ffb68afbbab4959b 100644 (file)
@@ -16,8 +16,21 @@ gdk_pixbuf_moduledir=$($PKG_CONFIG --variable gdk_pixbuf_moduledir gdk-pixbuf-2.
 AC_MSG_RESULT([$gdk_pixbuf_moduledir])
 AC_SUBST([gdk_pixbuf_moduledir])
 
+AC_MSG_CHECKING([for gdk-pixbuf-thumbnailer location])
+gdk_pixbuf_bindir=$($PKG_CONFIG --variable bindir gdk-pixbuf-2.0)
+gdk_pixbuf_thumbnailer="${gdk_pixbuf_bindir}/gdk-pixbuf-thumbnailer"
+
+AS_IF([test -x "${gdk_pixbuf_thumbnailer}"], [
+  AC_MSG_RESULT([$gdk_pixbuf_thumbnailer])
+  AC_SUBST([gdk_pixbuf_thumbnailer])
+],[
+  AC_MSG_RESULT([no])
+])
+
+
 AC_CONFIG_FILES([
   Makefile
+  libsvgtiny.thumbnailer
 ])
 
 LT_INIT([disable-static])