Include waf as an extracted source directory, rather than as a one-in-a-file script.
[samba.git] / buildtools / wafadmin / Tools / gob2.py
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