diff options
author | David I. Lehn <dlehn@users.sourceforge.net> | 2004-02-03 08:56:06 +0000 |
---|---|---|
committer | David I. Lehn <dlehn@users.sourceforge.net> | 2004-02-03 08:56:06 +0000 |
commit | 85e7b51cf2138f272a0fb5c8083bc044c50327b9 (patch) | |
tree | 1f558d97fac5d44e2691590cdac26dc0c549b7ac /gst-libs/gst/play | |
parent | 0724b6808fdb8a5d9296b476aef3e1a6b1026b9b (diff) | |
download | gst-plugins-bad-85e7b51cf2138f272a0fb5c8083bc044c50327b9.tar.gz gst-plugins-bad-85e7b51cf2138f272a0fb5c8083bc044c50327b9.tar.bz2 gst-plugins-bad-85e7b51cf2138f272a0fb5c8083bc044c50327b9.zip |
gst-libs/gst/: Generate enum type code with glib-mkenums.
Original commit message from CVS:
* gst-libs/gst/colorbalance/Makefile.am:
* gst-libs/gst/colorbalance/colorbalance.h:
* gst-libs/gst/mixer/Makefile.am:
* gst-libs/gst/mixer/mixer.h:
* gst-libs/gst/play/Makefile.am:
* gst-libs/gst/play/play.h:
* gst-libs/gst/tuner/Makefile.am:
* gst-libs/gst/tuner/tuner.h:
Generate enum type code with glib-mkenums.
* gst-libs/gst/colorbalance/.cvsignore:
* gst-libs/gst/mixer/.cvsignore:
* gst-libs/gst/play/.cvsignore:
* gst-libs/gst/tuner/.cvsignore:
Ignore generated files.
Diffstat (limited to 'gst-libs/gst/play')
-rw-r--r-- | gst-libs/gst/play/.gitignore | 1 | ||||
-rw-r--r-- | gst-libs/gst/play/Makefile.am | 32 | ||||
-rw-r--r-- | gst-libs/gst/play/play.h | 1 |
3 files changed, 32 insertions, 2 deletions
diff --git a/gst-libs/gst/play/.gitignore b/gst-libs/gst/play/.gitignore new file mode 100644 index 00000000..fcb0f7c4 --- /dev/null +++ b/gst-libs/gst/play/.gitignore @@ -0,0 +1 @@ +playenumtypes.[ch] diff --git a/gst-libs/gst/play/Makefile.am b/gst-libs/gst/play/Makefile.am index 95ce3d58..58728f1d 100644 --- a/gst-libs/gst/play/Makefile.am +++ b/gst-libs/gst/play/Makefile.am @@ -1,11 +1,17 @@ librarydir = $(libdir) +play_headers = \ + play.h + +built_headers = \ + playenumtypes.h + library_LTLIBRARIES = libgstplay-@GST_MAJORMINOR@.la -libgstplay_@GST_MAJORMINOR@_la_SOURCES = play.c +libgstplay_@GST_MAJORMINOR@_la_SOURCES = play.c playenumtypes.c libgstplay_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/play -libgstplay_@GST_MAJORMINOR@include_HEADERS = play.h +libgstplay_@GST_MAJORMINOR@include_HEADERS = $(play_headers) $(built_headers) libgstplay_@GST_MAJORMINOR@_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_CFLAGS) libgstplay_@GST_MAJORMINOR@_la_LIBADD = @@ -15,3 +21,25 @@ libgstplay_@GST_MAJORMINOR@_la_LIBADD = libgstplay_@GST_MAJORMINOR@_la_LDFLAGS = \ -version-info @GST_PLUGINS_LIBVERSION@ +BUILT_SOURCES = \ + playenumtypes.c \ + playenumtypes.h + +CLEANFILES = $(BUILT_SOURCES) + +playenumtypes.h: $(play_headers) + glib-mkenums \ + --fhead "#ifndef __GST_PLAY_ENUM_TYPES_H__\n#define __GST_PLAY_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \ + --fprod "/* enumerations from \"@filename@\" */\n" \ + --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \ + --ftail "G_END_DECLS\n\n#endif /* __GST_PLAY_ENUM_TYPES_H__ */" \ + $^ > $@ + +playenumtypes.c: $(play_headers) + glib-mkenums \ + --fhead "#include <play.h>" \ + --fprod "\n/* enumerations from \"@filename@\" */" \ + --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \ + --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ + --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \ + $^ > $@ diff --git a/gst-libs/gst/play/play.h b/gst-libs/gst/play/play.h index 558c96ff..2701036c 100644 --- a/gst-libs/gst/play/play.h +++ b/gst-libs/gst/play/play.h @@ -22,6 +22,7 @@ #include <gst/gst.h> #include <gst/xoverlay/xoverlay.h> +#include <gst/play/playenumtypes.h> /* GError stuff */ |