Commit d2069152 authored by Ghislain MARY's avatar Ghislain MARY

Add "-Xconversiontimeout 10000" option for antlr generation to prevent wrong...

Add "-Xconversiontimeout 10000" option for antlr generation to prevent wrong generation with antlr 3.2.
parent 4e315bef
......@@ -49,7 +49,7 @@ set(SDP_GENERATED_SOURCE_FILES
)
add_custom_command(
OUTPUT ${SDP_GENERATED_SOURCE_FILES}
COMMAND ${ANTLR3_COMMAND} -make -Xmultithreaded -fo ${CMAKE_CURRENT_BINARY_DIR}/grammars ${CMAKE_CURRENT_SOURCE_DIR}/grammars/belle_sdp.g
COMMAND ${ANTLR3_COMMAND} -make -Xmultithreaded -Xconversiontimeout 10000 -fo ${CMAKE_CURRENT_BINARY_DIR}/grammars ${CMAKE_CURRENT_SOURCE_DIR}/grammars/belle_sdp.g
DEPENDS grammars/belle_sdp.g
)
......@@ -61,7 +61,7 @@ set(SIP_MESSAGE_GENERATED_SOURCE_FILES
)
add_custom_command(
OUTPUT ${SIP_MESSAGE_GENERATED_SOURCE_FILES}
COMMAND ${ANTLR3_COMMAND} -make -Xmultithreaded -fo ${CMAKE_CURRENT_BINARY_DIR}/grammars ${CMAKE_CURRENT_SOURCE_DIR}/grammars/belle_sip_message.g
COMMAND ${ANTLR3_COMMAND} -make -Xmultithreaded -Xconversiontimeout 10000 -fo ${CMAKE_CURRENT_BINARY_DIR}/grammars ${CMAKE_CURRENT_SOURCE_DIR}/grammars/belle_sip_message.g
DEPENDS grammars/belle_sip_message.g
)
......
......@@ -12,13 +12,13 @@ nodist_libbellesip_generated_la_SOURCES= \
$(builddir)/belle_sip_messageParser.c $(builddir)/belle_sip_messageParser.h \
$(builddir)/belle_sip_messageLexer.c $(builddir)/belle_sip_messageLexer.h : belle_sip_message.g
$(ANTLR) -make -Xmultithreaded -fo $(builddir) $(srcdir)/belle_sip_message.g
$(ANTLR) -make -Xmultithreaded -Xconversiontimeout 10000 -fo $(builddir) $(srcdir)/belle_sip_message.g
$(builddir)/belle_sdpLexer.c \
$(builddir)/belle_sdpParser.c \
$(builddir)/belle_sdpLexer.h \
$(builddir)/belle_sdpParser.h : $(srcdir)/belle_sdp.g
$(ANTLR) -make -Xmultithreaded -fo $(builddir) $<
$(ANTLR) -make -Xmultithreaded -Xconversiontimeout 10000 -fo $(builddir) $<
AM_CPPFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/src
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment