|
|
@@ -30,6 +30,7 @@ option(WITH_MBEDTLS "with mbedtls library" OFF)
|
|
|
option(WITH_KCP "with kcp" OFF)
|
|
|
|
|
|
if(WIN32)
|
|
|
+ option(WITH_WEPOLL "with wepoll -> use iocp" ON)
|
|
|
option(ENABLE_WINDUMP "Windows MiniDumpWriteDump" OFF)
|
|
|
option(BUILD_FOR_MT "build for /MT" OFF)
|
|
|
if(BUILD_FOR_MT)
|
|
|
@@ -174,6 +175,11 @@ endif()
|
|
|
# see Makefile
|
|
|
set(ALL_SRCDIRS . base ssl event event/kcp util cpputil evpp protocol http http/client http/server mqtt)
|
|
|
set(CORE_SRCDIRS . base ssl event)
|
|
|
+if(WIN32)
|
|
|
+ if(WITH_WEPOLL)
|
|
|
+ set(CORE_SRCDIRS ${CORE_SRCDIRS} event/wepoll)
|
|
|
+ endif()
|
|
|
+endif()
|
|
|
if(WITH_KCP)
|
|
|
set(CORE_SRCDIRS ${CORE_SRCDIRS} event/kcp)
|
|
|
endif()
|