mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
Master copies the fdb at startup, polls its size and mtime every cdclient_watch_seconds, builds the new copy and CDServer.sqlite on a worker, switches itself, writes the pointer file, tells every world and keeps the last two copies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
746 B
CMake
23 lines
746 B
CMake
set(DMASTERSERVER_SOURCES
|
|
"CDClientReloader.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()
|