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.
25 lines
489 B
25 lines
489 B
#!/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 = False,
|
|
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)
|
|
|
|
|