From: Evan Nemerson Date: Sat, 30 Jul 2011 19:31:49 +0000 (-0700) Subject: gcr: add GObject introspection support X-Git-Tag: split~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79df02ea2c54900be1ea3ab651e49cc2b216d0de;p=platform%2Fupstream%2Fgcr.git gcr: add GObject introspection support https://bugzilla.gnome.org/show_bug.cgi?id=655651 --- diff --git a/gcr/Makefile.am b/gcr/Makefile.am index 1dba529..0475094 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