[gtksourceview] build: fix tests with UI
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] build: fix tests with UI
- Date: Tue, 15 Jul 2014 19:04:49 +0000 (UTC)
commit c7d201016328db0d6c586cf677197bc4cff9221e
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue Jul 15 21:00:24 2014 +0200
build: fix tests with UI
There were errors like this:
(test-widget:31110): Gtk-CRITICAL **: Error building template class
'TestWidget' for an instance of type 'TestWidget': Invalid object type
`GtkSourceView' on line 3
Linking with libgtksourceview-3.0.la fixes the problem. But I don't
really understand why.
tests/Makefile.am | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 07caa41..726b392 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -36,10 +36,18 @@ test-widget-resources.c: test-widget.gresource.xml $(shell $(GLIB_COMPILE_RESOUR
TEST_PROGS = test-completion
test_completion_SOURCES = test-completion.c
nodist_test_completion_SOURCES = test-completion-resources.c
+test_completion_LDADD = \
+ $(top_builddir)/gtksourceview/libgtksourceview-3.0.la \
+ $(DEP_LIBS) \
+ $(TESTS_LIBS)
TEST_PROGS += test-search
test_search_SOURCES = test-search.c
nodist_test_search_SOURCES = test-search-resources.c
+test_search_LDADD = \
+ $(top_builddir)/gtksourceview/libgtksourceview-3.0.la \
+ $(DEP_LIBS) \
+ $(TESTS_LIBS)
TEST_PROGS += test-search-performances
test_search_performances_SOURCES = test-search-performances.c
@@ -47,6 +55,10 @@ test_search_performances_SOURCES = test-search-performances.c
TEST_PROGS += test-widget
test_widget_SOURCES = test-widget.c
nodist_test_widget_SOURCES = test-widget-resources.c
+test_widget_LDADD = \
+ $(top_builddir)/gtksourceview/libgtksourceview-3.0.la \
+ $(DEP_LIBS) \
+ $(TESTS_LIBS)
UNIT_TEST_PROGS = test-buffer
test_buffer_SOURCES = test-buffer.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]