[tracker/vala-makefiles: 3/13] functional-tests: Use Automake 1.11 Vala features for ipc/



commit f74edf05f2f4a81514d2b79782de360b97a54bf6
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Nov 2 13:16:41 2010 +0200

    functional-tests: Use Automake 1.11 Vala features for ipc/

 tests/functional-tests/ipc/Makefile.am |  113 +++++--------------------------
 1 files changed, 19 insertions(+), 94 deletions(-)
---
diff --git a/tests/functional-tests/ipc/Makefile.am b/tests/functional-tests/ipc/Makefile.am
index fc7db0f..41e25c2 100644
--- a/tests/functional-tests/ipc/Makefile.am
+++ b/tests/functional-tests/ipc/Makefile.am
@@ -10,6 +10,12 @@ noinst_PROGRAMS =                                      \
 	test-class-signal-performance                  \
 	test-update-array-performance
 
+AM_VALAFLAGS =                                         \
+	-g                                             \
+	--pkg gio-2.0 --pkg dbus-glib-1                \
+	$(top_srcdir)/src/libtracker-sparql/tracker-sparql-$(TRACKER_API_VERSION).vapi \
+	$(top_srcdir)/src/libtracker-bus/tracker-bus.vapi
+
 AM_CPPFLAGS =                                          \
 	$(BUILD_CFLAGS)                                \
 	-I$(top_srcdir)/src                            \
@@ -24,111 +30,30 @@ LDADD =                                                \
 	$(BUILD_LIBS)                                  \
 	$(LIBTRACKER_SPARQL_LIBS)
 
-test_busy_handling_VALASOURCES = test-busy-handling.vala
-
 test_busy_handling_SOURCES =                           \
-	test-busy-handling.vala.stamp                  \
-	$(test_busy_handling_VALASOURCES:.vala=.c)
-
-test-busy-handling.vala.stamp: $(test_busy_handling_VALASOURCES)
-	$(AM_V_GEN)$(VALAC) $(GCOV_VALAFLAGS) -C $(VALAFLAGS) --pkg gio-2.0 --pkg dbus-glib-1 $^
-	$(AM_V_GEN)touch $@
-
-test_direct_query_VALASOURCES = test-shared-query.vala test-direct-query.vala
+	test-busy-handling.vala
 
 test_direct_query_SOURCES =                            \
-	test-direct-query.vala.stamp                   \
-	$(test_direct_query_VALASOURCES:.vala=.c)
-
-test_default_update_VALASOURCES = test-shared-update.vala test-default-update.vala
+	test-shared-query.vala                         \
+	test-direct-query.vala
 
 test_default_update_SOURCES =                          \
-	test-default-update.vala.stamp                 \
-	$(test_default_update_VALASOURCES:.vala=.c)
-
-test_bus_query_VALASOURCES = test-shared-query.vala test-bus-query.vala
-
-test_update_array_performance_SOURCES = test-update-array-performance.c
+	test-shared-update.vala                        \
+	test-default-update.vala
 
 test_bus_query_SOURCES =                               \
-	test-bus-query.vala.stamp                      \
-	$(test_bus_query_VALASOURCES:.vala=.c)
+	test-shared-query.vala                         \
+	test-bus-query.vala
 
-test_bus_update_VALASOURCES = test-shared-update.vala test-bus-update.vala
+test_update_array_performance_SOURCES =                \
+	test-update-array-performance.c
 
 test_bus_update_SOURCES =                              \
