summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--folks/Makefile.am22
2 files changed, 24 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 37f91d4..cdfe59d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -75,6 +75,8 @@ TP_GLIB_REQUIRED=0.13.1
# XXX: once we bump this to 0.12.x, remove all the #if VALA_0_12 conditionals
VALA_REQUIRED=0.10.0
+GOBJECT_INTROSPECTION_CHECK([0.9.0])
+
PKG_CHECK_MODULES([GLIB],
[glib-2.0 >= $GLIB_REQUIRED
gobject-2.0 >= $GLIB_REQUIRED])
diff --git a/folks/Makefile.am b/folks/Makefile.am
index 6e533ed..b43ed5d 100644
--- a/folks/Makefile.am
+++ b/folks/Makefile.am
@@ -43,6 +43,7 @@ libfolks_la_VALAFLAGS = \
--pkg gio-2.0 \
--pkg gee-1.0 \
--vapi folks.vapi \
+ --library folks --gir Folks-1.0.gir \
-H folks.h \
$(NULL)
@@ -79,6 +80,25 @@ pkgconfig_in = folks.pc.in
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = $(pkgconfig_in:.in=)
+if HAVE_INTROSPECTION
+
+girdir = @INTROSPECTION_GIRDIR@
+gir_DATA = \
+ Folks-1.0.gir \
+ $(NULL)
+
+typelibdir = @INTROSPECTION_TYPELIBDIR@
+typelib_DATA = \
+ Folks-1.0.typelib \
+ $(NULL)
+
+Folks-1.0.typelib: Folks-1.0.gir
+ @INTROSPECTION_COMPILER@ --shared-library=libfolks -o $@ $^
+
+endif # HAVE_INTROSPECTION
+
+Folks-1.0.gir folks.vapi: libfolks.la
+
EXTRA_DIST = \
$(pkgconfig_in) \
build-conf.vapi \
@@ -87,6 +107,8 @@ EXTRA_DIST = \
CLEANFILES = \
$(pkgconfig_DATA) \
folks-uninstalled.pc \
+ Folks-1.0.typelib \
+ Folks-1.0.gir \
$(NULL)
BUILT_SOURCES = \