gst-libs/gst/video/: Add glib-mkenum for GstVideoFormat enum GTYPE auto-generation.
authorEdward Hervey <bilboed@bilboed.com>
Wed, 31 Dec 2008 13:01:30 +0000 (13:01 +0000)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 31 Dec 2008 13:01:30 +0000 (13:01 +0000)
Original commit message from CVS:
* gst-libs/gst/video/Makefile.am:
* gst-libs/gst/video/video.h:
Add glib-mkenum for GstVideoFormat enum GTYPE auto-generation.
This will help bindings to use it.

ChangeLog
gst-libs/gst/video/Makefile.am
gst-libs/gst/video/video.h

index d4fa607..cb14332 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2008-12-31  Edward Hervey  <edward.hervey@collabora.co.uk>
 
+       * gst-libs/gst/video/Makefile.am:
+       * gst-libs/gst/video/video.h:
+       Add glib-mkenum for GstVideoFormat enum GTYPE auto-generation.
+       This will help bindings to use it.
+
+2008-12-31  Edward Hervey  <edward.hervey@collabora.co.uk>
+
        * gst-libs/gst/audio/Makefile.am:
        * gst-libs/gst/audio/audio.c:
        * gst-libs/gst/audio/multichannel.h:
index 780d0dd..86f8c10 100644 (file)
@@ -1,10 +1,26 @@
+# variables used for enum/marshal generation
+glib_enum_headers= video.h
+
+glib_enum_define=GST_VIDEO
+glib_enum_prefix=gst_video
+
+built_sources = video-enumtypes.c
+built_headers = video-enumtypes.h
+BUILT_SOURCES = $(built_sources) $(built_headers)
+
 lib_LTLIBRARIES = libgstvideo-@GST_MAJORMINOR@.la
 
+CLEANFILES = $(BUILT_SOURCES)
+
 libgstvideo_@GST_MAJORMINOR@_la_SOURCES = video.c gstvideosink.c gstvideofilter.c
+nodist_libgstvideo_@GST_MAJORMINOR@_la_SOURCES = $(BUILT_SOURCES)
 
 libgstvideoincludedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/video
 libgstvideoinclude_HEADERS = video.h gstvideosink.h gstvideofilter.h
+nodist_libgstvideoinclude_HEADERS = $(built_headers)
 
 libgstvideo_@GST_MAJORMINOR@_la_CFLAGS = $(GST_CFLAGS)
 libgstvideo_@GST_MAJORMINOR@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS)
 libgstvideo_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
+
+include $(top_srcdir)/common/glib-gen.mak
index ef185b5..cbdac97 100644 (file)
@@ -25,6 +25,8 @@
 
 G_BEGIN_DECLS
 
+#include "video-enumtypes.h"
+
 /**
  * GstVideoFormat:
  * @GST_VIDEO_FORMAT_UNKNOWN: Unknown or unset video format id