diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2010-12-06 12:37:02 +0000 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2010-12-06 16:44:06 +0000 |
commit | 4e188f60ff5106bcc386589763c57a632b0ea7b1 (patch) | |
tree | 3eacac00e4a515d41cfdae4a68ae88e4aef5417c /build | |
parent | e9c7ccaf7c16c46f1ed85bd338eeebbd67c39697 (diff) | |
download | clutter-gst-4e188f60ff5106bcc386589763c57a632b0ea7b1.tar.gz |
video-texture: Allow to make accurate seeks
ClutterGstVideoTexture has now a property (and its equivalent getter
and setter) to set seek flags to customize a bit the seek done by
set_progress(). For now, we have an "ACCURATE" flag that maps directly
to GST_SEEK_FLAG_ACCURATE.
To be able to export correctly this new API to g-i and bindings, we need
to generate the enum types for ClutterGstSeekFlags.
Fixes: http://bugzilla.clutter-project.org/show_bug.cgi?id=2279
Diffstat (limited to 'build')
-rw-r--r-- | build/autotools/Makefile.am.enums | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/build/autotools/Makefile.am.enums b/build/autotools/Makefile.am.enums new file mode 100644 index 0000000..ec1a6c1 --- /dev/null +++ b/build/autotools/Makefile.am.enums @@ -0,0 +1,51 @@ +# Rules for generating enumeration types using glib-mkenums +# +# Define: +# glib_enum_h = header template file +# glib_enum_c = source template file +# glib_enum_headers = list of headers to parse +# +# before including Makefile.am.enums. You will also need to have +# the following targets already defined: +# +# CLEANFILES +# DISTCLEANFILES +# BUILT_SOURCES +# EXTRA_DIST +# +# Author: Emmanuele Bassi <ebassi@linux.intel.com> + +# Basic sanity checks +$(if $(GLIB_MKENUMS),,$(error Need to define GLIB_MKENUMS)) + +$(if $(or $(glib_enum_h), \ + $(glib_enum_c)),, \ + $(error Need to define glib_enum_h and glib_enum_c)) + +$(if $(glib_enum_headers),,$(error Need to define glib_enum_headers)) + +enum_tmpl_h=$(addprefix $(srcdir)/, $(glib_enum_h:.h=.h.in)) +enum_tmpl_c=$(addprefix $(srcdir)/, $(glib_enum_c:.c=.c.in)) + +CLEANFILES += stamp-enum-types +DISTCLEANFILES += $(glib_enum_h) $(glib_enum_c) +BUILT_SOURCES += $(glib_enum_h) $(glib_enum_c) +EXTRA_DIST += $(enum_tmpl_h) $(enum_tmpl_c) + +stamp-enum-types: $(glib_enum_headers) $(enum_tmpl_h) + $(AM_V_GEN)$(GLIB_MKENUMS) \ + --template $(enum_tmpl_h) \ + $(glib_enum_headers) | sed -e 's/_TYPE_GST/_TYPE/g' > xgen-eh \ + && (cmp -s xgen-eh $(glib_enum_h) || cp -f xgen-eh $(glib_enum_h)) \ + && rm -f xgen-eh \ + && echo timestamp > $(@F) + +$(glib_enum_h): stamp-enum-types + @true + +$(glib_enum_c): $(glib_enum_headers) $(glib_enum_h) $(enum_tmpl_c) + $(AM_V_GEN)$(GLIB_MKENUMS) \ + --template $(enum_tmpl_c) \ + $(glib_enum_headers) > xgen-ec \ + && cp -f xgen-ec $(glib_enum_c) \ + && rm -f xgen-ec |