summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-04-26 19:13:51 -0400
committerAdam <Adam@anope.org>2011-05-16 04:08:47 -0400
commite7887c1f013248274574ab8e3167f742ccb3d69b (patch)
treef9f5959512b7129711f03156320ae0e46cabaec3 /src/CMakeLists.txt
parent076ebafa1b4cc935c466c615b94eaac415af9a67 (diff)
Unmodularized the socket engine because its causing problems and really is unnecessary
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f606beff6..47d2e8efb 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -5,19 +5,29 @@ file(GLOB SRC_SRCS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.cpp")
if(WIN32)
append_to_list(SRC_SRCS win32/windows.cpp)
append_to_list(SRC_SRCS threadengines/threadengine_win32.cpp)
- append_to_list(SRC_SRCS socketengines/socketengine_win32.cpp)
+ append_to_list(SRC_SRCS socketengines/pipeengine_win32.cpp)
# If not using Windows, add the pthread threading engine to the list
else(WIN32)
append_to_list(SRC_SRCS threadengines/threadengine_pthread.cpp)
# If we have eventfd, use it
if(HAVE_EVENTFD AND HAVE_SYS_EVENTFD_H)
- append_to_list(SRC_SRCS socketengines/socketengine_eventfd.cpp)
+ append_to_list(SRC_SRCS socketengines/pipeengine_eventfd.cpp)
# Else fall back to pipe
else(HAVE_EVENTFD AND HAVE_SYS_EVENTFD_H)
- append_to_list(SRC_SRCS socketengines/socketengine_pipe.cpp)
+ append_to_list(SRC_SRCS socketengines/pipeengine_pipe.cpp)
endif(HAVE_EVENTFD AND HAVE_SYS_EVENTFD_H)
endif(WIN32)
+if(HAVE_EPOLL)
+ append_to_list(SRC_SRCS socketengines/socketengine_epoll.cpp)
+else(HAVE_EPOLL)
+ if(HAVE_POLL)
+ append_to_list(SRC_SRCS socketengines/socketengine_poll.cpp)
+ else(HAVE_POLL)
+ append_to_list(SRC_SRCS socketengines/socketengine_select.cpp)
+ endif(HAVE_POLL)
+endif(HAVE_EPOLL)
+
sort_list(SRC_SRCS)
# Set all the files to use C++ as well as set their compile flags (use the module-specific compile flags, though)