[evolution-data-server] Remove introspection of libecal.



commit 47b5c9525f76c487a76eb629653aa59ec1f64c40
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Dec 8 15:51:19 2012 -0500

    Remove introspection of libecal.
    
    A great deal of the calendar API exposes data structures from libical.
    libical is not a GObject library, and is therefore not introspectable.
    This is unfortunate, but the API has been this way for over a decade.
    
    The g-ir-scanner skips functions with data types it does not understand.
    Therefore a great deal of the calendar API is omitted from introspection
    and the resulting language bindings are not actually useful. This causes
    confusion and disappointment, judging by the number of times I've had to
    explain this to programmers in the #evolution channel.
    
    Annotating the calendar API for introspection is still good practice.
    But until this situation changes, let's not give the false impression
    that E-D-S calendars are accessible from non-C languages by producing
    a less-than-useful GIR file.
    
    Remove the introspection.

 calendar/libecal/Makefile.am |   45 ------------------------------------------
 vala/Makefile.am             |   15 --------------
 vala/libecalendar-1.2.deps   |    2 -
 3 files changed, 0 insertions(+), 62 deletions(-)
---
diff --git a/calendar/libecal/Makefile.am b/calendar/libecal/Makefile.am
index 434cf56..69f4d22 100644
--- a/calendar/libecal/Makefile.am
+++ b/calendar/libecal/Makefile.am
@@ -88,51 +88,6 @@ BUILT_SOURCES = $(ENUM_GENERATED) $(MARSHAL_GENERATED)
 CLEANFILES = $(BUILT_SOURCES)
 DISTCLEANFILES = $(pkgconfig_DATA)
 
--include $(INTROSPECTION_MAKEFILE)
-INTROSPECTION_GIRS =
-INTROSPECTION_SCANNER_ARGS = \
-	--warn-all \
-	--add-include-path=$(top_builddir)/libedataserver \
-	--identifier-prefix E \
-	--pkg-export libecal-1.2 \
-	--c-include="libecal/libecal.h" \
-	-D EDS_DISABLE_DEPRECATED \
-	$(NULL)
-INTROSPECTION_COMPILER_ARGS = \
-	--includedir=$(top_builddir)/libedataserver \
-	$(NULL)
-
-if HAVE_INTROSPECTION
-
-introspection_sources = \
-	$(filter-out %-private.h, $(libecalinclude_HEADERS) $(libecal_1_2_la_SOURCES))
-
-ECalendar-1.2.gir: libecal-1.2.la
-ECalendar_1_2_gir_INCLUDES = GObject-2.0 EDataServer-1.2 GLib-2.0
-ECalendar_1_2_gir_CFLAGS = \
-	$(libecal_INCLUDES) \
-	-DLIBECAL_COMPILATION \
-	$(EVOLUTION_CALENDAR_CFLAGS) \
-	$(CAMEL_CFLAGS) \
-	$(NULL)
-ECalendar_1_2_gir_LIBS = \
-	libecal-1.2.la \
-	$(top_builddir)/calendar/libegdbus/libegdbus-cal.la \
-	$(top_builddir)/libedataserver/libedataserver-1.2.la \
-	$(top_builddir)/camel/libcamel-1.2.la \
-	$(NULL)
-ECalendar_1_2_gir_FILES = $(introspection_sources)
-INTROSPECTION_GIRS += ECalendar-1.2.gir
-
-girdir = $(datadir)/gir-1.0
-gir_DATA = $(INTROSPECTION_GIRS)
-
-typelibdir = $(libdir)/girepository-1.0
-typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
-
-CLEANFILES += $(gir_DATA) $(typelib_DATA)
-endif
-
 EXTRA_DIST = 						\
 	$(pkgconfig_DATA:-$(API_VERSION).pc=.pc.in)	\
 	e-cal-enumtypes.h.template			\
diff --git a/vala/Makefile.am b/vala/Makefile.am
index 7ebbcff..dd08d45 100644
--- a/vala/Makefile.am
+++ b/vala/Makefile.am
@@ -2,17 +2,14 @@ vapidir = $(datarootdir)/vala/vapi
 vapi_DATA = \
 	libedataserver-1.2.vapi \
 	libebook-1.2.vapi \
-	libecalendar-1.2.vapi \
 	$(NULL)
 dist_vapi_DATA = \
 	libebook-1.2.deps \
-	libecalendar-1.2.deps \
 	$(NULL)
 
 EXTRA_DIST = \
 	EBook-1.2.metadata \
 	libebook-1.2-custom.vala \
-	ECalendar-1.2.metadata \
 	EDataServer-1.2.metadata \
 	$(NULL)
 
@@ -37,18 +34,6 @@ libedataserver-1.2.vapi: $(top_builddir)/libedataserver/EDataServer-1.2.gir
 		< libedataserver-1.2.vapi.tmp > $@
 	@rm  libedataserver-1.2.vapi.tmp
 
-libecalendar-1.2.vapi: $(top_builddir)/calendar/libecal/ECalendar-1.2.gir libedataserver-1.2.vapi
-	$(VAPIGEN_V)$(VAPIGEN) \
-		--vapidir=. \
-		--girdir=$(top_builddir)/libedataserver \
-		--pkg libedataserver-1.2 \
-		--pkg gio-2.0 \
-		--pkg libxml-2.0 \
-		--library libecalendar-1.2 \
-		--metadatadir=$(srcdir) \
-		$< \
-		$(NULL)
-
 libebook-1.2.vapi: $(top_builddir)/addressbook/libebook/EBook-1.2.gir libedataserver-1.2.vapi libebook-1.2-custom.vala
 	$(VAPIGEN_V)$(VAPIGEN) \
 		--vapidir=. \



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