From 98ad43fcdd277ed81bfb54c991e3fc03859deda4 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 31 Dec 2008 13:01:30 +0000 Subject: [PATCH] gst-libs/gst/video/: Add glib-mkenum for GstVideoFormat enum GTYPE auto-generation. 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 | 7 +++++++ gst-libs/gst/video/Makefile.am | 16 ++++++++++++++++ gst-libs/gst/video/video.h | 2 ++ 3 files changed, 25 insertions(+) diff --git a/ChangeLog b/ChangeLog index d4fa6079ae..cb14332a5a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-12-31 Edward Hervey + + * 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 * gst-libs/gst/audio/Makefile.am: diff --git a/gst-libs/gst/video/Makefile.am b/gst-libs/gst/video/Makefile.am index 780d0ddc6c..86f8c10cc7 100644 --- a/gst-libs/gst/video/Makefile.am +++ b/gst-libs/gst/video/Makefile.am @@ -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 diff --git a/gst-libs/gst/video/video.h b/gst-libs/gst/video/video.h index ef185b5226..cbdac97362 100644 --- a/gst-libs/gst/video/video.h +++ b/gst-libs/gst/video/video.h @@ -25,6 +25,8 @@ G_BEGIN_DECLS +#include "video-enumtypes.h" + /** * GstVideoFormat: * @GST_VIDEO_FORMAT_UNKNOWN: Unknown or unset video format id