[rygel/wip/g-i: 516/521] build,core: Add support for g-i



commit 11a3ef5397385f9574d983f7a4fb64ecab79296c
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 |   16 ++++++++++++++++
 2 files changed, 18 insertions(+), 0 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..b443cea 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) \
@@ -46,6 +47,21 @@ vapidir = $(VAPIDIR)
 vapi_DATA = $(VAPI_FILES) $(DEPS_FILES)
 rygel-core-2.0.vapi rygel-core.h: 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
+Rygel-2.0.gir: librygel-core-2.0.la
+RygelCore-2.0.gir: 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)
 
 EXTRA_DIST = \


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