2020-10-12 12:47:16 +02:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/common ${CMAKE_SOURCE_DIR}/unix/kasmvncpasswd)
|
2020-09-20 14:16:44 +02:00
|
|
|
|
|
|
|
set(NETWORK_SOURCES
|
2021-03-02 14:23:32 +01:00
|
|
|
GetAPIMessager.cxx
|
2021-12-06 11:07:32 +01:00
|
|
|
Blacklist.cxx
|
2022-07-26 12:38:14 +02:00
|
|
|
iceip.cxx
|
2020-09-20 14:16:44 +02:00
|
|
|
Socket.cxx
|
|
|
|
TcpSocket.cxx
|
2022-07-26 12:38:14 +02:00
|
|
|
Udp.cxx
|
2022-01-24 17:42:29 +01:00
|
|
|
cJSON.c
|
2022-01-17 18:10:24 +01:00
|
|
|
jsonescape.c
|
2020-09-20 14:16:44 +02:00
|
|
|
websocket.c
|
2020-10-12 12:47:16 +02:00
|
|
|
websockify.c
|
2022-07-26 12:38:14 +02:00
|
|
|
|
|
|
|
webudp/CRC32.cpp
|
|
|
|
webudp/WuArena.cpp
|
|
|
|
webudp/Wu.cpp
|
|
|
|
webudp/WuCrypto.cpp
|
|
|
|
webudp/WuHostEpoll.cpp
|
|
|
|
webudp/WuNetwork.cpp
|
|
|
|
webudp/WuPool.cpp
|
|
|
|
webudp/WuQueue.cpp
|
|
|
|
webudp/WuRng.cpp
|
|
|
|
webudp/WuSctp.cpp
|
|
|
|
webudp/WuSdp.cpp
|
|
|
|
webudp/WuString.cpp
|
|
|
|
webudp/WuStun.cpp
|
|
|
|
|
2020-10-12 12:47:16 +02:00
|
|
|
${CMAKE_SOURCE_DIR}/unix/kasmvncpasswd/kasmpasswd.c)
|
2020-09-20 14:16:44 +02:00
|
|
|
|
|
|
|
if(NOT WIN32)
|
|
|
|
set(NETWORK_SOURCES ${NETWORK_SOURCES} UnixSocket.cxx)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(network STATIC ${NETWORK_SOURCES})
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
target_link_libraries(network ws2_32)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(UNIX)
|
|
|
|
libtool_create_control_file(network)
|
|
|
|
endif()
|