]> saetta.ns0.it Git - zakautho/libzakautho/commitdiff
Added g-introspection. develop
authorAndrea Zagli <azagli@libero.it>
Sat, 17 Sep 2016 07:42:31 +0000 (09:42 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 17 Sep 2016 07:42:31 +0000 (09:42 +0200)
.gitignore
configure.ac
src/Makefile.am

index 7dcae62c449b00dfe81e6b6dd6514bab7a75ebbd..b592cf6ec3016335c2281fe2332bd1dfec89b9d8 100644 (file)
@@ -50,4 +50,6 @@ intltool-*
 Rules-quot
 *.exe
 config.h.in
-compile
\ No newline at end of file
+compile
+*.gir
+*.typelib
\ No newline at end of file
index bb37bb667c4a767291da5e0d30bc63276012a076..952b9102da9246b23c4a32a1db760bc6efaa07b0 100644 (file)
@@ -31,6 +31,8 @@ AC_PROG_RANLIB
 
 GTK_DOC_CHECK
 
+GOBJECT_INTROSPECTION_CHECK([1.30.0])
+
 # Checks for libraries.
 PKG_CHECK_MODULES(ZAKAUTHO, [libxml-2.0 >= 2.7
                              libgda-5.0 >= 5.0.0])
index 6c028fb5d40dad18ff51e87ef1a2ebbb7e1a1fe0..1fa83131abfe8546c391bc5399331eb113b26242 100644 (file)
@@ -20,3 +20,29 @@ libzakautho_include_HEADERS = autho.h \
                            role.h
 
 libzakautho_includedir = $(includedir)/libzakautho
+
+CLEANFILES =
+
+-include $(INTROSPECTION_MAKEFILE)
+INTROSPECTION_GIRS =
+INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all
+INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
+
+if HAVE_INTROSPECTION
+introspection_sources = $(libzakautho_la_SOURCES) $(libzakautho_include_HEADERS)
+
+ZakAutho-1.0.gir: libzakautho.la
+ZakAutho_1_0_gir_INCLUDES = Gda-5.0
+ZakAutho_1_0_gir_CFLAGS = $(AM_CPPFLAGS)
+ZakAutho_1_0_gir_LIBS = libzakautho.la
+ZakAutho_1_0_gir_FILES = $(introspection_sources)
+INTROSPECTION_GIRS += ZakAutho-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