Commit 8ce6631d authored by Zeeshan Ali's avatar Zeeshan Ali

Add introspection

parent 53449ee8
......@@ -70,6 +70,8 @@ if test "x$enable_debug" = "xyes"; then
CFLAGS="$CFLAGS -O0 -ggdb3"
fi
GOBJECT_INTROSPECTION_CHECK([0.6.2])
AC_CONFIG_FILES([
Makefile
src/Makefile
......
......@@ -43,4 +43,40 @@ CLEANFILES = $(BUILT_SOURCES)
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = geoclue-1.0.pc
if HAVE_INTROSPECTION
girdir = $(datadir)/gir-1.0
gir_DATA = Geoclue-1.0.gir
typelibsdir = $(libdir)/girepository-1.0
typelibs_DATA = Geoclue-1.0.typelib
Geoclue-1.0.gir: $(libgeoclue_1_0_la_SOURCES) $(libgeoclue_1_0_la_HEADERS)
$(INTROSPECTION_SCANNER) -v \
--warn-all \
--namespace Geoclue \
--identifier-prefix=GClue \
--symbol-prefix=gclue \
--nsversion=1.0 \
--include=Gio-2.0 \
--library=geoclue-1.0 \
--output $@ \
--pkg=glib-2.0 \
--pkg=gobject-2.0 \
--pkg=gio-2.0 \
--pkg-export=geoclue-1.0 \
--libtool=$(top_builddir)/libtool \
--c-include='geoclue.h' \
-I$(top_srcdir)/src \
-I$(top_builddir)/src \
$^ \
$(NULL)
Geoclue-1.0.gir: libgeoclue-1.0.la $(INTROSPECTION_SCANNER) Makefile.am
Geoclue-1.0.typelib: Geoclue-1.0.gir $(INTROSPECTION_COMPILER)
$(INTROSPECTION_COMPILER) $< -o $@
CLEANFILES += $(gir_DATA) $(typelibs_DATA)
endif # HAVE_INTROSPECTION
-include $(top_srcdir)/git.mk
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment