summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-23 17:13:36 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-23 17:14:45 +0100
commitf5dcf4b8a4a6a9881d95e4d4b1edd4c27c077d08 (patch)
treec18b5037178bc3f9b0de97f2df35d3507497a7b0 /src/CMakeLists.txt
parentc9733c168687f1b0bf843adbfdcd3a1d586f099b (diff)
downloadrspamd-f5dcf4b8a4a6a9881d95e4d4b1edd4c27c077d08.tar.gz
rspamd-f5dcf4b8a4a6a9881d95e4d4b1edd4c27c077d08.zip
[Feature] Create a dedicated parser to strip newlines
Issue: #744
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 817a927b8..d0512da83 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -117,6 +117,11 @@ RAGEL_TARGET(ragel_smtp_received
DEPENDS ${RAGEL_DEPENDS}
COMPILE_FLAGS -T1
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/smtp_received_parser.rl.c)
+RAGEL_TARGET(ragel_newlines_strip
+ INPUTS ragel/newlines_strip.rl
+ DEPENDS ${RAGEL_DEPENDS}
+ COMPILE_FLAGS -G2
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/newlines_strip.rl.c)
######################### LINK SECTION ###############################
ADD_LIBRARY(rspamd-server STATIC
@@ -129,7 +134,8 @@ ADD_LIBRARY(rspamd-server STATIC
${CMAKE_CURRENT_BINARY_DIR}/modules.c
${PLUGINSSRC}
"${RAGEL_ragel_smtp_addr_OUTPUTS}"
- "${RAGEL_ragel_smtp_received_OUTPUTS}")
+ "${RAGEL_ragel_smtp_received_OUTPUTS}"
+ "${RAGEL_ragel_newlines_strip_OUTPUTS}")
TARGET_LINK_LIBRARIES(rspamd-server rspamd-http-parser)
TARGET_LINK_LIBRARIES(rspamd-server rspamd-cdb)
TARGET_LINK_LIBRARIES(rspamd-server rspamd-lpeg)