source: waflib/Tools/lua.py @ 0fa325b

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 0fa325b was 0fa325b, checked in by Paul Brossier <piem@piem.org>, 11 years ago

waf: unpack

  • Property mode set to 100644
File size: 597 bytes
Line 
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
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')
Note: See TracBrowser for help on using the repository browser.