Files
shadowsocks-libev/cmake/EventLoop.cmake
Max Lv 3efcb79010 Remove ss_event and the C resolver shim
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.
2026-10-15 00:34:31 +08:00

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()