Add signal marshalling code
authorEdward Hervey <edward.hervey@collabora.co.uk>
Thu, 6 Aug 2009 10:47:38 +0000 (12:47 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Thu, 6 Aug 2009 10:47:38 +0000 (12:47 +0200)
ges/Makefile.am
ges/gesmarshal.list [new file with mode: 0644]

index f247eba..ba7e7d9 100644 (file)
@@ -1,7 +1,11 @@
+built_header_make = gesmarshal.h
+build_source_make = gesmarshal.c
 
 lib_LTLIBRARIES = libges-@GST_MAJORMINOR@.la
 
-CLEANFILES = $(BUILT_SOURCES)
+EXTRA_libges_@GST_MAJORMINOR@_la_SOURCES = gesmarshal.list 
+
+CLEANFILES = $(BUILT_SOURCES) $(built_header_make) $(built_source_make)
 
 libges_@GST_MAJORMINOR@_la_SOURCES =           \
        ges.c                                   \
@@ -34,3 +38,19 @@ libges_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
 libges_@GST_MAJORMINOR@_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) 
 libges_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
 
+DISTCLEANFILE = $(CLEANFILES)
+
+#files built on make all/check/instal
+BUILT_SOURCES =                        \
+       $(built_header_make)    \
+       $(built_source_make)
+
+gesmarshal.h: gesmarshal.list
+       glib-genmarshal --header --prefix=ges_marshal $^ > gesmarshal.h.tmp
+       mv gesmarshal.h.tmp gesmarshal.h
+
+gesmarshal.c: gesmarshal.list
+       echo "#include \"glib-object.h\"" >gesmarshal.c.tmp
+       echo "#include \"gesmarshal.h\"" >> gesmarshal.c.tmp
+       glib-genmarshal --body --prefix=ges_marshal $^ >> gesmarshal.c.tmp
+       mv gesmarshal.c.tmp gesmarshal.c
diff --git a/ges/gesmarshal.list b/ges/gesmarshal.list
new file mode 100644 (file)
index 0000000..e22aea6
--- /dev/null
@@ -0,0 +1 @@
+VOID:OBJECT