1# vi:set ts=8 sw=8 noet ai nocindent:
2# -
3# Copyright (c) 2009-2012 Jannis Pohlmann <jannis@xfce.org>
4#
5# This program is free software; you can redistribute it and/or
6# modify it under the terms of the GNU General Public License as
7# published by the Free Software Foundation; either version 2 of
8# the License, or (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public
16# License along with this program; if not, write to the Free
17# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18# Boston, MA 02110-1301, USA.
19
20if TUMBLER_JPEG_THUMBNAILER
21
22tumbler_plugindir = $(libdir)/tumbler-$(TUMBLER_VERSION_API)/plugins
23tumbler_plugin_LTLIBRARIES =						\
24	tumbler-jpeg-thumbnailer.la
25
26tumbler_jpeg_thumbnailer_la_SOURCES =					\
27	jpeg-thumbnailer-plugin.c					\
28	jpeg-thumbnailer-provider.c					\
29	jpeg-thumbnailer-provider.h					\
30	jpeg-thumbnailer.c						\
31	jpeg-thumbnailer.h
32
33tumbler_jpeg_thumbnailer_la_CFLAGS =					\
34	-I$(top_builddir)						\
35	-I$(top_builddir)/plugins					\
36	-I$(top_srcdir)							\
37	-I$(top_srcdir)/plugins						\
38	-DG_LOG_DOMAIN=\"tumbler-jpeg-thumbnailer\"			\
39	-DPACKAGE_LOCALE_DIR=\"$(localedir)\"				\
40	$(GDK_PIXBUF_CFLAGS)						\
41	$(GIO_CFLAGS)							\
42	$(GLIB_CFLAGS)							\
43	$(LIBJPEG_CFLAGS)						\
44	$(PLATFORM_CFLAGS)						\
45	$(PLATFORM_CPPFLAGS)
46
47tumbler_jpeg_thumbnailer_la_LDFLAGS =					\
48	-avoid-version							\
49	-export-dynamic							\
50	-module								\
51	$(PLATFORM_LDFLAGS)
52
53tumbler_jpeg_thumbnailer_la_LIBADD =					\
54	$(top_builddir)/tumbler/libtumbler-$(TUMBLER_VERSION_API).la	\
55	$(GDK_PIXBUF_LIBS)						\
56	$(GIO_LIBS)							\
57	$(GLIB_LIBS)							\
58	$(LIBJPEG_LIBS)							\
59	-lm
60
61tumbler_jpeg_thumbnailer_la_DEPENDENCIES =				\
62	$(top_builddir)/tumbler/libtumbler-$(TUMBLER_VERSION_API).la
63
64endif
65