This is an obvious variation of the preview command. It can save a .ui file as either .png or .node.
Move the tools directory to be toplevel, and instead of recompiling sources twice, link them with the our new static libgtk.a.