[libnotify] Generate gir and typelib for gobject-introspection
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libnotify] Generate gir and typelib for gobject-introspection
- Date: Thu, 18 Nov 2010 05:49:23 +0000 (UTC)
commit 2b6e827092413c8c393e4f857ff6e692375e1ad6
Author: Jonathan Matthew <jonathan d14n org>
Date: Thu Nov 18 00:13:14 2010 -0500
Generate gir and typelib for gobject-introspection
configure.ac | 4 +---
libnotify/Makefile.am | 28 ++++++++++++++++++++++++++++
2 files changed, 29 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7ae326a..71609ed 100644
--- a/configure.ac
+++ b/configure.ac
@@ -105,9 +105,7 @@ AC_SUBST(TESTS_CFLAGS)
GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
AC_SUBST(GLIB_GENMARSHAL)
-dnl
-dnl Check the D-BUS version.
-dnl
+GOBJECT_INTROSPECTION_CHECK([0.9.12])
dnl ################################################################
dnl # Set up gtk-doc
diff --git a/libnotify/Makefile.am b/libnotify/Makefile.am
index 56d5938..b314b90 100644
--- a/libnotify/Makefile.am
+++ b/libnotify/Makefile.am
@@ -79,6 +79,28 @@ s-enum-types-c: $(notify_headers) Makefile
&& rm -f tmp-$(ENUM_FILE).c \
&& echo timestamp > $(@F)
+
+if HAVE_INTROSPECTION
+
+-include $(INTROSPECTION_MAKEFILE)
+INTROSPECTION_GIRS = Notify-0.7.gir
+INTROSPECTION_SCANNER_ARGS = --add-include-path=$(top_srcdir) --add-include-path=$(top_builddir) --warn-all -I$(top_srcdir)
+INTROSPECTION_COMPILER_ARGS = --includedir=$(top_srcdir)
+
+Notify-0.7.gir: libnotify.la
+Notify_0_7_gir_INCLUDES = GLib-2.0 GdkPixbuf-2.0
+Notify_0_7_gir_LIBS = libnotify.la
+Notify_0_7_gir_FILES = $(notify_headers) $(libnotify_la_SOURCES)
+Notify_0_7_gir_PACKAGES = glib-2.0 gobject-2.0 gdk-pixbuf-2.0
+
+girdir = $(datadir)/gir-1.0
+dist_gir_DATA = $(INTROSPECTION_GIRS)
+
+typelibdir = $(libdir)/girepository-1.0
+typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
+
+endif
+
EXTRA_DIST = \
notify-marshal.list \
$(ENUM_FILE).h
@@ -91,4 +113,10 @@ CLEANFILES = \
s-enum-types-c \
s-enum-types-h
+if HAVE_INTROSPECTION
+CLEANFILES += \
+ $(dist_gir_DATA) \
+ $(typelib_DATA)
+endif
+
-include $(top_srcdir)/git.mk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]