lua

Lua support.

Compile .lua files into .luac:

def configure(conf):
        conf.load('lua')
        conf.env.LUADIR = '/usr/local/share/myapp/scripts/'
def build(bld):
        bld(source='foo.lua')
waflib.Tools.lua.configure(conf)[source]

Detect the luac compiler and set conf.env.LUAC

waflib.Tools.lua.extension(*k)

Decorator that registers a task generator method which will be invoked during the processing of source files for the extension given:

from waflib import Task
class mytask(Task):
        run_str = 'cp ${SRC} ${TGT}'
@extension('.moo')
def create_maa_file(self, node):
        self.create_task('mytask', node, node.change_ext('.maa'))
def build(bld):
        bld(source='foo.moo')