diff options
Diffstat (limited to 'gst-libs/gst/colorbalance')
-rw-r--r-- | gst-libs/gst/colorbalance/.gitignore | 2 | ||||
-rw-r--r-- | gst-libs/gst/colorbalance/Makefile.am | 34 | ||||
-rw-r--r-- | gst-libs/gst/colorbalance/colorbalance.h | 1 |
3 files changed, 32 insertions, 5 deletions
diff --git a/gst-libs/gst/colorbalance/.gitignore b/gst-libs/gst/colorbalance/.gitignore new file mode 100644 index 00000000..533e6670 --- /dev/null +++ b/gst-libs/gst/colorbalance/.gitignore @@ -0,0 +1,2 @@ +colorbalanceenumtypes.[ch] +colorbalancemarshal.[ch] diff --git a/gst-libs/gst/colorbalance/Makefile.am b/gst-libs/gst/colorbalance/Makefile.am index a86319c2..d2aee92c 100644 --- a/gst-libs/gst/colorbalance/Makefile.am +++ b/gst-libs/gst/colorbalance/Makefile.am @@ -1,23 +1,30 @@ libgstcolorbalanceincludedir = \ $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/colorbalance -libgstcolorbalanceinclude_HEADERS = \ +colorbalance_headers = \ colorbalance.h \ colorbalancechannel.h +built_headers = \ + colorbalancemarshal.h + colorbalanceenumtypes.h + +libgstcolorbalanceinclude_HEADERS = $(colorbalance_headers) $(built_headers) + noinst_LTLIBRARIES = libgstcolorbalance.la libgstcolorbalance_la_SOURCES = \ colorbalance.c \ colorbalancechannel.c \ - colorbalancemarshal.c + colorbalancemarshal.c \ + colorbalanceenumtypes.c libgstcolorbalance_la_CFLAGS = $(GST_CFLAGS) $(GST_OPT_CFLAGS) BUILT_SOURCES = \ colorbalancemarshal.c \ - colorbalancemarshal.h -built_headers = \ - colorbalancemarshal.h + colorbalancemarshal.h \ + colorbalanceenumtypes.c \ + colorbalanceenumtypes.h EXTRA_DIST = colorbalancemarshal.list @@ -31,3 +38,20 @@ colorbalancemarshal.c: colorbalancemarshal.list echo "#include \"colorbalancemarshal.h\"" >> colorbalancemarshal.c.tmp glib-genmarshal --body --prefix=gst_color_balance_marshal $^ >> colorbalancemarshal.c.tmp mv colorbalancemarshal.c.tmp colorbalancemarshal.c + +colorbalanceenumtypes.h: $(colorbalance_headers) + glib-mkenums \ + --fhead "#ifndef __GST_COLOR_BALANCE_ENUM_TYPES_H__\n#define __GST_COLOR_BALANCE_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_COLOR_BALANCE_ENUM_TYPES_H__ */" \ + $^ > $@ + +colorbalanceenumtypes.c: $(colorbalance_headers) + glib-mkenums \ + --fhead "#include <colorbalance.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/colorbalance/colorbalance.h b/gst-libs/gst/colorbalance/colorbalance.h index 3eb126cf..1d3cba6a 100644 --- a/gst-libs/gst/colorbalance/colorbalance.h +++ b/gst-libs/gst/colorbalance/colorbalance.h @@ -24,6 +24,7 @@ #include <gst/gst.h> #include <gst/colorbalance/colorbalancechannel.h> +#include <gst/colorbalance/colorbalanceenumtypes.h> G_BEGIN_DECLS |