diff options
author | Morten Mjelva <morten.mjelva@gmail.com> | 2010-12-11 15:14:06 +0000 |
---|---|---|
committer | Morten Mjelva <morten.mjelva@gmail.com> | 2011-02-08 08:47:32 +0100 |
commit | 24b3f1e1c1bcf2befd06071dec885eb0964b0875 (patch) | |
tree | f562a4a91a262018214518d1448eb1e3f0aa99b4 | |
parent | 57ccc9d45bf10a9c14479770e901459085a79e14 (diff) |
Adds gobject-introspection stuff to makegi
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | folks/Makefile.am | 22 |
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 = \ |