637f2934dc7b4eeb6a4d47dcb6a5a266107a4057
[bbaumbach/samba.git] / third_party / waf / waflib / extras / gob2.py
1 #!/usr/bin/env python
2 # encoding: utf-8
3 # Ali Sabil, 2007
4
5 from waflib import TaskGen
6
7 TaskGen.declare_chain(
8         name = 'gob2',
9         rule = '${GOB2} -o ${TGT[0].bld_dir()} ${GOB2FLAGS} ${SRC}',
10         ext_in = '.gob',
11         ext_out = '.c'
12 )
13
14 def configure(conf):
15         conf.find_program('gob2', var='GOB2')
16         conf.env['GOB2FLAGS'] = ''