38be0d1383
This is the beginning of revision history for this module. If you want to look at revision history older than this, please refer to the Qt Git wiki for how to use Git history grafting. At the time of writing, this wiki is located here: http://qt.gitorious.org/qt/pages/GitIntroductionWithQt If you have already performed the grafting and you don't see any history beyond this commit, try running "git log" with the "--follow" argument. Branched from the monolithic repo, Qt master branch, at commit 896db169ea224deb96c59ce8af800d019de63f12
25 lines
1020 B
Plaintext
25 lines
1020 B
Plaintext
#
|
|
# Lex extra-compiler for handling files specified in the LEXSOURCES variable
|
|
#
|
|
|
|
{
|
|
lex.name = Lex ${QMAKE_FILE_IN}
|
|
lex.input = LEXSOURCES
|
|
lex_included {
|
|
lex.CONFIG += no_link
|
|
} else {
|
|
lex.variable_out = GENERATED_SOURCES
|
|
}
|
|
isEmpty(QMAKE_LEXFLAGS_MANGLE):QMAKE_LEXFLAGS_MANGLE = -P${QMAKE_FILE_BASE}
|
|
QMAKE_LEXEXTRAFLAGS = $$QMAKE_LEXFLAGS
|
|
!yacc_no_name_mangle:QMAKE_LEXEXTRAFLAGS += $$QMAKE_LEXFLAGS_MANGLE
|
|
|
|
lex.commands = $$QMAKE_LEX $$QMAKE_LEXEXTRAFLAGS ${QMAKE_FILE_IN}$$escape_expand(\\n\\t) \
|
|
$$QMAKE_DEL_FILE $${QMAKE_CPP_MOD_MOC}${QMAKE_FILE_BASE}_lex$${first(QMAKE_EXT_CPP)}$$escape_expand(\\n\\t) \
|
|
$$QMAKE_MOVE lex.${QMAKE_FILE_BASE}.c $${QMAKE_CPP_MOD_MOC}${QMAKE_FILE_BASE}_lex$${first(QMAKE_EXT_CPP)}$$escape_expand(\\n\\t)
|
|
lex.output = $${QMAKE_CPP_MOD_MOC}${QMAKE_FILE_BASE}_lex$${first(QMAKE_EXT_CPP)}
|
|
|
|
silent:lex.commands = @echo Lex ${QMAKE_FILE_IN} && $$lex.commands
|
|
QMAKE_EXTRA_COMPILERS += lex
|
|
}
|