File: lua.py

package info (click to toggle)
talloc 2.0.7%2Bgit20120207-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,212 kB
  • sloc: python: 19,292; ansic: 10,476; sh: 3,271; xml: 801; makefile: 136; perl: 118; awk: 57
file content (25 lines) | stat: -rw-r--r-- 489 bytes parent folder | download | duplicates (24)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/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)