libsolipa_la_LDFLAGS = -no-undefined
-libsolipa_include_HEADERS = libsolipa.h \
+gir_include = \
solipa.h \
allegato.h \
formelementvalidatorcodfisc.h \
camelsession.h \
camel.h
+libsolipa_include_HEADERS = libsolipa.h \
+ $(gir_include)
+
libsolipa_includedir = $(includedir)/libsolipa
-libsolipactpl_la_LIBADD = libsolipa.la
+libsolipactpl_la_LIBADD = libsolipa.la \
+ $(CTPL_LIBS)
-libsolipactpl_la_CFLAGS =
+libsolipactpl_la_CFLAGS = $(CTPL_CFLAGS)
libsolipactpl_la_LDFLAGS = -no-undefined
uninstall-hook:
rm -f $(libzakformmodulesdir)/libsolipa$(libmodulesext)
+
+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 = $(libsolipa_la_SOURCES) $(gir_include)
+
+Solipa-1.0.gir: libsolipa.la
+Solipa_1_0_gir_INCLUDES = GObject-2.0
+Solipa_1_0_gir_CFLAGS = $(AM_CPPFLAGS)
+Solipa_1_0_gir_LIBS = libsolipa.la
+Solipa_1_0_gir_FILES = $(introspection_sources)
+
+SolipaCtpl-1.0.gir: libsolipactpl.la
+SolipaCtpl_1_0_gir_INCLUDES = GObject-2.0
+SolipaCtpl_1_0_gir_CFLAGS = $(AM_CPPFLAGS) $(CTPL_CFLAGS)
+SolipaCtpl_1_0_gir_LIBS = libsolipa.la libsolipactpl.la
+SolipaCtpl_1_0_gir_LDFLAGS = $(CTPL_LIBS)
+SolipaCtpl_1_0_gir_FILES = $(libsolipactpl_la_SOURCES) $(libsolipactpl_include_HEADERS)
+
+SolipaOoo-1.0.gir: libsolipaooo.la
+SolipaOoo_1_0_gir_INCLUDES = GObject-2.0
+SolipaOoo_1_0_gir_CFLAGS = $(AM_CPPFLAGS) $(PYTHON_CFLAGS)
+SolipaOoo_1_0_gir_LIBS = libsolipa.la libsolipaooo.la
+SolipaOoo_1_0_gir_LDFLAGS = $(PYTHON_LIBS)
+SolipaOoo_1_0_gir_FILES = $(libsolipaooo_la_SOURCES) $(libsolipaooo_include_HEADERS)
+
+INTROSPECTION_GIRS += Solipa-1.0.gir SolipaCtpl-1.0.gir SolipaOoo-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