File: lua.py

package info (click to toggle)
talloc 2.1.2-0%2Bdeb8u1
  • links: PTS
  • area: main
  • in suites: jessie
  • size: 2,300 kB
  • ctags: 3,111
  • sloc: python: 20,542; ansic: 11,556; xml: 812; sh: 193; makefile: 122
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)