s3: libsmbclient: Add missing talloc stackframe.
[metze/samba-autobuild/.git] / buildtools / wafadmin / Tools / lua.py
1 #!/usr/bin/env python
2 # encoding: utf-8
3 # Sebastian Schlingmann, 2008
4 # Thomas Nagy, 2008 (ita)
5
6 import TaskGen
7 from TaskGen import taskgen, feature
8 from Constants import *
9
10 TaskGen.declare_chain(
11         name = 'luac',
12         rule = '${LUAC} -s -o ${TGT} ${SRC}',
13         ext_in = '.lua',
14         ext_out = '.luac',
15         reentrant = False,
16         install = 'LUADIR', # env variable
17 )
18
19 @feature('lua')
20 def init_lua(self):
21         self.default_chmod = O755
22
23 def detect(conf):
24         conf.find_program('luac', var='LUAC', mandatory = True)
25