Move all filters to subdirs of their own
The name of the subdir is the same library name in the filter's CMakeLists.txt file.
This commit is contained in:
@ -1,66 +1,10 @@
|
|||||||
find_package(RabbitMQ)
|
add_subdirectory(ccrfilter)
|
||||||
if(RABBITMQ_FOUND)
|
|
||||||
include_directories(${RABBITMQ_HEADERS})
|
|
||||||
add_library(mqfilter SHARED mqfilter.c)
|
|
||||||
target_link_libraries(mqfilter maxscale-common ${RABBITMQ_LIBRARIES})
|
|
||||||
add_dependencies(mqfilter pcre2)
|
|
||||||
set_target_properties(mqfilter PROPERTIES VERSION "1.0.2")
|
|
||||||
install_module(mqfilter core)
|
|
||||||
else()
|
|
||||||
message(WARNING "Could not find librabbitmq, the mqfilter will not be built.")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_library(regexfilter SHARED regexfilter.c)
|
|
||||||
target_link_libraries(regexfilter maxscale-common)
|
|
||||||
add_dependencies(regexfilter pcre2)
|
|
||||||
set_target_properties(regexfilter PROPERTIES VERSION "1.1.0")
|
|
||||||
install_module(regexfilter core)
|
|
||||||
|
|
||||||
add_library(testfilter SHARED testfilter.c)
|
|
||||||
target_link_libraries(testfilter maxscale-common)
|
|
||||||
set_target_properties(testfilter PROPERTIES VERSION "1.0.0")
|
|
||||||
install_module(testfilter core)
|
|
||||||
|
|
||||||
add_library(gatekeeper SHARED gatekeeper.c)
|
|
||||||
target_link_libraries(gatekeeper maxscale-common)
|
|
||||||
set_target_properties(gatekeeper PROPERTIES VERSION "1.0.0")
|
|
||||||
install_module(gatekeeper experimental)
|
|
||||||
|
|
||||||
add_library(qlafilter SHARED qlafilter.c)
|
|
||||||
target_link_libraries(qlafilter maxscale-common)
|
|
||||||
set_target_properties(qlafilter PROPERTIES VERSION "1.1.1")
|
|
||||||
install_module(qlafilter core)
|
|
||||||
|
|
||||||
add_library(tee SHARED tee.c)
|
|
||||||
target_link_libraries(tee maxscale-common)
|
|
||||||
set_target_properties(tee PROPERTIES VERSION "1.0.0")
|
|
||||||
install_module(tee core)
|
|
||||||
|
|
||||||
add_library(topfilter SHARED topfilter.c)
|
|
||||||
target_link_libraries(topfilter maxscale-common)
|
|
||||||
set_target_properties(topfilter PROPERTIES VERSION "1.0.1")
|
|
||||||
install_module(topfilter core)
|
|
||||||
|
|
||||||
find_package(Lua)
|
|
||||||
if(LUA_FOUND)
|
|
||||||
include_directories(${LUA_INCLUDE_DIR})
|
|
||||||
add_library(luafilter SHARED luafilter.c)
|
|
||||||
set_target_properties(luafilter PROPERTIES VERSION "1.0.0")
|
|
||||||
target_link_libraries(luafilter maxscale-common ${LUA_LIBRARIES})
|
|
||||||
install_module(luafilter experimental)
|
|
||||||
else()
|
|
||||||
message(STATUS "Lua was not found, luafilter will not be built.")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_library(namedserverfilter SHARED namedserverfilter.c)
|
|
||||||
target_link_libraries(namedserverfilter maxscale-common)
|
|
||||||
set_target_properties(namedserverfilter PROPERTIES VERSION "1.1.0")
|
|
||||||
install_module(namedserverfilter core)
|
|
||||||
|
|
||||||
add_library(ccrfilter SHARED ccrfilter.c)
|
|
||||||
target_link_libraries(ccrfilter maxscale-common)
|
|
||||||
set_target_properties(ccrfilter PROPERTIES VERSION "1.0.0")
|
|
||||||
install_module(ccrfilter experimental)
|
|
||||||
|
|
||||||
add_subdirectory(hint)
|
|
||||||
add_subdirectory(dbfwfilter)
|
add_subdirectory(dbfwfilter)
|
||||||
|
add_subdirectory(gatekeeper)
|
||||||
|
add_subdirectory(hintfilter)
|
||||||
|
add_subdirectory(luafilter)
|
||||||
|
add_subdirectory(mqfilter)
|
||||||
|
add_subdirectory(namedserverfilter)
|
||||||
|
add_subdirectory(qlafilter)
|
||||||
|
add_subdirectory(regexfilter)
|
||||||
|
add_subdirectory(testfilter)
|
||||||
|
4
server/modules/filter/ccrfilter/CMakeLists.txt
Normal file
4
server/modules/filter/ccrfilter/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
add_library(ccrfilter SHARED ccrfilter.c)
|
||||||
|
target_link_libraries(ccrfilter maxscale-common)
|
||||||
|
set_target_properties(ccrfilter PROPERTIES VERSION "1.0.0")
|
||||||
|
install_module(ccrfilter experimental)
|
4
server/modules/filter/gatekeeper/CMakeLists.txt
Normal file
4
server/modules/filter/gatekeeper/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
add_library(gatekeeper SHARED gatekeeper.c)
|
||||||
|
target_link_libraries(gatekeeper maxscale-common)
|
||||||
|
set_target_properties(gatekeeper PROPERTIES VERSION "1.0.0")
|
||||||
|
install_module(gatekeeper experimental)
|
10
server/modules/filter/luafilter/CMakeLists.txt
Normal file
10
server/modules/filter/luafilter/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
find_package(Lua)
|
||||||
|
if(LUA_FOUND)
|
||||||
|
include_directories(${LUA_INCLUDE_DIR})
|
||||||
|
add_library(luafilter SHARED luafilter.c)
|
||||||
|
set_target_properties(luafilter PROPERTIES VERSION "1.0.0")
|
||||||
|
target_link_libraries(luafilter maxscale-common ${LUA_LIBRARIES})
|
||||||
|
install_module(luafilter experimental)
|
||||||
|
else()
|
||||||
|
message(STATUS "Lua was not found, luafilter will not be built.")
|
||||||
|
endif()
|
11
server/modules/filter/mqfilter/CMakeLists.txt
Normal file
11
server/modules/filter/mqfilter/CMakeLists.txt
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
find_package(RabbitMQ)
|
||||||
|
if(RABBITMQ_FOUND)
|
||||||
|
include_directories(${RABBITMQ_HEADERS})
|
||||||
|
add_library(mqfilter SHARED mqfilter.c)
|
||||||
|
target_link_libraries(mqfilter maxscale-common ${RABBITMQ_LIBRARIES})
|
||||||
|
add_dependencies(mqfilter pcre2)
|
||||||
|
set_target_properties(mqfilter PROPERTIES VERSION "1.0.2")
|
||||||
|
install_module(mqfilter core)
|
||||||
|
else()
|
||||||
|
message(WARNING "Could not find librabbitmq, the mqfilter will not be built.")
|
||||||
|
endif()
|
4
server/modules/filter/namedserverfilter/CMakeLists.txt
Normal file
4
server/modules/filter/namedserverfilter/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
add_library(namedserverfilter SHARED namedserverfilter.c)
|
||||||
|
target_link_libraries(namedserverfilter maxscale-common)
|
||||||
|
set_target_properties(namedserverfilter PROPERTIES VERSION "1.1.0")
|
||||||
|
install_module(namedserverfilter core)
|
4
server/modules/filter/qlafilter/CMakeLists.txt
Normal file
4
server/modules/filter/qlafilter/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
add_library(qlafilter SHARED qlafilter.c)
|
||||||
|
target_link_libraries(qlafilter maxscale-common)
|
||||||
|
set_target_properties(qlafilter PROPERTIES VERSION "1.1.1")
|
||||||
|
install_module(qlafilter core)
|
5
server/modules/filter/regexfilter/CMakeLists.txt
Normal file
5
server/modules/filter/regexfilter/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
add_library(regexfilter SHARED regexfilter.c)
|
||||||
|
target_link_libraries(regexfilter maxscale-common)
|
||||||
|
add_dependencies(regexfilter pcre2)
|
||||||
|
set_target_properties(regexfilter PROPERTIES VERSION "1.1.0")
|
||||||
|
install_module(regexfilter core)
|
4
server/modules/filter/tee/CMakeLists.txt
Normal file
4
server/modules/filter/tee/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
add_library(tee SHARED tee.c)
|
||||||
|
target_link_libraries(tee maxscale-common)
|
||||||
|
set_target_properties(tee PROPERTIES VERSION "1.0.0")
|
||||||
|
install_module(tee core)
|
4
server/modules/filter/testfilter/CMakeLists.txt
Normal file
4
server/modules/filter/testfilter/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
add_library(testfilter SHARED testfilter.c)
|
||||||
|
target_link_libraries(testfilter maxscale-common)
|
||||||
|
set_target_properties(testfilter PROPERTIES VERSION "1.0.0")
|
||||||
|
install_module(testfilter core)
|
4
server/modules/filter/topfilter/CMakeLists.txt
Normal file
4
server/modules/filter/topfilter/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
add_library(topfilter SHARED topfilter.c)
|
||||||
|
target_link_libraries(topfilter maxscale-common)
|
||||||
|
set_target_properties(topfilter PROPERTIES VERSION "1.0.1")
|
||||||
|
install_module(topfilter core)
|
Reference in New Issue
Block a user