mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 18:24:45 -05:00
ce2f1b845f
Otherwise, we end up propagating those dependencies into targets that link against that library, which creates unnecessary link-time dependencies. Also included are changes to readd now missing dependencies to tools that actually need them.
24 lines
712 B
CMake
24 lines
712 B
CMake
serenity_component(
|
|
WebSocket
|
|
TARGETS WebSocketServer
|
|
)
|
|
|
|
compile_ipc(WebSocketServer.ipc WebSocketServerEndpoint.h)
|
|
compile_ipc(WebSocketClient.ipc WebSocketClientEndpoint.h)
|
|
|
|
set(SOURCES
|
|
ConnectionFromClient.cpp
|
|
main.cpp
|
|
)
|
|
|
|
set(GENERATED_SOURCES
|
|
WebSocketClientEndpoint.h
|
|
WebSocketServerEndpoint.h
|
|
)
|
|
|
|
# Note: We use a target name of WebSocketServer here to deconflict with the
|
|
# Lagom namespaced target name for LibWebSocket, Lagom::WebSocket.
|
|
# The server binary name is still WebSocket.
|
|
serenity_bin(WebSocketServer)
|
|
set_target_properties(WebSocketServer PROPERTIES OUTPUT_NAME WebSocket)
|
|
target_link_libraries(WebSocketServer PRIVATE LibCore LibIPC LibWebSocket LibMain LibTLS)
|