summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorAli Abdallah <aliovx@gmail.com>2017-05-23 09:10:16 +0200
committerAli Abdallah <aliovx@gmail.com>2017-05-28 10:39:11 +0200
commit95311dbb45d07d8029e27bb374aeefa60e17b339 (patch)
tree80aec73e81fd99bbfce304fc04bf7959d3dffccb /acinclude.m4
parent59ba8680de8831ee95dc5fe77b1376dc1fd7771b (diff)
downloadtumbler-95311dbb45d07d8029e27bb374aeefa60e17b339.tar.gz
Added skeleton files for the desktop thumbnailer plugin.
This plugin will add desktop thumbnailer support for tumbler see: https://bugzilla.xfce.org/show_bug.cgi?id=7475
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m419
1 files changed, 19 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 66e79d1..87ff508 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -297,3 +297,22 @@ AC_MSG_CHECKING([whether to build the freedesktop.org cache plugin])
AM_CONDITIONAL([TUMBLER_XDG_CACHE], [test x"$ac_tumbler_xdg_cache" = x"yes"])
AC_MSG_RESULT([$ac_tumbler_xdg_cache])
])
+
+dnl TUMBLER_DESKTOP_THUMBNAILER()
+dnl
+dnl Check whether to build and install the thumbnailers plugin support for .desktop thumbnailers.
+dnl
+AC_DEFUN([TUMBLER_DESKTOP_THUMBNAILER],
+[
+AC_ARG_ENABLE([desktop-thumbnailer], [AC_HELP_STRING([--disable-desktop-thumbnailer], [Don't build the plugin support for .desktop thumbnailers])],
+ [ac_tumbler_desktop_thumbnailer=$enableval], [ac_tumbler_desktop_thumbnailer=yes])
+if test x"$ac_tumbler_desktop_thumbnailer" = x"yes"; then
+ dnl Check for gdk-pixbuf
+ PKG_CHECK_MODULES([GDK_PIXBUF], [gdk-pixbuf-2.0 >= 2.14], [], [ac_tumbler_desktop_thumbnailer=no])
+fi
+
+AC_MSG_CHECKING([whether to build the plugin support for .desktop thumbnailer])
+AM_CONDITIONAL([TUMBLER_DESKTOP_THUMBNAILER], [test x"$ac_tumbler_desktop_thumbnailer" = x"yes"])
+AC_MSG_RESULT([$ac_tumbler_desktop_thumbnailer])
+])
+