This tool teaches Waf to create and install GObject Introspection data.
The included example shows how to use it in a wafscript.
The tool can readily be loaded as long as it is found by the python module import mechanism. This is normally done by prepending the directory it resides in to the PYTHONPATH environment variable.
The following command build a waf executable from git including this tool.
git clone https://github.com/waf-project/waf
cd waf
git clone https://github.com/dffischer/waf-gobject-introspection
./waf-light configure --prefix=/usr \
build --make-waf --tools='waf-gnome-shell-extension/gir.py'
To make it available to a system-wide waf installation, the included waf script can be used to place it into the waf library.