diff options
author | Raul Gutierrez Segales <raul.gutierrez.segales@collabora.co.uk> | 2011-05-12 21:30:02 -0400 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-12 21:37:06 -0400 |
commit | a70b0c15c191d30624ebed7fecbab9ce2c26d690 (patch) | |
tree | d097fbe01d1385bfdf3068f503a9e64c65fdf319 | |
parent | d4b4386636da4af5bec42993dc011534833ea4c2 (diff) | |
download | evolution-data-server-a70b0c15c191d30624ebed7fecbab9ce2c26d690.tar.gz |
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.
(cherry picked from commit 88b619567fc502a3cd0e50f7f01e3bc7c41413d7)
-rw-r--r-- | 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 07b3475a7..d3a6c6270 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 = \ |