[PATCH 3/3] vala: added vala's grl-inspect to build



Copied grilo-simple-playlist configuration to get grl-inspect
built.
---
 tools/vala/Makefile.am |   36 +++++++++++++++++++++++++++++++-----
 1 files changed, 31 insertions(+), 5 deletions(-)

diff --git a/tools/vala/Makefile.am b/tools/vala/Makefile.am
index 2360e73..dbde11e 100644
--- a/tools/vala/Makefile.am
+++ b/tools/vala/Makefile.am
@@ -1,6 +1,8 @@
-bin_PROGRAMS = grilo-simple-playlist
+bin_PROGRAMS = grilo-simple-playlist \
+	grl-inspect-vala
 
-BUILT_SOURCES = vala.stamp
+BUILT_SOURCES = vala_playlist.stamp \
+	vala_inspect.stamp
 
 # We don't want -Werror by now
 CFLAGS = -Wall -std=c99
@@ -8,16 +10,26 @@ CFLAGS = -Wall -std=c99
 grilo_simple_playlist_VALASOURCES = grilo-test.vala
 
 grilo_simple_playlist_SOURCES = 			\
-	vala.stamp 					\
+	vala_playlist.stamp 					\
 	$(grilo_simple_playlist_VALASOURCES:.vala=.c)
 
+grl_inspect_vala_VALASOURCES = grl-inspect.vala
+
+grl_inspect_vala_SOURCES =			\
+	vala_inspect.stamp		\
+	$(grl_inspect_vala_VALASOURCES:.vala=.c)
+
 valac_common =				\
         --quiet				\
         --ccode				\
         --vapidir $(top_srcdir)/bindings/vala	\
         --pkg grilo-0.1
 
-vala.stamp: $(grilo_simple_playlist_VALASOURCES)
+vala_playlist.stamp: $(grilo_simple_playlist_VALASOURCES)
+	$(VALA_V)$(VALAC) $(valac_common) $^
+	touch $@
+
+vala_inspect.stamp: $(grl_inspect_vala_VALASOURCES)
 	$(VALA_V)$(VALAC) $(valac_common) $^
 	touch $@
 
@@ -27,11 +39,25 @@ grilo_simple_playlist_CFLAGS =		\
 	-I$(top_srcdir)/src		\
 	-I$(top_srcdir)/src/data
 
+grl_inspect_vala_CFLAGS =			\
+	-DPREFIX=$(prefix)		\
+	$(DEPS_CFLAGS)			\
+	-I$(top_srcdir)/src		\
+	-I$(top_srcdir)/src/data
+
 grilo_simple_playlist_LDADD = 		\
 	$(DEP_LIBS)			\
 	$(top_builddir)/src/lib GRL_NAME@.la
 
-EXTRA_DIST = $(grilo_simple_playlist_VALASOURCES) vala.stamp
+grl_inspect_vala_LDADD = 		\
+	$(DEP_LIBS)			\
+	$(top_builddir)/src/lib GRL_NAME@.la
+
+EXTRA_DIST = 					\
+	$(grilo_simple_playlist_VALASOURCES) 	\
+	$(grl_inspect_vala_VALASOURCES)		\
+	vala_playlist.stamp			\
+	vala_inspect.stamp
 
 MAINTAINERCLEANFILES =  \
         *.in            \
-- 
1.7.1



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