-	test-bus-update.vala.stamp                     \
-	$(test_bus_update_VALASOURCES:.vala=.c)
-
-direct_vapi_sources =                                  \
-	$(top_srcdir)/src/libtracker-sparql/tracker-sparql-$(TRACKER_API_VERSION).vapi \
-	$(top_srcdir)/src/libtracker-direct/tracker-direct.vapi
-
-test-direct-query.vala.stamp: $(test_direct_query_VALASOURCES) $(direct_vapi_sources)
-	$(AM_V_GEN)$(VALAC) $(GCOV_VALAFLAGS) -C $(VALAFLAGS) --pkg gio-2.0 $^
-	$(AM_V_GEN)touch $@
-
-test-default-update.vala.stamp: $(test_default_update_VALASOURCES) $(direct_vapi_sources)
-	$(AM_V_GEN)$(VALAC) $(GCOV_VALAFLAGS) -C $(VALAFLAGS) --pkg gio-2.0 $^
-	$(AM_V_GEN)touch $@
-
-bus_vapi_sources =                                     \
-	$(top_srcdir)/src/libtracker-sparql/tracker-sparql-$(TRACKER_API_VERSION).vapi \
-	$(top_srcdir)/src/libtracker-bus/tracker-bus.vapi
-
-test-bus-query.vala.stamp: $(test_bus_query_VALASOURCES) $(bus_vapi_sources)
-	$(AM_V_GEN)$(VALAC) $(GCOV_VALAFLAGS) -C $(VALAFLAGS) --pkg gio-2.0 --pkg dbus-glib-1 $^
-	$(AM_V_GEN)touch $@
-
-test-bus-update.vala.stamp: $(test_bus_update_VALASOURCES) $(bus_vapi_sources)
-	$(AM_V_GEN)$(VALAC) $(GCOV_VALAFLAGS) -C $(VALAFLAGS) --pkg gio-2.0 --pkg dbus-glib-1 $^
-	$(AM_V_GEN)touch $@
-
-test_class_signal_VALASOURCES = test-class-signal.vala
+	test-shared-update.vala                        \
+	test-bus-update.vala
 
 test_class_signal_SOURCES =                            \
-	test-class-signal.vala.stamp                   \
-	$(test_class_signal_VALASOURCES:.vala=.c)
-
-test-class-signal.vala.stamp: $(test_class_signal_VALASOURCES) $(direct_vapi_sources)
-	$(AM_V_GEN)$(VALAC) $(GCOV_VALAFLAGS) -C $(VALAFLAGS) --pkg gio-2.0 --pkg dbus-glib-1 $^
-	$(AM_V_GEN)touch $@
-
-test_class_signal_performance_VALASOURCES = test-class-signal-performance.vala
+	test-class-signal.vala
 
 test_class_signal_performance_SOURCES =                \
-	test-class-signal-performance.vala.stamp       \
-	$(test_class_signal_performance_VALASOURCES:.vala=.c)
-
-test-class-signal-performance.vala.stamp: $(test_class_signal_performance_VALASOURCES) $(direct_vapi_sources)
-	$(AM_V_GEN)$(VALAC) $(GCOV_VALAFLAGS) -C $(VALAFLAGS) --pkg gio-2.0 --pkg dbus-glib-1 $^
-	$(AM_V_GEN)touch $@
-
-BUILT_SOURCES =                                        \
-	test-busy-handling.vala.stamp                  \
-	test-class-signal.vala.stamp                   \
-	test-class-signal-performance.vala.stamp       \
-	test-direct-query.vala.stamp                   \
-	test-bus-query.vala.stamp                      \
-	test-default-update.vala.stamp                 \
-	test-bus-update.vala.stamp
-
-EXTRA_DIST =                                           \
-	$(BUILT_SOURCES)                               \
-	$(test_busy_handling_VALASOURCES)              \
-	$(test_class_signal_VALASOURCES)               \
-	$(test_class_signal_performance_VALASOURCES)   \
-	$(test_direct_query_VALASOURCES)               \
-	$(test_default_update_VALASOURCES)             \
-	$(test_bus_query_VALASOURCES)                  \
-	$(test_bus_update_VALASOURCES)
-
-MAINTAINERCLEANFILES =                                 \
-	$(BUILT_SOURCES)                               \
-	$(test_busy_handling_VALASOURCES:.vala=.c)     \
-	$(test_class_signal_VALASOURCES:.vala=.c)      \
-	$(test_class_signal_performance_VALASOURCES:.vala=.c) \
-	$(test_bus_query_VALASOURCES:.vala=.c)         \
-	$(test_bus_update_VALASOURCES:.vala=.c)        \
-	$(test_direct_query_VALASOURCES:.vala=.c)      \
-	$(test_default_update_VALASOURCES:.vala=.c)
+	test-class-signal-performance.vala



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]