[rygel/wip/g-i: 3/7] build,core: Add support for g-i



commit ea631832c10215a1d4dd1549a0a158b52f5f4438
Author: Jens Georg <jensg openismus com>
Date:   Fri Oct 12 09:19:14 2012 +0200

    build,core: Add support for g-i

 configure.ac                  |    2 ++
 src/librygel-core/Makefile.am |   20 ++++++++++++++++++--
 2 files changed, 20 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 06d3a23..bf4c978 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,6 +27,8 @@ dnl Disable generation of static libraries
 LT_PREREQ([2.2.6])
 LT_INIT([dlopen disable-static])
 
+GOBJECT_INTROSPECTION_REQUIRE([1.33.4])
+
 dnl Required versions of library packages
 dnl Not all of these are actually used, depending on the configure options.
 GLIB_REQUIRED=2.31.13
diff --git a/src/librygel-core/Makefile.am b/src/librygel-core/Makefile.am
index 64194f4..bbb3b7e 100644
--- a/src/librygel-core/Makefile.am
+++ b/src/librygel-core/Makefile.am
@@ -13,6 +13,7 @@ librygel_core_2_0_la_SOURCES = \
 
 librygel_core_2_0_la_VALAFLAGS = \
        -H rygel-core.h -C --library=rygel-core-2.0 \
+       --gir=Rygel-2.0.gir \
        --vapidir=$(srcdir) \
        --pkg uuid \
        $(LIBRYGEL_CORE_DEPS_VALAFLAGS) \
@@ -44,7 +45,21 @@ DEPS_FILES = rygel-core-2.0.deps
 
 vapidir = $(VAPIDIR)
 vapi_DATA = $(VAPI_FILES) $(DEPS_FILES)
-rygel-core-2.0.vapi rygel-core.h: librygel_core_2_0_la_vala.stamp
+rygel-core-2.0.vapi rygel-core.h Rygel-2.0.gir: librygel_core_2_0_la_vala.stamp
+
+-include $(INTROSPECTION_MAKEFILE)
+INTROSPECTION_GIRS=
+INTROSPECTION_SCANNER_ARGS=
+INTROSPECTION_COMPILER_ARGS= -l librygel-core-2.0.so.1
+$(srcdir)/RygelCore-2.0.gir: $(srcdir)/Rygel-2.0.gir
+       $(AM_V_GEN)$(SED) -e 's,Rygel\.,RygelCore.,g' -e 's,namespace name="Rygel",namespace 
name="RygelCore",g' $< >$@
+GIRS = RygelCore-2.0.gir
+
+girdir=$(datadir)/gir-1.0
+dist_gir_DATA = $(GIRS)
+
+typelibdir = $(libdir)/girepository-1.0
+nodist_typelib_DATA = $(GIRS:.gir=.typelib)
 
 MAINTAINERCLEANFILES += $(BUILT_SOURCES)
 
@@ -53,4 +68,5 @@ EXTRA_DIST = \
        $(VAPI_FILES) \
        $(DEPS_FILES) \
        uuid.vapi \
-       $(BUILT_SOURCES)
+       $(BUILT_SOURCES) \
+       RygelCore-2.0.gir


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]