[evolution-data-server] Bug 649761 - Add gobject-introspection build system to libebook



commit 88b619567fc502a3cd0e50f7f01e3bc7c41413d7
Author: Raul Gutierrez Segales <raul gutierrez segales collabora co uk>
Date:   Thu May 12 21:30:02 2011 -0400

    Bug 649761 - Add gobject-introspection build system to libebook
    
    Extended Rob Bradford's initial commit to add libedataserver as a
    dependency for g-ir-scanner when processing libebook.

 addressbook/libebook/Makefile.am |   44 +++++++++++++++++++++++++++++++++++++-
 1 files changed, 43 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libebook/Makefile.am b/addressbook/libebook/Makefile.am
index 07b3475..d3a6c62 100644
--- a/addressbook/libebook/Makefile.am
+++ b/addressbook/libebook/Makefile.am
@@ -1,3 +1,5 @@
+CLEANFILES=
+
 # The marshallers
 MARSHAL_GENERATED = e-book-marshal.c e-book-marshal.h
 @EVO_MARSHAL_RULE@
@@ -64,8 +66,48 @@ e-name-western-tables.h: e-name-western-tables.h.in
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = libebook-$(API_VERSION).pc
 
+
+-include $(INTROSPECTION_MAKEFILE)
+INTROSPECTION_GIRS =
+INTROSPECTION_SCANNER_ARGS = --add-include-path=$(top_builddir)/libedataserver --add-include-path=$(srcdir) --identifier-prefix=E --c-include="libebook/e-book.h"
+INTROSPECTION_COMPILER_ARGS = --includedir=$(top_builddir)/libedataserver --includedir=$(srcdir)
+
+if HAVE_INTROSPECTION
+introspection_sources = $(libebook_1_2_la_SOURCES)
+EBook-1.2.gir: libebook-1.2.la
+
+EBook_1_2_gir_INCLUDES = GObject-2.0 EDataServer-1.2 GLib-2.0 libxml2-2.0
+libxml_include = `$(PKG_CONFIG) --cflags libxml-2.0`
+gconf_include = `$(PKG_CONFIG) --cflags gconf-2.0`
+EBook_1_2_gir_CFLAGS = $(INCLUDES) \
+		       -I$(top_srcdir) \
+		       $(libxml_include) \
+		       $(gconf_include) \
+		       -I$(top_builddir) \
+		       -I$(top_builddir)/addressbook/ \
+		       -I$(top_builddir)/addressbook/libebook \
+			$(NULL)
+EBook_1_2_gir_LIBS = libebook-1.2.la $(top_builddir)/libedataserver/libedataserver-1.2.la
+EBook_1_2_gir_FILES = e-contact.c e-contact.h \
+		      e-vcard.c e-vcard.h \
+		      e-book.c e-book.h \
+		      e-book-view.c e-book-view.h \
+		      e-error.h e-book-types.h \
+		      e-book-query.c e-book-query.h
+
+INTROSPECTION_GIRS += EBook-1.2.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
+
 BUILT_SOURCES = $(MARSHAL_GENERATED)
-CLEANFILES    = $(BUILT_SOURCES)
+CLEANFILES    += $(BUILT_SOURCES)
 DISTCLEANFILES = $(pkgconfig_DATA)
 
 EXTRA_DIST = 						\



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