diff options
author | Adam <Adam@anope.org> | 2010-08-15 01:45:38 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-08-15 01:45:38 -0400 |
commit | a950ed8cabfeca55c909f02412b1788bd386dcff (patch) | |
tree | cfa9a16c2385176490ea849f6a4041ee9456c8eb /src/CMakeLists.txt | |
parent | 4d0a1aaabd861bb7cd1e378bd1e600af1d34d5d2 (diff) |
Rewrote the MySQL API to use threads. This acts similar to before, but is faster. Removed db_mysql_execute for now.
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4853591b7..2255b317c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -2,17 +2,21 @@ file(GLOB SRC_SRCS_CPP RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.cpp") set(SRC_SRCS ${SRC_SRCS_C} ${SRC_SRCS_CPP}) -# If using Windows, include windows.cpp, as it's Windows-specific +# If using Windows, add the windows.cpp, the win32 threading engine, and the socket engine to the list if(WIN32) append_to_list(SRC_SRCS win32/windows.cpp) -endif(WIN32) - -# If using Windows, add the win32 threading engine to the list -if(WIN32) append_to_list(SRC_SRCS threadengines/threadengine_win32.cpp) + append_to_list(SRC_SRCS socketengines/socketengine_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) + append_to_list(SRC_SRCS socketengines/socketengine_eventfd.cpp) + # Else fall back to pipe + else(HAVE_EVENTFD) + append_to_list(SRC_sRCS socketengines/socketengine_pipe.cpp) + endif(HAVE_EVENTFD) endif(WIN32) sort_list(SRC_SRCS) |