gob2.py 314 B

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