build-sys: build gtk-test only when glib is enabled

gtk-test pulls in libpulse-mainloop-glib as a dependency, and compiling
glib-mainloop.c fails if glib support is disabled.
This commit is contained in:
Tanu Kaskinen 2016-04-12 18:56:01 +03:00
parent 36de6cb94d
commit 36d9ae9b2b

View file

@ -314,12 +314,13 @@ endif
if HAVE_GLIB20
TESTS_default += \
mainloop-test-glib
endif
if HAVE_GTK30
# gtk-test depends on both glib and gtk
TESTS_norun += \
gtk-test
endif
endif
if HAVE_ALSA
TESTS_norun += \