2021-06-15 13:16:32 +00:00
|
|
|
serenity_component(
|
|
|
|
WebSocket
|
2022-07-07 14:39:56 +00:00
|
|
|
TARGETS WebSocketServer
|
2021-06-15 13:16:32 +00:00
|
|
|
)
|
|
|
|
|
2021-04-23 23:46:49 +00:00
|
|
|
compile_ipc(WebSocketServer.ipc WebSocketServerEndpoint.h)
|
|
|
|
compile_ipc(WebSocketClient.ipc WebSocketClientEndpoint.h)
|
|
|
|
|
|
|
|
set(SOURCES
|
2022-02-25 10:18:30 +00:00
|
|
|
ConnectionFromClient.cpp
|
2021-04-23 23:46:49 +00:00
|
|
|
main.cpp
|
2022-10-12 12:16:13 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(GENERATED_SOURCES
|
2021-04-23 23:46:49 +00:00
|
|
|
WebSocketClientEndpoint.h
|
|
|
|
WebSocketServerEndpoint.h
|
|
|
|
)
|
|
|
|
|
2022-07-07 14:39:56 +00:00
|
|
|
# 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)
|
2022-10-21 19:43:56 +00:00
|
|
|
target_link_libraries(WebSocketServer PRIVATE LibCore LibIPC LibWebSocket LibMain LibTLS)
|