[farsight2/master] msn: Build doc-building library

Olivier Crête olivier.crete at collabora.co.uk
Tue Jul 14 09:51:02 PDT 2009


---
 gst/fsmsnconference/Makefile.am |   48 +++++++++++++++++++++++++++++---------
 1 files changed, 36 insertions(+), 12 deletions(-)

diff --git a/gst/fsmsnconference/Makefile.am b/gst/fsmsnconference/Makefile.am
index ebda328..cab3762 100644
--- a/gst/fsmsnconference/Makefile.am
+++ b/gst/fsmsnconference/Makefile.am
@@ -1,14 +1,16 @@
 plugin_LTLIBRARIES = libfsmsnconference.la
 
-libfsmsnconference_la_SOURCES = \
-	fs-msn-conference.c \
+
+# First build a convenience lib with the common stuff so its not built twice
+
+noinst_LTLIBRARIES = libfsmsnconference-convenience.la
+
+libfsmsnconference_convenience_la_SOURCES = \
 	fs-msn-participant.c \
 	fs-msn-session.c \
 	fs-msn-connection.c \
 	fs-msn-stream.c 
 
-BUILT_SOURCES =  
-
 noinst_HEADERS = \
 	fs-msn-conference.h \
 	fs-msn-participant.h \
@@ -16,21 +18,43 @@ noinst_HEADERS = \
 	fs-msn-connection.h  \
 	fs-msn-stream.h 
 
-EXTRA_libfsmsnconference_la_SOURCES = 
-
-CLEANFILES = $(BUILT_SOURCES)
 
-libfsmsnconference_la_CFLAGS = \
+AM_CFLAGS = \
 	$(FS2_INTERNAL_CFLAGS) \
 	$(FS2_CFLAGS) \
 	$(GST_PLUGINS_BASE_CFLAGS) \
-	$(GST_CFLAGS) \
-	$(NICE_CFLAGS)
+	$(GST_CFLAGS)
+
+# Build the main plugin
+
+libfsmsnconference_la_SOURCES = fs-msn-conference.c
 
 libfsmsnconference_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 libfsmsnconference_la_LIBADD = \
+	libfsmsnconference-convenience.la \
 	$(top_builddir)/gst-libs/gst/farsight/libgstfarsight-0.10.la \
 	$(FS2_LIBS) \
 	$(GST_BASE_LIBS) \
-	$(GST_LIBS) \
-	$(NICE_LIBS)
+	$(GST_LIBS)
+
+
+
+# Optionally build a library to allow building the gtk-doc
+
+if ENABLE_GTK_DOC
+noinst_LTLIBRARIES += libfsmsnconference_doc.la
+
+nodist_libfsmsnconference_doc_la_SOURCES = \
+	fs-msn-conference-doc.c
+
+libfsmsnconference_doc_la_LIBADD = $(libfsmsnconference_la_LIBADD)
+
+fs-msn-conference-doc.c: fs-msn-conference.c
+	sed -e 's:GST_PLUGIN_DEFINE:GST_PLUGIN_DEFINE_STATIC:' \
+		$(srcdir)/fs-msn-conference.c > fs-msn-conference-doc.c
+
+BUILT_SOURCES = fs-msn-conference-doc.c
+CLEANFILES = $(BUILT_SOURCES)
+
+endif
+
-- 
1.5.6.5




More information about the farsight-commits mailing list