[PATCH core 07/10] build: libgrlnet introspection
- From: Víctor Manuel Jáquez Leal <vjaquez igalia com>
- To: grilo-list gnome org
- Subject: [PATCH core 07/10] build: libgrlnet introspection
- Date: Mon, 4 Oct 2010 21:11:58 +0200
Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez igalia com>
---
libs/net/Makefile.am | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/libs/net/Makefile.am b/libs/net/Makefile.am
index 16a92ba..86163bc 100644
--- a/libs/net/Makefile.am
+++ b/libs/net/Makefile.am
@@ -49,3 +49,33 @@ MAINTAINERCLEANFILES = \
*~
DISTCLEANFILES = $(MAINTAINERCLEANFILES)
+CLEANFILES =
+
+# introspection support
+if HAVE_INTROSPECTION
+-include $(INTROSPECTION_MAKEFILE)
+gir_headers = $(patsubst %,$(srcdir)/%, $(libgrlnet_ GRL_MAJORMINOR@include_HEADERS))
+gir_sources = $(patsubst %,$(srcdir)/%, $(libgrlnet_ GRL_MAJORMINOR@_la_SOURCES))
+
+INTROSPECTION_GIRS =
+
+introspection_sources = \
+ $(gir_headers) \
+ $(gir_sources)
+
+GrlNet- GRL_MAJORMINOR@.gir: libgrlnet- GRL_MAJORMINOR@.la
+GrlNet_0_1_gir_SCANNERFLAGS = --warn-all -v
+GrlNet_0_1_gir_INCLUDES = GObject-2.0 Gio-2.0
+GrlNet_0_1_gir_CFLAGS = -I$(top_srcdir)/libs $(libgrlnet_ GRL_MAJORMINOR@_la_CFLAGS)
+GrlNet_0_1_gir_LIBS = libgrlnet- GRL_MAJORMINOR@.la
+GrlNet_0_1_gir_FILES = $(introspection_sources)
+INTROSPECTION_GIRS += GrlNet- GRL_MAJORMINOR@.gir
+
+girdir = $(datadir)/gir-1.0
+dist_gir_DATA = $(INTROSPECTION_GIRS)
+
+typelibdir = $(libdir)/girepository-1.0
+typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
+
+CLEANFILES += $(dist_gir_DATA) $(typelib_DATA)
+endif
--
1.7.1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]