mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 02:43:44 +00:00
Master hashes each reported file on a worker, polls size and mtime every world_watch_seconds (a change must hold still for one poll), and replaces stale instances with the instance migration (Mythran shift, or seamless with world_reload_seamless=1); empty ones are stopped. Also on WORLD_RELOAD. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
767 B
CMake
24 lines
767 B
CMake
set(DMASTERSERVER_SOURCES
|
|
"CDClientReloader.cpp"
|
|
"WorldReloader.cpp"
|
|
"InstanceManager.cpp"
|
|
"MigrationCoordinator.cpp"
|
|
"LiveUpdateCoordinator.cpp"
|
|
"Start.cpp"
|
|
)
|
|
|
|
add_library(dMasterServer ${DMASTERSERVER_SOURCES})
|
|
add_executable(MasterServer "MasterServer.cpp")
|
|
target_compile_definitions(MasterServer PRIVATE PROJECT_VERSION="\"${PROJECT_VERSION}\"")
|
|
target_include_directories(dMasterServer PUBLIC "."
|
|
"${PROJECT_SOURCE_DIR}/dZoneManager" # InstanceManager.h uses dZMCommon.h
|
|
${PROJECT_SOURCE_DIR}/dServer/ # BinaryPathFinder.h
|
|
)
|
|
|
|
target_link_libraries(dMasterServer ${COMMON_LIBRARIES})
|
|
target_link_libraries(MasterServer ${COMMON_LIBRARIES} bcrypt dMasterServer dServer)
|
|
|
|
if(WIN32)
|
|
add_dependencies(MasterServer WorldServer AuthServer ChatServer)
|
|
endif()
|