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')
class waflib.Tools.lua.luac(*k, **kw)[source]

Bases: waflib.Task.Task

color = 'PINK'
hcode = b'${LUAC} -s -o ${TGT} ${SRC}'
orig_run_str = '${LUAC} -s -o ${TGT} ${SRC}'
vars = ['LUAC']
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')