mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
The KeyValues class belongs here. Also reimplemented most loading methods for KeyValues, and adjusted the VPK building code to account for it. Pointers to the engine's implementation of KeyValues have been moved to a separate header ('keyvalues_iface.h'), as this allows external tools code to utilize the standalone KeyValues class implementation. Playlist utilities are completely separated from the KeyValues header; these have nothing to do with KeyValues other than manipulating a global KeyValues object for the playlists, and thus have been named as such and moved to rtech/playlists.
53 lines
1.1 KiB
CMake
53 lines
1.1 KiB
CMake
cmake_minimum_required( VERSION 3.16 )
|
|
add_module( "lib" "tier1" "vpc" ${FOLDER_CONTEXT} TRUE TRUE )
|
|
|
|
start_sources()
|
|
|
|
add_sources( SOURCE_GROUP "Network"
|
|
"NetAdr.cpp"
|
|
"NetKey.cpp"
|
|
)
|
|
|
|
add_sources( SOURCE_GROUP "Utility"
|
|
"bitbuf.cpp"
|
|
"generichash.cpp"
|
|
"lzss.cpp"
|
|
"splitstring.cpp"
|
|
"stringpool.cpp"
|
|
"strtools.cpp"
|
|
"utlbuffer.cpp"
|
|
"utlstring.cpp"
|
|
"characterset.cpp"
|
|
"mempool.cpp"
|
|
"memstack.cpp"
|
|
"exprevaluator.cpp"
|
|
"keyvalues.cpp"
|
|
)
|
|
|
|
add_sources( SOURCE_GROUP "Private"
|
|
"cmd.cpp"
|
|
"commandbuffer.cpp"
|
|
"convar.cpp"
|
|
"cvar.cpp"
|
|
"interface.cpp"
|
|
"keyvalues_iface.cpp"
|
|
"kvleaktrace.h"
|
|
"kverrorstack.h"
|
|
"kvtokenreader.h"
|
|
)
|
|
|
|
file( GLOB TIER1_PUBLIC_HEADERS
|
|
"${ENGINE_SOURCE_DIR}/public/tier1/*"
|
|
)
|
|
add_sources( SOURCE_GROUP "Public"
|
|
"${TIER1_PUBLIC_HEADERS}"
|
|
"${ENGINE_SOURCE_DIR}/public/iconcommand.h"
|
|
"${ENGINE_SOURCE_DIR}/public/iconvar.h"
|
|
"${ENGINE_SOURCE_DIR}/public/icvar.h"
|
|
)
|
|
|
|
end_sources()
|
|
|
|
target_compile_definitions( ${PROJECT_NAME} PRIVATE "MEM_DEBUG_CLASSNAME" )
|
|
target_include_directories( ${PROJECT_NAME} PRIVATE "${ENGINE_SOURCE_DIR}/tier0/" )
|