mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-21 14:33:55 +00:00
Each program's loop, signals, plugin watcher and stats timer now go through ss::event::Program (src/event/program.hpp), held on main()'s stack; ss-manager uses it too. ss-server resolves the manager address with the relay resolver. With no C caller left, ss_event.cpp/.h, resolv.cpp/.h and their C tests go; test_resolver_cpp.cpp replaces the resolver tests against the same delayed local DNS server, and ss_ev is now an interface target over libuv.
8 lines
358 B
CMake
8 lines
358 B
CMake
# The event loop is libuv, used through the C++ layer in src/event.
|
|
add_library(ss_ev INTERFACE)
|
|
target_include_directories(ss_ev INTERFACE ${PROJECT_SOURCE_DIR}/src)
|
|
target_link_libraries(ss_ev INTERFACE ss_uv Threads::Threads ${SS_MATH_LIBRARY} ${CMAKE_DL_LIBS})
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|
target_link_libraries(ss_ev INTERFACE rt)
|
|
endif()
|