mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
485 B
26 lines
485 B
15 years ago
|
#!/usr/bin/env python
|
||
|
# encoding: utf-8
|
||
|
# Sebastian Schlingmann, 2008
|
||
|
# Thomas Nagy, 2008 (ita)
|
||
|
|
||
|
import TaskGen
|
||
|
from TaskGen import taskgen, feature
|
||
|
from Constants import *
|
||
|
|
||
|
TaskGen.declare_chain(
|
||
|
name = 'luac',
|
||
|
rule = '${LUAC} -s -o ${TGT} ${SRC}',
|
||
|
ext_in = '.lua',
|
||
|
ext_out = '.luac',
|
||
|
reentrant = 0,
|
||
|
install = 'LUADIR', # env variable
|
||
|
)
|
||
|
|
||
|
@feature('lua')
|
||
|
def init_lua(self):
|
||
|
self.default_chmod = O755
|
||
|
|
||
|
def detect(conf):
|
||
|
conf.find_program('luac', var='LUAC', mandatory = True)
|
||
|
|