diff options
author | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2015-10-07 18:52:20 +0100 |
---|---|---|
committer | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2015-10-09 14:44:41 +0100 |
commit | 6bf3a136ff0babd34648c51658d9fd6cdaf280dc (patch) | |
tree | d941e15e7efe8daf9b720754bc1e5a3bdde59fa9 /libgeoclue | |
parent | c9ef691d1756b17d3456f230818aba642c521b98 (diff) | |
download | geoclue-6bf3a136ff0babd34648c51658d9fd6cdaf280dc.tar.gz |
lib,build: Build introspection for library
https://bugs.freedesktop.org/show_bug.cgi?id=68658
Diffstat (limited to 'libgeoclue')
-rw-r--r-- | libgeoclue/Makefile.am | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/libgeoclue/Makefile.am b/libgeoclue/Makefile.am index f7e95d7..2e76eb3 100644 --- a/libgeoclue/Makefile.am +++ b/libgeoclue/Makefile.am @@ -74,6 +74,40 @@ libgeoclue_2_la_LIBADD = \ CLEANFILES = $(BUILT_SOURCES) \ $(NULL) +if HAVE_INTROSPECTION +girdir = $(datadir)/gir-1.0 +gir_DATA = Geoclue-2.0.gir + +typelibsdir = $(libdir)/girepository-1.0 +typelibs_DATA = Geoclue-2.0.typelib + +Geoclue-2.0.gir: $(libgeoclue_2_la_SOURCES) $(geoclue_include_HEADERS) + $(AM_V_GEN)$(INTROSPECTION_SCANNER) -v \ + --warn-all \ + --namespace Geoclue \ + --identifier-prefix=GClue \ + --symbol-prefix=gclue \ + --nsversion=1.0 \ + --include=Gio-2.0 \ + --library=geoclue-2 \ + --output $@ \ + --pkg=glib-2.0 \ + --pkg=gobject-2.0 \ + --pkg=gio-2.0 \ + --pkg-export=geoclue-2.0 \ + --libtool=$(top_builddir)/libtool \ + --c-include='geoclue.h' \ + $^ \ + $(NULL) + +Geoclue-2.0.gir: libgeoclue-2.la $(INTROSPECTION_SCANNER) Makefile.am +Geoclue-2.0.typelib: Geoclue-2.0.gir $(INTROSPECTION_COMPILER) + $(INTROSPECTION_COMPILER) $< -o $@ + +CLEANFILES += $(gir_DATA) $(typelibs_DATA) + +endif # HAVE_INTROSPECTION + pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libgeoclue-$(GEOCLUE_API_VERSION).pc |