summaryrefslogtreecommitdiff
path: root/cad/plugins/NanoVision-1/src/KDevelop/ragel.prf
blob: ef8ad67ff48da4fb8b8b577a7ed62f97f87607d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Definitions for using Ragel
# based on /usr/share/qt4/mkspecs/features/lex.prf
{
	ragel.name = Ragel ${QMAKE_FILE_IN}
	ragel.input = RAGELSOURCES
	ragel.variable_out = GENERATED_SOURCES
	QMAKE_RAGELFLAGS = -C -o ${QMAKE_FILE_BASE}.rlm
	
	ragel.commands = ragel $$QMAKE_RAGELFLAGS ${QMAKE_FILE_IN}$$escape_expand(\n\t) \
	                 rlgen-cd ${QMAKE_FILE_BASE}.rlm -o ${QMAKE_FILE_BASE}.c
	ragel.output = ${QMAKE_FILE_BASE}.c

	silent:ragel.commands = @echo Ragel ${QMAKE_FILE_IN} && $$ragel.commands
	QMAKE_EXTRA_COMPILERS += ragel
}