Fixed compilation of fake_server tool

This commit is contained in:
Chairn 2022-03-21 10:53:38 +01:00
parent 21e64cbdcb
commit 88b51d6155

View file

@ -1764,9 +1764,9 @@ set(GAME_GENERATED_SHARED
src/game/generated/protocol7.h src/game/generated/protocol7.h
src/game/generated/protocolglue.h src/game/generated/protocolglue.h
) )
set_src(MASTERSRV_SHARED GLOB src/mastersrv set(MASTERSRV_SHARED
mastersrv.cpp src/mastersrv/mastersrv.cpp
mastersrv.h src/mastersrv/mastersrv.h
) )
set(DEPS ${DEP_JSON} ${DEP_MD5} ${ZLIB_DEP}) set(DEPS ${DEP_JSON} ${DEP_MD5} ${ZLIB_DEP})
@ -2287,7 +2287,7 @@ endif()
######################################################################## ########################################################################
if(TOOLS) if(TOOLS)
set_src(MASTERSRV_SRC GLOB src/mastersrv main_mastersrv.cpp) set(MASTERSRV_SRC src/mastersrv/main_mastersrv.cpp)
set_src(TWPING_SRC GLOB src/twping twping.cpp) set_src(TWPING_SRC GLOB src/twping twping.cpp)
set(TARGET_MASTERSRV mastersrv) set(TARGET_MASTERSRV mastersrv)
@ -2336,6 +2336,9 @@ if(TOOLS)
if(TOOL MATCHES "^config_") if(TOOL MATCHES "^config_")
list(APPEND EXTRA_TOOL_SRC "src/tools/config_common.h") list(APPEND EXTRA_TOOL_SRC "src/tools/config_common.h")
endif() endif()
if(TOOL MATCHES "^fake_server")
list(APPEND TOOL_DEPS $<TARGET_OBJECTS:mastersrv-shared>)
endif()
set(EXCLUDE_FROM_ALL) set(EXCLUDE_FROM_ALL)
if(DEV) if(DEV)
set(EXCLUDE_FROM_ALL EXCLUDE_FROM_ALL) set(EXCLUDE_FROM_ALL EXCLUDE_FROM_ALL)