]> saetta.ns0.it Git - libzakgtkdecoder/commitdiff
Enabled gir.
authorAndrea Zagli <azagli@libero.it>
Sun, 11 Jun 2017 07:53:16 +0000 (09:53 +0200)
committerAndrea Zagli <azagli@libero.it>
Sun, 11 Jun 2017 07:53:47 +0000 (09:53 +0200)
.gitignore
Makefile.am
configure.ac
src/Makefile.am

index 837cae6acbd0c94acfb002ca1269bb64b8bcb48d..c9c80396dade9b015b47661496e6a8b3bbb6a6cc 100644 (file)
@@ -52,3 +52,5 @@ Rules-quot
 *.exe
 *.csv
 decodermarshal.[ch]
+*.gir
+*.typelib
\ No newline at end of file
index 96568387693c7099b3bac4fcd2947cc968c3acb8..1de65fe4e1b83471da3f3ad5a84edacc657bc30c 100644 (file)
@@ -1,3 +1,5 @@
+DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
+
 SUBDIRS = glade src tests
 
 ACLOCAL_AMFLAGS = -I m4
index dd5511b8874a96654b182ab4280834a3c259708c..1eedaef7ae5f1b204873b5a391a23d83f3fa9b8b 100644 (file)
@@ -34,6 +34,8 @@ dnl glib-genmarshal
 dnl ******************************
 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
 
+GOBJECT_INTROSPECTION_CHECK([1.30.0])
+
 dnl ******************************
 dnl Translations
 dnl ******************************
index 29dace394633e6d79c752fae108e4aedaa7d90cb..ac662fdb78987a795fec1d428cfabc03235a1398 100644 (file)
@@ -26,11 +26,40 @@ libzakgtkdecoder_la_SOURCES = \
 
 libzakgtkdecoder_la_LDFLAGS = -no-undefined
 
+gir_include = \
+                             zakgtkdecoder.h
+
 libzakgtkdecoder_include_HEADERS = \
                              libzakgtkdecoder.h \
-                             zakgtkdecoder.h
+                             $(gir_include)
 
 libzakgtkdecoder_includedir = $(includedir)/libzakgtkdecoder
 
 noinst_HEADERS = \
                  decodermarshal.h
+
+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 = $(libzakgtkdecoder_la_SOURCES) $(gir_include)
+
+ZakGtkDecoder-1.0.gir: libzakgtkdecoder.la
+ZakGtkDecoder_1_0_gir_INCLUDES = Gtk-3.0
+ZakGtkDecoder_1_0_gir_CFLAGS = $(INCLUDES)
+ZakGtkDecoder_1_0_gir_LIBS = libzakgtkdecoder.la
+ZakGtkDecoder_1_0_gir_FILES = $(introspection_sources)
+INTROSPECTION_GIRS += ZakGtkDecoder-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