Sanity check all GtkBuilder *.ui files at build-time
Submitted by Debarshi Ray
As GtkBuilder *.ui files get more widely used, it becomes more and more important to ensure their validity during the build. Otherwise it is hard to guarantee that the application will actually work at run-time.
Hitori does this. Here are the relevant snippets:
https://git.gnome.org/browse/hitori/tree/configure.ac#n51: PKG_CHECK_VAR([GTK_PREFIX],[gtk+-3.0],[prefix]) AC_PATH_PROG([XMLLINT],[xmllint])
[ "$(XMLLINT)" = "" ] ||
$(XMLLINT) --nonet --noblanks --noout --relaxng $(GTK_PREFIX)/share/gtk-3.0/gtkbuilder.rng $^ check-local: check-builder