[longomatch] Autogenerate marshal code using glib utils



commit c22ee714cc4eb0927dd89b60d7fb6129522b1019
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Sep 23 21:20:06 2009 +0200

    Autogenerate marshal code using glib utils

 libcesarplayer/src/Makefile.am                   |   19 ++-
 libcesarplayer/src/baconvideowidget-marshal.c    |  198 ----------------------
 libcesarplayer/src/baconvideowidget-marshal.h    |   43 -----
 libcesarplayer/src/baconvideowidget-marshal.list |    4 +
 4 files changed, 20 insertions(+), 244 deletions(-)
---
diff --git a/libcesarplayer/src/Makefile.am b/libcesarplayer/src/Makefile.am
index 25a1cff..9488750 100644
--- a/libcesarplayer/src/Makefile.am
+++ b/libcesarplayer/src/Makefile.am
@@ -2,7 +2,6 @@
 
 
 AM_CPPFLAGS = \
-	-DPACKAGE_LOCALE_DIR=\""../LongoMatch/bin/Release"\" \
 	-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
 	-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
 	$(CESARPLAYER_CFLAGS)
@@ -11,15 +10,23 @@ AM_CFLAGS =\
 	 -Wall\
 	 -g
 
+BVWMARSHALFILES = baconvideowidget-marshal.c baconvideowidget-marshal.h
+GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
+BUILT_SOURCES = $(BVWMARSHALFILES)
+
+baconvideowidget-marshal.h: baconvideowidget-marshal.list
+	( $(GLIB_GENMARSHAL) --prefix=baconvideowidget_marshal $(srcdir)/baconvideowidget-marshal.list --header > baconvideowidget-marshal.h )
+baconvideowidget-marshal.c: baconvideowidget-marshal.h
+	( $(GLIB_GENMARSHAL) --prefix=baconvideowidget_marshal $(srcdir)/baconvideowidget-marshal.list --body --header > baconvideowidget-marshal.c )
+
 
 pkglib_LTLIBRARIES = \
 	libcesarplayer.la
 
 libcesarplayer_la_SOURCES = \
+	$(BVWMARSHALFILES) \
 	bacon-video-widget.h\
 	bacon-video-widget-gst-0.10.c\
-	baconvideowidget-marshal.c \
-	baconvideowidget-marshal.h \
 	gstscreenshot.c \
 	gstscreenshot.h \
 	gst-video-capturer.c \
@@ -34,3 +41,9 @@ libcesarplayer_la_SOURCES = \
 
 libcesarplayer_la_LDFLAGS = \
 	$(CESARPLAYER_LIBS)
+	
+CLEANFILES = $(BUILT_SOURCES)
+	
+EXTRA_DIST = \
+	baconvideowidget-marshal.list
+
diff --git a/libcesarplayer/src/baconvideowidget-marshal.list b/libcesarplayer/src/baconvideowidget-marshal.list
new file mode 100644
index 0000000..195033e
--- /dev/null
+++ b/libcesarplayer/src/baconvideowidget-marshal.list
@@ -0,0 +1,4 @@
+VOID:INT64,INT64,DOUBLE,BOOLEAN
+VOID:STRING,BOOLEAN,BOOLEAN
+BOOLEAN:BOXED,BOXED,BOOLEAN
+VOID:INT64,INT64,FLOAT,BOOLEAN



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