mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
RCON lacked encryption, added AES-CTR encryption on RCON frames. Slightly adjusted protocol to take this into account (sending nonces, encrypted data itself, etc).
63 lines
1.7 KiB
CMake
63 lines
1.7 KiB
CMake
cmake_minimum_required( VERSION 3.16 )
|
|
add_module( "exe" "netconsole" "vpc" ${FOLDER_CONTEXT} TRUE TRUE )
|
|
|
|
start_sources()
|
|
|
|
add_sources( SOURCE_GROUP "Core"
|
|
"netconsole.cpp"
|
|
"netconsole.h"
|
|
"${ENGINE_SOURCE_DIR}/core/logdef.cpp"
|
|
"${ENGINE_SOURCE_DIR}/core/logdef.h"
|
|
"${ENGINE_SOURCE_DIR}/core/logger.cpp"
|
|
"${ENGINE_SOURCE_DIR}/core/logger.h"
|
|
"${ENGINE_SOURCE_DIR}/core/termutil.cpp"
|
|
"${ENGINE_SOURCE_DIR}/core/termutil.h"
|
|
"${ENGINE_SOURCE_DIR}/tier0/plat_time.cpp"
|
|
)
|
|
|
|
add_sources( SOURCE_GROUP "Engine"
|
|
"${ENGINE_SOURCE_DIR}/engine/net.cpp"
|
|
"${ENGINE_SOURCE_DIR}/engine/net.h"
|
|
"${ENGINE_SOURCE_DIR}/engine/shared/base_rcon.cpp"
|
|
"${ENGINE_SOURCE_DIR}/engine/shared/base_rcon.h"
|
|
"${ENGINE_SOURCE_DIR}/engine/shared/shared_rcon.cpp"
|
|
"${ENGINE_SOURCE_DIR}/engine/shared/shared_rcon.h"
|
|
)
|
|
|
|
add_sources( SOURCE_GROUP "Windows"
|
|
"${ENGINE_SOURCE_DIR}/windows/console.cpp"
|
|
"${ENGINE_SOURCE_DIR}/windows/console.h"
|
|
)
|
|
|
|
end_sources( "${BUILD_OUTPUT_DIR}/bin/" )
|
|
|
|
set_target_properties( ${PROJECT_NAME} PROPERTIES OUTPUT_NAME
|
|
"netcon32"
|
|
)
|
|
set_target_properties( ${PROJECT_NAME} PROPERTIES
|
|
VS_DEBUGGER_COMMAND "netcon32.exe"
|
|
VS_DEBUGGER_COMMAND_ARGUMENTS "-ansicolor"
|
|
VS_DEBUGGER_WORKING_DIRECTORY "$(ProjectDir)../../../${BUILD_OUTPUT_DIR}/bin/"
|
|
)
|
|
target_compile_definitions( ${PROJECT_NAME} PRIVATE
|
|
"_TOOLS"
|
|
)
|
|
target_link_libraries( ${PROJECT_NAME} PRIVATE
|
|
"tier0"
|
|
"tier1"
|
|
"tier2"
|
|
"libprotobuf"
|
|
"libspdlog"
|
|
"libmbedcrypto"
|
|
"libmbedtls"
|
|
"libmbedx509"
|
|
"NetCon_Pb"
|
|
"Rpcrt4.lib"
|
|
"ws2_32.lib"
|
|
"bcrypt.lib"
|
|
"crypt32.lib"
|
|
)
|
|
target_include_directories( ${PROJECT_NAME} PRIVATE
|
|
"${THIRDPARTY_SOURCE_DIR}/mbedtls/include"
|
|
)
|