g-i: add built enumtypes headers and sources to gir creation
authorSimon Feltman <sfeltman@src.gnome.org>
Sun, 27 Jan 2013 14:20:51 +0000 (06:20 -0800)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 27 Jan 2013 20:55:38 +0000 (20:55 +0000)
Add gstenumtypes.h/c for inclusion with g-ir-scanner. This fixes
problems where introspection based bindings think GstState is
typeless due to the GType not being included as an annotation.

https://bugzilla.gnome.org/show_bug.cgi?id=691185

gst/Makefile.am

index 7eb12251f7a13272e117dd6a5c925cad4020ec8d..c1bdf0c165ff6de392ad9a3e7d51be6a0bd9c027 100644 (file)
@@ -260,7 +260,9 @@ if HAVE_INTROSPECTION
 BUILT_GIRSOURCES = Gst-@GST_API_VERSION@.gir
 
 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstreamer_@GST_API_VERSION@include_HEADERS))
+gir_headers+=$(patsubst %,$(builddir)/%, $(built_header_make))
 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstreamer_@GST_API_VERSION@_la_SOURCES))
+gir_sources+=$(patsubst %,$(builddir)/%, $(built_source_make))
 
 Gst-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstreamer-@GST_API_VERSION@.la
        $(AM_V_GEN)GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_UPDATE=no \