summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-12 13:44:08 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-12 13:44:08 +0000
commit1d95f1678637f30b6bf453f781b5938d64354228 (patch)
tree2ee99ae2bc79323bd96dad52157e6e6be67ba45a /src/CMakeLists.txt
parent55467ed90c19bc82506433f8f7d274b5bfb8d10f (diff)
downloadrspamd-1d95f1678637f30b6bf453f781b5938d64354228.tar.gz
rspamd-1d95f1678637f30b6bf453f781b5938d64354228.zip
[Rework] Implement content type parser for mime
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 943a4dc9e..02cf7e7f1 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -105,7 +105,8 @@ SET(RAGEL_DEPENDS "${CMAKE_SOURCE_DIR}/src/ragel/smtp_address.rl"
"${CMAKE_SOURCE_DIR}/src/ragel/smtp_date.rl"
"${CMAKE_SOURCE_DIR}/src/ragel/smtp_ip.rl"
"${CMAKE_SOURCE_DIR}/src/ragel/smtp_whitespace.rl"
- "${CMAKE_SOURCE_DIR}/src/ragel/smtp_received.rl")
+ "${CMAKE_SOURCE_DIR}/src/ragel/smtp_received.rl"
+ "${CMAKE_SOURCE_DIR}/src/ragel/content_type.rl")
RAGEL_TARGET(ragel_smtp_addr
INPUTS ${CMAKE_SOURCE_DIR}/src/ragel/smtp_addr_parser.rl
DEPENDS ${RAGEL_DEPENDS}
@@ -121,6 +122,11 @@ RAGEL_TARGET(ragel_newlines_strip
DEPENDS ${RAGEL_DEPENDS}
COMPILE_FLAGS -G2
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/newlines_strip.rl.c)
+RAGEL_TARGET(ragel_content_type
+ INPUTS ${CMAKE_SOURCE_DIR}/src/ragel/content_type_parser.rl
+ DEPENDS ${RAGEL_DEPENDS}
+ COMPILE_FLAGS -G2
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/content_type.rl.c)
######################### LINK SECTION ###############################
ADD_LIBRARY(rspamd-server STATIC
@@ -134,7 +140,8 @@ ADD_LIBRARY(rspamd-server STATIC
${PLUGINSSRC}
"${RAGEL_ragel_smtp_addr_OUTPUTS}"
"${RAGEL_ragel_smtp_received_OUTPUTS}"
- "${RAGEL_ragel_newlines_strip_OUTPUTS}")
+ "${RAGEL_ragel_newlines_strip_OUTPUTS}"
+ "${RAGEL_ragel_content_type_OUTPUTS}")
TARGET_LINK_LIBRARIES(rspamd-server rspamd-http-parser)
TARGET_LINK_LIBRARIES(rspamd-server rspamd-cdb)
TARGET_LINK_LIBRARIES(rspamd-server rspamd-lpeg)