blob: a0a35fce0e7e14e7b658e2b788626f789b6765c3 [file] [log] [blame]
akmhoquefa8ee9b2014-03-14 09:06:24 -05001#! /usr/bin/env python
2# encoding: utf-8
3# WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
4
5from waflib.TaskGen import extension
6from waflib import Task,Utils
7@extension('.lua')
8def add_lua(self,node):
9 tsk=self.create_task('luac',node,node.change_ext('.luac'))
10 inst_to=getattr(self,'install_path',self.env.LUADIR and'${LUADIR}'or None)
11 if inst_to:
12 self.bld.install_files(inst_to,tsk.outputs)
13 return tsk
14class luac(Task.Task):
15 run_str='${LUAC} -s -o ${TGT} ${SRC}'
16 color='PINK'
17def configure(conf):
18 conf.find_program('luac',var='LUAC')