r5sdk/r5dev/tier2/CMakeLists.txt
Kawe Mazidjatari e02f8f36fe Tier2: create modular WebSocket system
This code was actually part of the LiveAPI system, but there were many opportunities to make this particular code modular, so it has been decoupled and moved to Tier2. The LiveAPI system will soon use this class instead. The implementation has also been improved by adding dedicated routines for updating socket parameters, disconnecting/reconnecting and destroying sockets.

This commit also removes legacy workaround code in UtlVector which was used for before we had early enough access to the game's memalloc singleton. This code was no longer used.

This commit also implements the CUtlStringList class, which is now used for the new websocket class to split each socket connection up by a comma delimiter.
2024-04-05 18:31:58 +02:00

33 lines
707 B
CMake

cmake_minimum_required( VERSION 3.16 )
add_module( "lib" "tier2" "vpc" ${FOLDER_CONTEXT} TRUE TRUE )
start_sources()
add_sources( SOURCE_GROUP "Utility"
"curlutils.cpp"
"fileutils.cpp"
"meshutils.cpp"
"renderutils.cpp"
"socketcreator.cpp"
"websocket.cpp"
)
file( GLOB TIER2_PUBLIC_HEADERS
"${ENGINE_SOURCE_DIR}/public/tier2/*"
)
add_sources( SOURCE_GROUP "Public"
"${TIER2_PUBLIC_HEADERS}"
)
end_sources()
target_include_directories( ${PROJECT_NAME} PRIVATE
"${ENGINE_SOURCE_DIR}/tier0/"
"${ENGINE_SOURCE_DIR}/tier1/"
)
target_include_directories( ${PROJECT_NAME} PRIVATE
"${THIRDPARTY_SOURCE_DIR}/dirtysdk/include/"
"${THIRDPARTY_SOURCE_DIR}/ea/"
)