4.6.2 Adding Custom Builders

It is also possible to extend Rscons with new builders. This is the most flexible method to extend Rscons. Builders can execute a command line program, call another builder, or just use plain Ruby code to produce an output file.

A builder is a class that inherits from the Rscons::Builder base class. Rscons provides a Rscons::Builders namespacing module which contains the built-in builder classes. User-provided custom builder classes can also reside in the Rscons::Builders namespacing module, but this is not required.