From bd61a8cfea4e93259afdea676c33d756c1326b37 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 5 Aug 2023 10:10:46 -0400 Subject: [PATCH] configure.ac,Makefile.am: build and install the new thumbnailer. --- Makefile.am | 6 ++++++ configure.ac | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/Makefile.am b/Makefile.am index 705c46b..7d7e48e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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) diff --git a/configure.ac b/configure.ac index d06bf5f..d2e4f93 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) -- 2.44.2