From: Andrea Zagli Date: Sat, 10 Jun 2017 12:32:58 +0000 (+0200) Subject: Enabled gir. X-Git-Tag: v0.7.0~1^2 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=cdb485ab04f55e436d160897e63248bb9f6d4ea4;p=libgdaex Enabled gir. --- diff --git a/.gitignore b/.gitignore index 2505b7a..cd1690d 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,5 @@ tests/select tests/getsql tests/sqlbuilder *~ +*.gir +*.typelib \ No newline at end of file diff --git a/Makefile.am b/Makefile.am index 8ed654a..462f209 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc +DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-introspection SUBDIRS = data po src gdaex2gettext docs tests diff --git a/configure.ac b/configure.ac index 0f4b99a..e859d9a 100644 --- a/configure.ac +++ b/configure.ac @@ -28,6 +28,9 @@ AC_PROG_LIBTOOL AC_PROG_RANLIB GTK_DOC_CHECK(1.0) + +GOBJECT_INTROSPECTION_CHECK([1.30.0]) + IT_PROG_INTLTOOL dnl ****************************** @@ -49,8 +52,8 @@ PKG_CHECK_MODULES(GDAEX, [gmodule-2.0 >= 2 libgda-5.0 >= 5 gio-2.0 >= 2.36 gtk+-3.0 >= 3 - libxml-2.0 >= 2 - libzakutils]) + libxml-2.0 >= 2 + libzakutils]) AC_SUBST(GDAEX_CFLAGS) AC_SUBST(GDAEX_LIBS) diff --git a/src/Makefile.am b/src/Makefile.am index 5fe63c0..bd00197 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -47,3 +47,29 @@ install-exec-hook: uninstall-hook: rm -rf "$(libdir)/$(PACKAGE)" + +CLEANFILES = + +-include $(INTROSPECTION_MAKEFILE) +INTROSPECTION_GIRS = +INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all --accept-unprefixed --identifier-prefix="" +INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) + +if HAVE_INTROSPECTION +introspection_sources = $(libgdaex_la_SOURCES) $(libgdaex_include_HEADERS) + +Gdaex-1.0.gir: libgdaex.la +Gdaex_1_0_gir_INCLUDES = GObject-2.0 GLib-2.0 Gda-5.0 +Gdaex_1_0_gir_CFLAGS = $(AM_CPPFLAGS) +Gdaex_1_0_gir_LIBS = libgdaex.la +Gdaex_1_0_gir_FILES = $(introspection_sources) +INTROSPECTION_GIRS += Gdaex-1.0.gir + +girdir = $(datadir)/gir-1.0 +gir_DATA = $(INTROSPECTION_GIRS) + +typelibdir = $(libdir)/girepository-1.0 +typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) + +CLEANFILES += $(gir_DATA) $(typelib_DATA) +endif