~ubuntu-branches/ubuntu/wily/radare/wily

« back to all changes in this revision

Viewing changes to wafadmin/Tools/lua.py

  • Committer: Package Import Robot
  • Author(s): Sebastian Reichel
  • Date: 2012-03-28 03:05:57 UTC
  • mfrom: (2.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20120328030557-f8ceougppsgihb8g
Tags: 1:1.5.2-6
fix glib includes for glib 2.32+ (Closes: #665604) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /usr/bin/env python
 
2
# encoding: utf-8
 
3
 
 
4
import TaskGen
 
5
TaskGen.declare_chain(name='luac',action='${LUAC} -s -o ${TGT} ${SRC}',ext_in='.lua',ext_out='.luac',reentrant=0,install='LUADIR',)
 
6
class lua_taskgen(TaskGen.task_gen):
 
7
        def __init__(self):
 
8
                TaskGen.task_gen.__init__(self)
 
9
                self.chmod=0755
 
10
def detect(conf):
 
11
        luac=conf.find_program('luac',var='LUAC')
 
12
        if not luac:conf.fatal('cannot find the compiler "luac"')
 
13