[rygel] renderer-gst: Added GI introspection
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] renderer-gst: Added GI introspection
- Date: Mon, 16 Mar 2015 22:14:16 +0000 (UTC)
commit b262e4a553606699adb581dfc8feae4d99636135
Author: Kevron Rees <kevron m rees intel com>
Date: Tue Feb 24 15:32:25 2015 -0800
renderer-gst: Added GI introspection
autogen.sh | 2 +-
src/librygel-renderer-gst/Makefile.am | 30 +++++++++++++++++++++++++++---
2 files changed, 28 insertions(+), 4 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index aa51848..b3fc41b 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -29,7 +29,7 @@ which gnome-autogen.sh || {
exit 1
}
-DEFAULT_ARGS="--enable-vala --enable-maintainer-mode --enable-debug --enable-example-plugins
--enable-mediathek-plugin --enable-gst-launch-plugin --enable-strict-valac"
+DEFAULT_ARGS="--enable-vala --enable-maintainer-mode --enable-debug --enable-example-plugins
--enable-mediathek-plugin --enable-gst-launch-plugin --disable-strict-valac"
mkdir -p m4
diff --git a/src/librygel-renderer-gst/Makefile.am b/src/librygel-renderer-gst/Makefile.am
index ce827a2..67081d1 100644
--- a/src/librygel-renderer-gst/Makefile.am
+++ b/src/librygel-renderer-gst/Makefile.am
@@ -14,6 +14,7 @@ librygel_renderer_gst_2_6_la_SOURCES = \
librygel_renderer_gst_2_6_la_VALAFLAGS = \
-H rygel-renderer-gst.h --library=rygel-renderer-gst-2.6 \
+ --gir=Rygel-2.6.gir \
--enable-experimental \
$(LIBRYGEL_RENDERER_GST_DEPS_VALAFLAGS) \
$(RYGEL_COMMON_LIBRYGEL_RENDERER_VALAFLAGS) \
@@ -28,10 +29,33 @@ librygel_renderer_gst_2_6_la_LDFLAGS = \
-version-info $(LIBRYGEL_RENDERER_GST_VERSION) \
-DG_LOG_DOMAIN=\"RygelRendererGst\"
-rygel-renderer-gst.h rygel-renderer-gst-2.6.vapi: \
- librygel_renderer_gst_2_6_la_vala.stamp
+rygel-renderer-gst.h rygel-renderer-gst-2.6.vapi Rygel-2.6.gir: librygel_renderer_gst_2_6_la_vala.stamp
vapidir = $(VAPIDIR)
vapi_DATA = rygel-renderer-gst-2.6.vapi rygel-renderer-gst-2.6.deps
-EXTRA_DIST=rygel-renderer-gst.h rygel-renderer-gst-2.6.vapi rygel-renderer-gst-2.6.deps
+-include $(INTROSPECTION_MAKEFILE)
+INTROSPECTION_GIRS=
+INTROSPECTION_SCANNER_ARGS=
+INTROSPECTION_COMPILER_ARGS= -l librygel-renderer-gst-2.6.so.2 --includedir=$(builddir)/../librygel-core
--includedir=$(srcdir)/../librygel-core --includedir=$(builddir)/../librygel-renderer
+
+if HAVE_INTROSPECTION
+$(builddir)/RygelRendererGst-2.6.gir: $(srcdir)/Rygel-2.6.gir
+ $(AM_V_GEN)$(SED) -e 's,Rygel\.,RygelRendererGst.,g' \
+ -e 's,RygelRendererGst\.MediaRenderer,RygelRenderer.MediaRenderer,g' \
+ -e 's,RygelRendererGst\.MediaPlayer,RygelRenderer.MediaPlayer,g' \
+ -e 's,namespace name="Rygel",namespace name="RygelRendererGst",g' \
+ -e 's,RygelRendererGst\.Plugin,RygelCore.Plugin,g' \
+ -e 's,<package name="rygel-renderer-gst-2.6"/>,<include name="RygelCore" version="2.6"/>\n<include
name="RygelRenderer" version="2.6"/>\n<package name="rygel-renderer-gst-2.6"/>,' \
+ $< >$@
+GIRS = RygelRendererGst-2.6.gir
+
+girdir=$(datadir)/gir-1.0
+dist_gir_DATA = $(GIRS)
+
+typelibdir = $(libdir)/girepository-1.0
+nodist_typelib_DATA = $(GIRS:.gir=.typelib)
+
+endif
+
+EXTRA_DIST=rygel-renderer-gst.h rygel-renderer-gst-2.6.vapi rygel-renderer-gst-2.6.deps
RygelRendererGst-2.6.gir Rygel-2.6.gir
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]