~ubuntu-branches/ubuntu/trusty/ldb/trusty-proposed

« back to all changes in this revision

Viewing changes to buildtools/wafadmin/Tools/gob2.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2012-02-07 16:04:26 UTC
  • mfrom: (1.3.11)
  • Revision ID: package-import@ubuntu.com-20120207160426-hz17vq8gs1epwkf2
Tags: 1:1.1.4+git20120206-1
* New upstream snapshot.
 + Extracts waf source code. Closes: #654482
 + Disable tdb2 support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
# encoding: utf-8
 
3
# Ali Sabil, 2007
 
4
 
 
5
import TaskGen
 
6
 
 
7
TaskGen.declare_chain(
 
8
        name = 'gob2',
 
9
        rule = '${GOB2} -o ${TGT[0].bld_dir(env)} ${GOB2FLAGS} ${SRC}',
 
10
        ext_in = '.gob',
 
11
        ext_out = '.c'
 
12
)
 
13
 
 
14
def detect(conf):
 
15
        gob2 = conf.find_program('gob2', var='GOB2', mandatory=True)
 
16
        conf.env['GOB2'] = gob2
 
17
        conf.env['GOB2FLAGS'] = ''
 
18