akmhoque | fa8ee9b | 2014-03-14 09:06:24 -0500 | [diff] [blame^] | 1 | #! /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 | |
| 5 | from waflib.TaskGen import extension |
| 6 | from waflib import Task,Utils |
| 7 | @extension('.lua') |
| 8 | def 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 |
| 14 | class luac(Task.Task): |
| 15 | run_str='${LUAC} -s -o ${TGT} ${SRC}' |
| 16 | color='PINK' |
| 17 | def configure(conf): |
| 18 | conf.find_program('luac',var='LUAC') |