libzakform_la_LDFLAGS = -no-undefined
-libzakform_include_HEADERS = \
- libzakform.h \
+gir_include = \
commons.h \
zakformmarshal.h \
form.h \
formvalidatorcomparedate.h \
formvalidatorcomposite.h
+libzakform_include_HEADERS = \
+ libzakform.h \
+ $(gir_include)
+
libzakform_includedir = $(includedir)/libzakform
install-exec-hook:
uninstall-hook:
rm -rf "$(libdir)/$(PACKAGE)"
+
+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 = $(libzakform_la_SOURCES) $(gir_include)
+
+ZakForm-1.0.gir: libzakform.la
+ZakForm_1_0_gir_INCLUDES = GLib-2.0 GObject-2.0 GModule-2.0 libxml2-2.0
+ZakForm_1_0_gir_CFLAGS = $(AM_CPPFLAGS)
+ZakForm_1_0_gir_LIBS = libzakform.la
+ZakForm_1_0_gir_FILES = $(introspection_sources)
+INTROSPECTION_GIRS += ZakForm-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