diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-09-05 10:40:21 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-09-05 11:09:28 +0200 |
commit | 61ae0059a49e599cc81657137cc1a8487e383a7c (patch) | |
tree | 0c5dd99f1eb76770aacea1027806d9babae105ae /gst-libs/gst/app | |
parent | 78063ab4bed41890462516a2d56a26ffe8531bbf (diff) |
app: Add gobject-introspection support
Diffstat (limited to 'gst-libs/gst/app')
-rw-r--r-- | gst-libs/gst/app/Makefile.am | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gst-libs/gst/app/Makefile.am b/gst-libs/gst/app/Makefile.am index 9a8ca6122..dc3f1d2ab 100644 --- a/gst-libs/gst/app/Makefile.am +++ b/gst-libs/gst/app/Makefile.am @@ -30,3 +30,40 @@ CLEANFILES = $(BUILT_SOURCES) EXTRA_DIST = gstapp-marshal.list +if HAVE_INTROSPECTION +BUILT_GIRSOURCES = GstApp-@GST_MAJORMINOR@.gir + +gir_headers=$(patsubst %,$(srcdir)/%, $(libgstapp_@GST_MAJORMINOR@include_HEADERS)) +gir_sources=$(patsubst %,$(srcdir)/%, $(libgstapp_@GST_MAJORMINOR@_la_SOURCES)) +gir_cincludes=$(patsubst %,--c-include='gst/app/%',$(libgstapp_@GST_MAJORMINOR@include_HEADERS)) + +GstApp-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstapp-@GST_MAJORMINOR@.la + $(INTROSPECTION_SCANNER) -v --namespace GstApp \ + --nsversion=@GST_MAJORMINOR@ \ + $(gir_cincludes) \ + --add-include-path=`$(PKG_CONFIG) --variable=libdir gstreamer-0.10`/gst \ + --add-include-path=`$(PKG_CONFIG) --variable=libdir gstreamer-base-0.10` \ + --library=gstapp-0.10 \ + --include=Gst-0.10 \ + --include=GstBase-0.10 \ + --libtool="$(top_builddir)/libtool" \ + --pkg gstreamer-0.10 \ + --pkg gstreamer-base-0.10 \ + --output $@ \ + $(gir_headers) \ + $(gir_sources) + +# INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to +# install anything - we need to install inside our prefix. +girdir = $(datadir)/gir-1.0 +gir_DATA = $(BUILT_GIRSOURCES) + +typelibsdir = $(libdir)/girepository-1.0/ + +typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib) + +%.typelib: %.gir $(INTROSPECTION_COMPILER) + $(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F) + +CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA) +endif |