[rygel/wip/g-i: 278/283] build,core: Add support for g-i
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/wip/g-i: 278/283] build,core: Add support for g-i
- Date: Sat, 8 Feb 2014 05:43:50 +0000 (UTC)
commit 230babce8623200e286b07c6c7b73f334d00162b
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 b5b8652..0038bce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,6 +29,8 @@ LT_INIT([dlopen disable-static])
AC_SYS_LARGEFILE
+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.34.0
diff --git a/src/librygel-core/Makefile.am b/src/librygel-core/Makefile.am
index d77e7c8..1263779 100644
--- a/src/librygel-core/Makefile.am
+++ b/src/librygel-core/Makefile.am
@@ -13,6 +13,7 @@ librygel_core_2_2_la_SOURCES = \
librygel_core_2_2_la_VALAFLAGS = \
-H rygel-core.h -C --library=rygel-core-2.2 \
+ --gir=Rygel-2.0.gir \
--vapidir=$(srcdir) \
--pkg uuid \
--pkg posix \
@@ -46,7 +47,21 @@ DEPS_FILES = rygel-core-2.2.deps
vapidir = $(VAPIDIR)
vapi_DATA = $(VAPI_FILES) $(DEPS_FILES)
-rygel-core-2.2.vapi rygel-core.h: librygel_core_2_2_la_vala.stamp
+rygel-core-2.2.vapi rygel-core.h Rygel-2.2.gir: librygel_core_2_2_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)
@@ -55,4 +70,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]