]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix build
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 14 Jun 2016 19:55:39 +0000 (20:55 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 14 Jun 2016 19:55:39 +0000 (20:55 +0100)
.travis.yml
src/CMakeLists.txt

index cf1a0b50f9ead3ab89cba7befaaaa5bea63262da..d2c8bf754fe1d9f5e6bde402c1128cbed7e273d2 100644 (file)
@@ -9,7 +9,7 @@ language: c
 
 before_script:
   - sudo apt-get update -qq
-  - sudo apt-get install -qq cmake libevent-dev libglib2.0-dev libgmime-2.6-dev libluajit-5.1-dev liblua5.1-0-dev libpcre3-dev libsqlite3-dev libmagic-dev
+  - sudo apt-get install -qq cmake libevent-dev libglib2.0-dev libgmime-2.6-dev libluajit-5.1-dev liblua5.1-0-dev libpcre3-dev libsqlite3-dev libmagic-dev ragel make libssl-dev
 #  - echo $TRAVIS_OS_NAME
 #  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq ; fi
 #  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq cmake libevent-dev libglib2.0-dev libgmime-2.6-dev libluajit-5.1-dev libpcre3-dev libsqlite3-dev libhiredis-dev ; fi
index d4765ce79fb1fd17b53051ffc18d1ca1911e7ceb..b9accae3026ead1be1da84413ec448ee8834ce0f 100644 (file)
@@ -117,9 +117,15 @@ RAGEL_TARGET(ragel_smtp_received
        OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/smtp_received_parser.rl.c)
 ######################### LINK SECTION ###############################
 
-ADD_LIBRARY(rspamd-server STATIC ${RSPAMD_CRYPTOBOX} ${RSPAMD_UTIL} ${RSPAMD_LUA} ${RSPAMD_SERVER}
-               ${RSPAMD_STAT} ${RSPAMD_MIME}
-               ${CMAKE_CURRENT_BINARY_DIR}/modules.c ${PLUGINSSRC}
+ADD_LIBRARY(rspamd-server STATIC
+               ${RSPAMD_CRYPTOBOX}
+               ${RSPAMD_UTIL}
+               ${RSPAMD_LUA}
+               ${RSPAMD_SERVER}
+               ${RSPAMD_STAT}
+               ${RSPAMD_MIME}
+               ${CMAKE_CURRENT_BINARY_DIR}/modules.c
+               ${PLUGINSSRC}
                "${RAGEL_ragel_smtp_addr_OUTPUTS}"
                "${RAGEL_ragel_smtp_received_OUTPUTS}")
 TARGET_LINK_LIBRARIES(rspamd-server rspamd-http-parser)
@@ -130,6 +136,7 @@ TARGET_LINK_LIBRARIES(rspamd-server lcbtrie)
 IF (ENABLE_CLANG_PLUGIN MATCHES "ON")
        ADD_DEPENDENCIES(rspamd-server rspamd-clang)
 ENDIF()
+ADD_DEPENDENCIES(rspamd-server rspamd_lua_preprocess)
 
 ADD_EXECUTABLE(rspamd ${RSPAMDSRC} ${CMAKE_CURRENT_BINARY_DIR}/workers.c)
 SET_TARGET_PROPERTIES(rspamd PROPERTIES LINKER_LANGUAGE C)