~ubuntu-branches/ubuntu/quantal/ns3/quantal

« back to all changes in this revision

Viewing changes to debian/waf-1.5.19/wafadmin/Tools/lua.py

  • Committer: Package Import Robot
  • Author(s): YunQiang Su, Aron Xu, YunQiang Su, Upstream
  • Date: 2012-01-06 00:35:42 UTC
  • mfrom: (10.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20120106003542-vcn5g03mhapm991h
Tags: 3.13+dfsg-1
[ Aron Xu ]:
        add tag binary and binary-indep, 
  for not build doc when --binary-arch (Closes: #654493).
[ YunQiang Su ]
        add waf 1.5/1.6 source to debian directory, 
  and build waf from there (Closes: #642217).
[ Upstream ]
  Successfully link with --as-needed option (Closes: #642225).

Show diffs side-by-side

added added

removed removed

Lines of Context:
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