[gom] build: Don't build tests when tests are disabled
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gom] build: Don't build tests when tests are disabled
- Date: Tue, 8 Sep 2015 15:24:57 +0000 (UTC)
commit 51eeff0ce27e2762c889fd106c4cd1bfb39e9fff
Author: Tom Schoonjans <Tom Schoonjans bam de>
Date: Mon Sep 7 18:03:48 2015 +0200
build: Don't build tests when tests are disabled
--disable-glibtest should disable all the tests. As we do the equivalent
of passing that flag when gdk-pixbuf is not available, make sure not to
try and build tests when gdk-pixbuf is unavailable.
In the future, we should just disable the gdk-pixbuf requiring test when
it's not available, instead of disabling all the tests.
https://bugzilla.gnome.org/show_bug.cgi?id=754694
tests/Makefile.include | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.include b/tests/Makefile.include
index f0d25c7..72f36a4 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -1,3 +1,5 @@
+if ENABLE_GLIB_TEST
+
noinst_PROGRAMS =
noinst_PROGRAMS += test-gom-adapter
noinst_PROGRAMS += test-gom-repository
@@ -67,4 +69,6 @@ test_gom_sorting_SOURCES = tests/test-gom-sorting.c
test_gom_sorting_CPPFLAGS = $(GIO_CFLAGS) $(GOBJECT_CFLAGS) $(WARN_CFLAGS)
test_gom_sorting_LDADD = $(GIO_LIBS) $(GOBJECT_LIBS) $(top_builddir)/libgom-1.0.la
+endif
+
EXTRA_DIST += tests/grl-bookmarks.db tests/gnome.png
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]