dnl ******************************
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
+GOBJECT_INTROSPECTION_CHECK([1.30.0])
+
dnl ******************************
dnl Translations
dnl ******************************
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