Sanity check all GtkBuilder *.ui files at build-time
@debarshir
Submitted by Debarshi Ray Link to original bug (#779427)
Description
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])
https://git.gnome.org/browse/hitori/tree/Makefile.am#n95:
check-builder: $(ui_data)
[ "$(XMLLINT)" = "" ] ||
$(XMLLINT) --nonet --noblanks --noout --relaxng $(GTK_PREFIX)/share/gtk-3.0/gtkbuilder.rng $^
check-local: check-builder