summaryrefslogtreecommitdiffstats
path: root/tests/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r--tests/Makefile.am14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index a436696..8875c65 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,7 +1,19 @@
-noinst_PROGRAMS=test-itdb
+if HAVE_GDKPIXBUF
+TESTTHUMBS=test-thumbnails
+else
+TESTTHUMBS=
+endif
+
+noinst_PROGRAMS=test-itdb $(TESTTHUMBS)
INCLUDES=$(LIBGPOD_CFLAGS) -I$(top_srcdir)/src -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\"
LIBS=$(LIBGPOD_LIBS)
test_itdb_SOURCES = itdb_main.c
test_itdb_LDADD = $(top_builddir)/src/libgpod.la
+
+if HAVE_GDKPIXBUF
+test_thumbnails_SOURCES = test-covers.c
+test_thumbnails_CFLAGS = $(GDKPIXBUF_CFLAGS) $(AM_CFLAGS)
+test_thumbnails_LDADD = $(top_builddir)/src/libgpod.la $(GDKPIXBUF_LIBS)
+endif