clutter/tests: Unconditionally include tests using gdk-pixbuf

We already have gdk-pixbuf as a dependency, so there is no reason to
make it conditional here.
This commit is contained in:
Jonas Ådahl 2018-07-05 21:24:44 +02:00
parent 0067f78155
commit 14be04a630
2 changed files with 6 additions and 31 deletions

View File

@ -405,32 +405,11 @@ else
fi fi
fi fi
dnl === Enable GDK-Pixbuf in tests ============================================ dnl === Check for GDK-Pixbuf in tests =========================================
m4_define([pixbuf_default], [yes])
AC_ARG_ENABLE([gdk-pixbuf],
[AS_HELP_STRING([--enable-gdk-pixbuf=@<:@no/yes@:>@],
[Enable tests using GDK-Pixbuf @<:@default=]pixbuf_default[@:>@])],
[enable_pixbuf=$enable_val],
[enable_pixbuf=pixbuf_default])
AS_CASE([$enable_pixbuf],
[yes],
[
PKG_CHECK_MODULES([GDK_PIXBUF], [gdk-pixbuf-2.0]) PKG_CHECK_MODULES([GDK_PIXBUF], [gdk-pixbuf-2.0])
AC_SUBST(GDK_PIXBUF_CFLAGS) AC_SUBST(GDK_PIXBUF_CFLAGS)
AC_SUBST(GDK_PIXBUF_LIBS) AC_SUBST(GDK_PIXBUF_LIBS)
pixbuf_tests=yes
],
[no],
[
pixbuf_tests=no
]
)
AM_CONDITIONAL([PIXBUF_TESTS], [test "x$pixbuf_tests" = "xyes"])
dnl === Enable debug level ==================================================== dnl === Enable debug level ====================================================

View File

@ -44,17 +44,13 @@ UNIT_TESTS = \
test-keyframe-transition.c \ test-keyframe-transition.c \
test-bind-constraint.c \ test-bind-constraint.c \
test-touch-events.c \ test-touch-events.c \
test-rotate-zoom.c test-rotate-zoom.c \
test-image.c
if X11_TESTS if X11_TESTS
UNIT_TESTS += test-pixmap.c UNIT_TESTS += test-pixmap.c
endif endif
if PIXBUF_TESTS
UNIT_TESTS += \
test-image.c
endif
SHEXT = $(EXEEXT) SHEXT = $(EXEEXT)
# For convenience, this provides a way to easily run individual unit tests: # For convenience, this provides a way to easily run individual unit tests: