]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Move xxhash to contrib.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 18 Feb 2014 18:14:53 +0000 (18:14 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 18 Feb 2014 18:14:53 +0000 (18:14 +0000)
CMakeLists.txt
contrib/xxhash/CMakeLists.txt [new file with mode: 0644]
contrib/xxhash/xxhash.c [moved from src/ucl/src/xxhash.c with 100% similarity]
contrib/xxhash/xxhash.h [moved from src/ucl/src/xxhash.h with 100% similarity]
debian/copyright
src/CMakeLists.txt
src/ucl/CMakeLists.txt

index 1fcce10f16a988c88dd4bb4143ba88f15d4ccf0a..42ca9f4b356b1206b7c00e8b70a0e4780e2152a9 100644 (file)
@@ -851,7 +851,8 @@ INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/src"
                                        "${CMAKE_SOURCE_DIR}/src/ucl/include"
                                        "${CMAKE_SOURCE_DIR}/contrib/uthash"
                                        "${CMAKE_SOURCE_DIR}/contrib/http-parser"
-                                       "${CMAKE_SOURCE_DIR}/contrib/libottery")
+                                       "${CMAKE_SOURCE_DIR}/contrib/libottery"
+                                       "${CMAKE_SOURCE_DIR}/contrib/xxhash")
 
 SET(RSPAMDSRC  src/modules.c
                                src/controller.c
@@ -887,13 +888,13 @@ IF(NOT HIREDIS_FOUND)
     INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/contrib/hiredis")
 ENDIF(NOT HIREDIS_FOUND)
 
-
+ADD_SUBDIRECTORY(contrib/xxhash)
+ADD_SUBDIRECTORY(contrib/http-parser)
+ADD_SUBDIRECTORY(contrib/libottery)
 ADD_SUBDIRECTORY(src/lua)
 ADD_SUBDIRECTORY(src/json)
 ADD_SUBDIRECTORY(src/cdb)
 ADD_SUBDIRECTORY(src/ucl)
-ADD_SUBDIRECTORY(contrib/http-parser)
-ADD_SUBDIRECTORY(contrib/libottery)
 ADD_SUBDIRECTORY(src)
 ADD_SUBDIRECTORY(src/client)
 
diff --git a/contrib/xxhash/CMakeLists.txt b/contrib/xxhash/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2cc0234
--- /dev/null
@@ -0,0 +1,3 @@
+SET(XXHASHSRC xxhash.c)
+
+ADD_LIBRARY(xxhash STATIC ${XXHASHSRC})
\ No newline at end of file
similarity index 100%
rename from src/ucl/src/xxhash.c
rename to contrib/xxhash/xxhash.c
similarity index 100%
rename from src/ucl/src/xxhash.h
rename to contrib/xxhash/xxhash.h
index 2444ed3f14548681da0e144916d22a2932280559..c7c185af19d5c37db668ce84683ff6107ca585e0 100644 (file)
@@ -42,7 +42,7 @@ Files: contrib/libottery/*
 Copyright: Nick Mathewson
 License: CC0
 
-Files: src/ucl/src/xxhash.*
+Files: contrib/xxhash/xxhash.*
 Copyright: 2012-2013, Yann Collet.
 License: BSD-2-Clause
 
index 220825336ab825256355a50880e28d41001298c7..358b130b0873f14bceefd963a68ba437cb0dea5d 100644 (file)
@@ -70,6 +70,7 @@ TARGET_LINK_LIBRARIES(rspamd-util rspamd-ucl)
 TARGET_LINK_LIBRARIES(rspamd-util rspamd-ottery)
 TARGET_LINK_LIBRARIES(rspamd-util rspamd-http-parser)
 TARGET_LINK_LIBRARIES(rspamd-util event)
+TARGET_LINK_LIBRARIES(rspamd-util xxhash)
 
 IF(NOT DEBIAN_BUILD)
 SET_TARGET_PROPERTIES(rspamd-util PROPERTIES VERSION ${RSPAMD_VERSION})
index cbceff4db7c637a1994ab6ed43a0a723172ec614..e1df6890e01e42dbd9b86e5ee827731e72f45983 100644 (file)
@@ -1,13 +1,13 @@
 SET(UCLSRC            src/ucl_util.c
                       src/ucl_parser.c
                       src/ucl_emitter.c
-                      src/ucl_hash.c
-                      src/xxhash.c)
+                      src/ucl_hash.c)
 
 ADD_LIBRARY(rspamd-ucl ${LINK_TYPE} ${UCLSRC})
 SET_TARGET_PROPERTIES(rspamd-ucl PROPERTIES VERSION ${RSPAMD_VERSION})
 SET_TARGET_PROPERTIES(rspamd-ucl PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB")
 
+TARGET_LINK_LIBRARIES(rspamd-ucl xxhash)
 IF(HAVE_FETCH_H)
     TARGET_LINK_LIBRARIES(rspamd-ucl fetch)
 ELSE(HAVE_FETCH_H)