You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ragel.py 424B

12345678910111213141516171819
  1. #! /usr/bin/env python
  2. # encoding: utf-8
  3. # Thomas Nagy, 2006 (ita)
  4. "Ragel: '.rl' files are converted into .c files using 'ragel': {.rl -> .c -> .o}"
  5. import TaskGen
  6. TaskGen.declare_chain(
  7. name = 'ragel',
  8. action = '${RAGEL} -o ${TGT} ${SRC}',
  9. ext_in = '.rl',
  10. ext_out = '.c',
  11. before = 'c',
  12. )
  13. def detect(conf):
  14. dang = conf.find_program('ragel', var='RAGEL')
  15. if not dang: conf.fatal('cannot find the program "ragel"')