build: do not force-include wepoll.h using a command line switch
This commit is contained in:
parent
017fa62aac
commit
7080d540e2
@ -69,10 +69,9 @@ set(DLL_TARGET "${HEADER_NAME}.dll")
|
|||||||
add_library(${DLL_TARGET} SHARED ${SOURCES_HEADER} ${SOURCES_SRC} ${SOURCES_SRC_REGULAR})
|
add_library(${DLL_TARGET} SHARED ${SOURCES_HEADER} ${SOURCES_SRC} ${SOURCES_SRC_REGULAR})
|
||||||
target_include_directories(${DLL_TARGET} PUBLIC include src/regular)
|
target_include_directories(${DLL_TARGET} PUBLIC include src/regular)
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
target_compile_options(${DLL_TARGET} PUBLIC "-FI${SOURCES_HEADER}")
|
|
||||||
target_compile_definitions(${DLL_TARGET} PUBLIC "-D${HEADER_NAME_UC}_EXPORT=__declspec(dllexport)" )
|
target_compile_definitions(${DLL_TARGET} PUBLIC "-D${HEADER_NAME_UC}_EXPORT=__declspec(dllexport)" )
|
||||||
else()
|
else()
|
||||||
target_compile_options(${DLL_TARGET} PUBLIC -include ${SOURCES_HEADER} -fvisibility=hidden)
|
target_compile_options(${DLL_TARGET} PUBLIC -fvisibility=hidden)
|
||||||
target_compile_definitions(${DLL_TARGET} PUBLIC "-D${HEADER_NAME_UC}_EXPORT=__attribute__((visibility(\"default\")))")
|
target_compile_definitions(${DLL_TARGET} PUBLIC "-D${HEADER_NAME_UC}_EXPORT=__attribute__((visibility(\"default\")))")
|
||||||
endif()
|
endif()
|
||||||
set_target_properties(${DLL_TARGET} PROPERTIES OUTPUT_NAME ${DLL_NAME})
|
set_target_properties(${DLL_TARGET} PROPERTIES OUTPUT_NAME ${DLL_NAME})
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
#include "port.h"
|
#include "port.h"
|
||||||
#include "thread-safe-tree.h"
|
#include "thread-safe-tree.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
#include "wepoll.h"
|
||||||
#include "win.h"
|
#include "win.h"
|
||||||
|
|
||||||
static ts_tree_t epoll__handle_tree;
|
static ts_tree_t epoll__handle_tree;
|
||||||
|
|||||||
@ -9,6 +9,7 @@
|
|||||||
#include "poll-group.h"
|
#include "poll-group.h"
|
||||||
#include "port.h"
|
#include "port.h"
|
||||||
#include "sock.h"
|
#include "sock.h"
|
||||||
|
#include "wepoll.h"
|
||||||
#include "ws.h"
|
#include "ws.h"
|
||||||
|
|
||||||
static const uint32_t SOCK__KNOWN_EPOLL_EVENTS =
|
static const uint32_t SOCK__KNOWN_EPOLL_EVENTS =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user