[gnome-keyring/introspection: 6/7] gck: Add gobject introspection support



commit dfc75c06d1bdeb5c60587414e258fe743772676e
Author: Evan Nemerson <evan coeus-group com>
Date:   Thu Aug 11 22:36:22 2011 +0200

    gck: Add gobject introspection support
    
    https://bugzilla.gnome.org/show_bug.cgi?id=655653

 gck/Makefile.am |   46 +++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 41 insertions(+), 5 deletions(-)
---
diff --git a/gck/Makefile.am b/gck/Makefile.am
index c8f44ce..aa708cd 100644
--- a/gck/Makefile.am
+++ b/gck/Makefile.am
@@ -30,11 +30,9 @@ BUILT_SOURCES = \
 
 lib_LTLIBRARIES = libgck- GCK_MAJOR@.la
 
-libgck_ GCK_MAJOR@_la_SOURCES = \
-	gck.h gck-private.h pkcs11.h \
+PUBLIC_SOURCES = \
+	gck.h pkcs11.h \
 	gck-attributes.c \
-	gck-call.c \
-	gck-dump.c \
 	gck-enumerator.c \
 	gck-misc.c \
 	gck-module.c \
@@ -42,7 +40,16 @@ libgck_ GCK_MAJOR@_la_SOURCES = \
 	gck-object.c \
 	gck-session.c \
 	gck-slot.c \
-	gck-uri.c \
+	gck-uri.c
+
+PRIVATE_SOURCES = \
+	gck-private.h \
+	gck-call.c \
+	gck-dump.c
+
+libgck_ GCK_MAJOR@_la_SOURCES = \
+	$(PUBLIC_SOURCES) \
+	$(PRIVATE_SOURCES) \
 	$(BUILT_SOURCES)
 
 libgck_ GCK_MAJOR@_la_LDFLAGS = \
@@ -93,3 +100,32 @@ symbols: libgck-$(VERSION).symbols
 libgck-$(VERSION).symbols: .libs/libgck- GCK_MAJOR@.so
 	nm -D .libs/libgck- GCK_MAJOR@.so | grep -F ' T ' | \
 		cut -d ' ' -f 3 | sort > $@
+
+# ------------------------------------------------------------------
+# INTROSPECTION
+
+if HAVE_INTROSPECTION
+
+include $(INTROSPECTION_MAKEFILE)
+
+INTROSPECTION_GIRS = Gck- GCK_MAJOR@.gir
+INTROSPECTION_SCANNER_ARGS = $(INTROSPECTION_FLAGS) --add-include-path=$(srcdir) --add-include-path=.
+INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) --includedir=.
+
+Gck- GCK_MAJOR@.gir: libgck- GCK_MAJOR@.la
+
+Gck_ GCK_MAJOR@_gir_PACKAGES = gobject-2.0 p11-kit-1
+Gck_ GCK_MAJOR@_gir_EXPORT_PACKAGES = gck-$(GCK_MAJOR)
+Gck_ GCK_MAJOR@_gir_INCLUDES = GObject-2.0
+Gck_ GCK_MAJOR@_gir_LIBS = libgck- GCK_MAJOR@.la
+Gck_ GCK_MAJOR@_gir_CFLAGS = -I$(top_srcdir) -I$(top_builddir) -DGCK_COMPILATION -DGCK_API_SUBJECT_TO_CHANGE
+Gck_ GCK_MAJOR@_gir_FILES = $(PUBLIC_SOURCES)
+Gck_ GCK_MAJOR@_gir_SCANNERFLAGS = --c-include "gck.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]