mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
This commit replaces the standard memalloc system with that of the game. This means we can share the same allocated memory objects between the game and SDK without having to use 'MemAllocSingleton()' and manually call the constructors/destructors. This also means we can create ConVar's and ConCommands in the global scope, and a bunch more cool stuff. The explanation in 'r5dev\loader\loader.cpp' documents the new loading system.
38 lines
750 B
CMake
38 lines
750 B
CMake
cmake_minimum_required( VERSION 3.16 )
|
|
add_module( "shared_lib" "loader" "vpc" ${FOLDER_CONTEXT} TRUE TRUE )
|
|
|
|
start_sources()
|
|
|
|
add_sources( SOURCE_GROUP "Private"
|
|
"loader.cpp"
|
|
"loader.h"
|
|
)
|
|
|
|
target_link_libraries( ${PROJECT_NAME} PRIVATE
|
|
"advapi32.lib"
|
|
"bcrypt.lib"
|
|
"crypt32.lib"
|
|
"dbghelp.lib"
|
|
"wldap32.lib"
|
|
"ws2_32.lib"
|
|
"Rpcrt4.lib"
|
|
|
|
"vpc"
|
|
"tier0"
|
|
|
|
# TODO: these have to be removed, currently
|
|
# linked as it would otherwise throw linker
|
|
# errors due to undefined external symbols.
|
|
"libdetours"
|
|
"liblzham"
|
|
"libprotobuf"
|
|
"libspdlog"
|
|
"SigCache_Pb"
|
|
)
|
|
|
|
end_sources()
|
|
|
|
target_link_options( ${PROJECT_NAME} PRIVATE
|
|
"/STACK:8000000" # Match game executable stack reserve size
|
|
)
|