[gnome-keyring/introspection: 1/5] gcr: add GObject introspection support



commit 2ccaf2e8ea2f750d924192f53ab6b3fe33e3c789
Author: Evan Nemerson <evan coeus-group com>
Date:   Sat Jul 30 12:31:49 2011 -0700

    gcr: add GObject introspection support
    
    https://bugzilla.gnome.org/show_bug.cgi?id=655651

 configure.ac    |    4 ++++
 gcr/.gitignore  |    2 ++
 gcr/Makefile.am |   29 +++++++++++++++++++++++++++++
 3 files changed, 35 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 29b6814..960428f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,6 +60,8 @@ AC_TYPE_SIGNAL
 AC_TYPE_SIZE_T
 AC_TYPE_UID_T
 
+GOBJECT_INTROSPECTION_CHECK([1.29])
+
 GTK_DOC_CHECK(1.9)
 DISTCHECK_CONFIGURE_FLAGS="--enable-gtk-doc"
 AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
@@ -698,10 +700,12 @@ fi
 GCK_LT_RELEASE=$GCK_CURRENT:$GCK_REVISION:$GCK_AGE
 AC_SUBST(GCK_LT_RELEASE)
 AC_SUBST(GCK_MAJOR)
+AC_SUBST(GCK_MINOR)
 
 GCR_LT_RELEASE=$GCR_CURRENT:$GCR_REVISION:$GCR_AGE
 AC_SUBST(GCR_LT_RELEASE)
 AC_SUBST(GCR_MAJOR)
+AC_SUBST(GCR_MINOR)
 
 AC_SUBST(DAEMON_CFLAGS)
 AC_SUBST(DAEMON_LIBS)
diff --git a/gcr/.gitignore b/gcr/.gitignore
index 08cae46..ff88723 100644
--- a/gcr/.gitignore
+++ b/gcr/.gitignore
@@ -3,3 +3,5 @@
 /gcr-3.pc
 /gcr-viewer.desktop
 /gcr-viewer.desktop.in
+/Gcr-3.0.gir
+/Gcr-3.0.typelib
diff --git a/gcr/Makefile.am b/gcr/Makefile.am
index 9d0da44..63c4636 100644
--- a/gcr/Makefile.am
+++ b/gcr/Makefile.am
@@ -287,6 +287,35 @@ gcr_viewer_LDADD = \
 	$(top_builddir)/gck/libgck- GCK_MAJOR@.la \
 	$(GTK_LIBS)
 
+# ------------------------------------------------------------------
+# INTROSPECTION
+
+if HAVE_INTROSPECTION
+
+include $(INTROSPECTION_MAKEFILE)
+
+INTROSPECTION_GIRS = Gcr- GCR_MAJOR@  GCR_MINOR@.gir
+INTROSPECTION_SCANNER_ARGS = --warn-all --add-include-path=$(srcdir) --add-include-path=.
+INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) --includedir=.
+
+Gcr- GCR_MAJOR@  GCR_MINOR@.gir: libgcr- GCR_MAJOR@.la
+
+Gcr_ GCR_MAJOR@_ GCR_MINOR@_gir_PACKAGES = gobject-2.0 gtk+-3.0 p11-kit-1
+Gcr_ GCR_MAJOR@_ GCR_MINOR@_gir_EXPORT_PACKAGES = gcr-3
+Gcr_ GCR_MAJOR@_ GCR_MINOR@_gir_INCLUDES = GObject-2.0 Gtk-3.0
+Gcr_ GCR_MAJOR@_ GCR_MINOR@_gir_LIBS = libgcr- GCR_MAJOR@.la
+Gcr_ GCR_MAJOR@_ GCR_MINOR@_gir_CFLAGS = -I$(top_srcdir) -I$(top_builddir) -DGCR_COMPILATION -DGCR_API_SUBJECT_TO_CHANGE
+Gcr_ GCR_MAJOR@_ GCR_MINOR@_gir_FILES = $(libgcr_ GCR_MAJOR@_la_SOURCES)
+Gcr_ GCR_MAJOR@_ GCR_MINOR@_gir_SCANNERFLAGS = --c-include "gcr.h"
+
+girdir = $(datadir)/gir-1.0
+gir_DATA = $(INTROSPECTION_GIRS)
+
+typelibsdir = $(libdir)/girepository-1.0
+typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
+
+endif
+
 # ----------------------------------------------------------------
 
 gcr-expected-base.abi: gcr-base.symbols



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