From 239ecdfbcd1206f87405f117e499b897dcb6957c Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 31 Aug 2012 14:22:11 +0200 Subject: [PATCH] event-controller: Enable introspection Signed-off-by: Carlos Garnacho Acked-by: Simon Schampijer --- src/sugar3/event-controller/Makefile.am | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/sugar3/event-controller/Makefile.am b/src/sugar3/event-controller/Makefile.am index d56f12ea..65b0f1c8 100644 --- a/src/sugar3/event-controller/Makefile.am +++ b/src/sugar3/event-controller/Makefile.am @@ -48,4 +48,24 @@ EXTRA_DIST = \ sugar-enum-types.c.template \ sugar-enum-types.h.template -CLEANFILES = $(BUILT_SOURCES) +-include $(INTROSPECTION_MAKEFILE) +INTROSPECTION_GIRS = SugarEventController-1.0.gir +INTROSPECTION_SCANNER_ARGS = --identifier-prefix=Sugar --symbol-prefix=sugar +SugarEventController_1_0_gir_LIBS = libsugar-eventcontroller.la +SugarEventController_1_0_gir_FILES = \ + $(eventcontroller_h_sources) \ + $(eventcontroller_c_sources) +SugarEventController_1_0_gir_CFLAGS = \ + -DSUGAR_TOOLKIT_COMPILATION + +SugarEventController_1_0_gir_INCLUDES = Gtk-3.0 Gdk-3.0 +SugarEventController_1_0_gir_PACKAGES = gtk+-3.0 gdk-3.0 +SugarEventController_1_0_gir_EXPORT_PACKAGES = SugarEventController-1.0 + +girdir = $(datadir)/gir-1.0 +gir_DATA = $(INTROSPECTION_GIRS) + +typelibdir = $(libdir)/girepository-1.0 +typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) + +CLEANFILES = $(BUILT_SOURCES) $(gir_DATA) $(typelib_DATA)