[gnome-keyring/introspection: 1/7] gcr: add GObject introspection support
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring/introspection: 1/7] gcr: add GObject introspection support
- Date: Thu, 11 Aug 2011 20:38:20 +0000 (UTC)
commit d5e5058c8c8884f05f1554a9615aa209482aa8e0
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 | 28 ++++++++++++++++++++++++++++
3 files changed, 34 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a63a860..b8b0fa2 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)
@@ -671,10 +673,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 680871e..dc96fcb 100644
--- a/gcr/.gitignore
+++ b/gcr/.gitignore
@@ -1,3 +1,5 @@
/gcr.pc
/gcr-0.pc
/gcr-3.pc
+/Gcr-3.0.gir
+/Gcr-3.0.typelib
diff --git a/gcr/Makefile.am b/gcr/Makefile.am
index f303598..3eed0ca 100644
--- a/gcr/Makefile.am
+++ b/gcr/Makefile.am
@@ -169,6 +169,34 @@ pkgconfig_DATA = gcr-$(GCR_MAJOR).pc
gcr-$(GCR_MAJOR).pc: gcr.pc
cp gcr.pc gcr-$(GCR_MAJOR).pc
+# ------------------------------------------------------------------
+# 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
# ----------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]