hippo-canvas r7289 - trunk



Author: walters
Date: Sat Aug 30 20:38:38 2008
New Revision: 7289
URL: http://svn.gnome.org/viewvc/hippo-canvas?rev=7289&view=rev

Log:
Add support for GObject-Introspecton


Added:
   trunk/Makefile-introspection.am
Modified:
   trunk/Makefile.am
   trunk/configure.ac

Added: trunk/Makefile-introspection.am
==============================================================================
--- (empty file)
+++ trunk/Makefile-introspection.am	Sat Aug 30 20:38:38 2008
@@ -0,0 +1,17 @@
+HippoCanvas.gir: $(libhippocanvas_1_la_SOURCES) libhippocanvas-1.la Makefile
+	g-ir-scanner -v --namespace HippoCanvas \
+            --include=Gtk.gir \
+            --library=hippocanvas-1 \
+            --output $@ \
+            --pkg gtk+-2.0 \
+	    $(libhippocanvas_1_la_CPPFLAGS) \
+            $(libhippocanvasinclude_HEADERS)
+
+girdir = $(datadir)/gir
+gir_DATA = HippoCanvas.gir
+
+%.typelib: %.gir Makefile
+	$(DEBUG) g-ir-compiler $(G_IR_COMPILER_OPTS) $< -o $@
+
+typelibdir = $(datadir)/girepository
+typelib_DATA = HippoCanvas.typelib

Modified: trunk/Makefile.am
==============================================================================
--- trunk/Makefile.am	(original)
+++ trunk/Makefile.am	Sat Aug 30 20:38:38 2008
@@ -59,6 +59,10 @@
 include Makefile-python.am
 endif
 
+if HAVE_INTROSPECTION
+include Makefile-introspection.am
+endif
+
 DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
 
 .PHONY: tag

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Sat Aug 30 20:38:38 2008
@@ -189,6 +189,11 @@
   fi
 fi
 
+AC_MSG_CHECKING([for gobject-introspection])
+PKG_CHECK_EXISTS(INTROSPECTION, gobject-introspection-1.0, have_introspection=true, have_introspection=false)
+AC_MSG_RESULT($have_introspection)
+AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$have_introspection" = "xtrue")
+
 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
 
 AC_OUTPUT([



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