[egg-list-box] Build a static library



commit f6cae2e8b46052299bbeeb5c47c84857a52862c0
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu May 17 09:06:00 2012 +0200

    Build a static library
    
    Easier to be use from C code.

 Makefile.am |   38 +++++++++++++++++++++++++++++++++-----
 1 files changed, 33 insertions(+), 5 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index f2770ef..c073937 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,21 +7,49 @@ AM_CPPFLAGS = \
 
 AM_VALAFLAGS = \
 	@LISTBOX_PACKAGES@ \
+	--vapidir=. \
 	$(NULL)
 
+noinst_LTLIBRARIES = libegglistbox.la
+
+libegglistbox_la_VALAFLAGS = \
+	$(AM_VALAFLAGS) \
+	--library=egglistbox \
+	--vapi egglistbox.vapi \
+	-H egg-list-box.h \
+	$(NULL)
+libegglistbox_la_SOURCES = egg-list-box.vala
+libegglistbox_la_LIBADD = $(LISTBOX_LIBS)
+
 noinst_PROGRAMS = test-list test-scrolled
 
 test_list_SOURCES = \
-	egg-list-box.vala \
 	test-list.vala \
 	$(NULL)
-test_list_LDADD = $(LISTBOX_LIBS)
+
+test_list_LDADD = \
+	$(LISTBOX_LIBS) \
+	libegglistbox.la \
+	$(NULL)
+
+test_list_VALAFLAGS = \
+	$(AM_VALAFLAGS) \
+	--pkg egglistbox \
+	$(NULL)
 
 test_scrolled_SOURCES = \
-	egg-list-box.vala \
-	test-scrolled.vala \
+	test-list.vala \
+	$(NULL)
+
+test_scrolled_LDADD = \
+	$(LISTBOX_LIBS) \
+	libegglistbox.la \
+	$(NULL)
+
+test_scrolled_VALAFLAGS = \
+	$(AM_VALAFLAGS) \
+	--pkg egglistbox \
 	$(NULL)
-test_scrolled_LDADD = $(LISTBOX_LIBS)
 
 CLEANFILES = \
 	$(test_list_SOURCES:.vala=.c) \



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