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.
19 lines
424 B
19 lines
424 B
#! /usr/bin/env python |
|
# encoding: utf-8 |
|
# Thomas Nagy, 2006 (ita) |
|
|
|
"Ragel: '.rl' files are converted into .c files using 'ragel': {.rl -> .c -> .o}" |
|
|
|
import TaskGen |
|
|
|
TaskGen.declare_chain( |
|
name = 'ragel', |
|
action = '${RAGEL} -o ${TGT} ${SRC}', |
|
ext_in = '.rl', |
|
ext_out = '.c', |
|
before = 'c', |
|
) |
|
|
|
def detect(conf): |
|
dang = conf.find_program('ragel', var='RAGEL') |
|
if not dang: conf.fatal('cannot find the program "ragel"')
|
|
|