Chanegd: #842 Added more server services and tools to the build.

This commit is contained in:
Matt Raykowski 2010-06-08 10:06:58 -05:00
parent 999d7e22ef
commit 6465fa2596
15 changed files with 143 additions and 19 deletions

View file

@ -1,29 +1,30 @@
# Supporting modules and libraries.
ADD_SUBDIRECTORY(admin_modules) ADD_SUBDIRECTORY(admin_modules)
ADD_SUBDIRECTORY(server_share) ADD_SUBDIRECTORY(server_share)
ADD_SUBDIRECTORY(ai_share) ADD_SUBDIRECTORY(ai_share)
ADD_SUBDIRECTORY(gameplay_module_lib) ADD_SUBDIRECTORY(gameplay_module_lib)
ADD_SUBDIRECTORY(pd_lib) ADD_SUBDIRECTORY(pd_lib)
ADD_SUBDIRECTORY(frontend_service) # Ryzom Services
ADD_SUBDIRECTORY(entities_game_service)
ADD_SUBDIRECTORY(ai_service) ADD_SUBDIRECTORY(ai_service)
ADD_SUBDIRECTORY(backup_service) ADD_SUBDIRECTORY(backup_service)
ADD_SUBDIRECTORY(dynamic_scenario_service) ADD_SUBDIRECTORY(dynamic_scenario_service)
ADD_SUBDIRECTORY(entities_game_service)
ADD_SUBDIRECTORY(frontend_service)
ADD_SUBDIRECTORY(gpm_service)
ADD_SUBDIRECTORY(input_output_service)
# Deprecated, no longer used. # Deprecated, no longer used.
#ADD_SUBDIRECTORY(ags_test)
#ADD_SUBDIRECTORY(ai_data_service) #ADD_SUBDIRECTORY(ai_data_service)
#ADD_SUBDIRECTORY(entity_view_service) #ADD_SUBDIRECTORY(entity_view_service)
#ADD_SUBDIRECTORY(general_utilities_service) #ADD_SUBDIRECTORY(general_utilities_service)
#ADD_SUBDIRECTORY(patchman_service)
#ags_test
#
#
#
#
#gpm_service #gpm_service
#input_output_service #
#log_analyser_service #log_analyser_service
#logger_service #logger_service
#mail_forum_service #mail_forum_service

View file

@ -0,0 +1,24 @@
FILE(GLOB SRC *.cpp *.h)
ADD_EXECUTABLE(gpm_service ${SRC})
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/server/src ${LIBXML2_INCLUDE_DIR} ${MYSQL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ${NEL_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(gpm_service admin_modules
game_share
server_share
${PLATFORM_LINKFLAGS}
${LIBXML2_LIBRARIES}
${NELMISC_LIBRARY}
${NELNET_LIBRARY}
${NELPACS_LIBRARY}
${NELGEORGES_LIBRARY}
${NELLIGO_LIBRARY})
IF(WIN32)
SET_TARGET_PROPERTIES(gpm_service PROPERTIES
LINK_FLAGS "/NODEFAULTLIB:libcmt /SUBSYSTEM:WINDOWS"
PROJECT_LABEL "Services: Global Position Manager Service (GPMS)")
ENDIF(WIN32)
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
INSTALL(TARGETS gpm_service RUNTIME DESTINATION sbin COMPONENT services)

View file

@ -0,0 +1,35 @@
FILE(GLOB SRC *.cpp *.h)
LIST(REMOVE_ITEM SRC ${CMAKE_CURRENT_SOURCE_DIR}/bot_chat_manager.cpp
${CMAKE_CURRENT_SOURCE_DIR}/bot_chat_manager.h
${CMAKE_CURRENT_SOURCE_DIR}/ios_chat_log.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ios_chat_log.h
${CMAKE_CURRENT_SOURCE_DIR}/ios_chat_log_inline.h
${CMAKE_CURRENT_SOURCE_DIR}/ios_pd.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ios_pd.h
${CMAKE_CURRENT_SOURCE_DIR}/ios_pd_inline.h)
ADD_EXECUTABLE(ios_service ${SRC})
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/server/src ${LIBXML2_INCLUDE_DIR} ${MYSQL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ${NEL_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(ios_service admin_modules
pd_lib
game_share
server_share
${PLATFORM_LINKFLAGS}
${LIBXML2_LIBRARIES}
${NELMISC_LIBRARY}
${NELNET_LIBRARY}
${NELPACS_LIBRARY}
${NELGEORGES_LIBRARY}
${NELLIGO_LIBRARY})
IF(WIN32)
SET_TARGET_PROPERTIES(ios_service PROPERTIES
LINK_FLAGS "/NODEFAULTLIB:libcmt /SUBSYSTEM:WINDOWS"
PROJECT_LABEL "Services: Input Ouput Service (IOS)")
ENDIF(WIN32)
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
INSTALL(TARGETS ios_service RUNTIME DESTINATION sbin COMPONENT services)

View file

@ -0,0 +1,31 @@
FILE(GLOB SRC *.cpp *.h)
LIST(REMOVE_ITEM SRC ${CMAKE_CURRENT_SOURCE_DIR}/Backup\ 1\ of\ file_repository.h
${CMAKE_CURRENT_SOURCE_DIR}/rr_module_itf.cpp
${CMAKE_CURRENT_SOURCE_DIR}/rr_module_itf.h)
ADD_EXECUTABLE(patchman_service ${SRC})
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/server/src ${LIBXML2_INCLUDE_DIR} ${MYSQL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ${NEL_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(patchman_service admin_modules
game_share
server_share
${PLATFORM_LINKFLAGS}
${LIBXML2_LIBRARIES}
${MYSQL_LIBRARIES}
${ZLIB_LIBRARIES}
${NELMISC_LIBRARY}
${NELNET_LIBRARY}
${NELPACS_LIBRARY}
${NELGEORGES_LIBRARY}
${NELLIGO_LIBRARY})
IF(WIN32)
SET_TARGET_PROPERTIES(patchman_service PROPERTIES
LINK_FLAGS "/NODEFAULTLIB:libcmt /SUBSYSTEM:WINDOWS"
PROJECT_LABEL "Services: Patch Manager (PMS)")
ENDIF(WIN32)
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
INSTALL(TARGETS patchman_service RUNTIME DESTINATION sbin COMPONENT services)

View file

@ -23,7 +23,7 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// game share // game share
#include "game_share/deployment_configuration.h" //#include "game_share/deployment_configuration.h"
// local // local
#include "module_admin_itf.h" #include "module_admin_itf.h"

View file

@ -23,7 +23,7 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// game share // game share
#include "game_share/deployment_configuration.h" //#include "game_share/deployment_configuration.h"
// local // local
#include "module_admin_itf.h" #include "module_admin_itf.h"

View file

@ -45,7 +45,7 @@
#include "nel/net/module_builder_parts.h" #include "nel/net/module_builder_parts.h"
// game share // game share
#include "game_share/deployment_configuration.h" //#include "game_share/deployment_configuration.h"
// local // local
#include "module_admin_itf.h" #include "module_admin_itf.h"

View file

@ -14,5 +14,5 @@
// You should have received a copy of the GNU Affero General Public License // You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "game_share/mysql_wrapper.cpp" #include "server_share/mysql_wrapper.cpp"

View file

@ -36,11 +36,14 @@
using namespace std; using namespace std;
using namespace NLMISC; using namespace NLMISC;
//------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------
// constants & utilities // constants & utilities
//------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------
// From spa_server_patch_applier.cpp
extern void writeVersionFile(const NLMISC::CSString& fileName, uint32 version);
extern uint32 readVersionFile(const NLMISC::CSString& fileName);
NLMISC::CSString getRepositoryIndexFileName(const NLMISC::CSString& repositoryName) NLMISC::CSString getRepositoryIndexFileName(const NLMISC::CSString& repositoryName)
{ {
return "repository_"+repositoryName+".idx"; return "repository_"+repositoryName+".idx";
@ -380,7 +383,7 @@ CRepository::const_iterator CRepository::end() const
return _Files.end(); return _Files.end();
} }
void CRepository::fillShortList(TFileInfoVector &files) const void CRepository::fillShortList(PATCHMAN::TFileInfoVector &files) const
{ {
// start by clearing out any previous contents in the files vector // start by clearing out any previous contents in the files vector
files.clear(); files.clear();

View file

@ -110,7 +110,7 @@ public:
iterator end(); iterator end();
const_iterator end() const; const_iterator end() const;
void fillShortList(TFileInfoVector &files) const; void fillShortList(PATCHMAN::TFileInfoVector &files) const;
private: private:

View file

@ -11,11 +11,12 @@ ADD_SUBDIRECTORY(pdr_util)
ADD_SUBDIRECTORY(stats_scan) ADD_SUBDIRECTORY(stats_scan)
ADD_SUBDIRECTORY(sheets_packer) ADD_SUBDIRECTORY(sheets_packer)
ADD_SUBDIRECTORY(server)
# Old stuff that doesn't compile anymore. # Old stuff that doesn't compile anymore.
#ADD_SUBDIRECTORY(occ2huff) #ADD_SUBDIRECTORY(occ2huff)
#ADD_SUBDIRECTORY(phrase_generator) #ADD_SUBDIRECTORY(phrase_generator)
#ADD_SUBDIRECTORY(sheet_random_generator) #ADD_SUBDIRECTORY(sheet_random_generator)
#- this relies on something in the client
# Not building these # Not building these
#xml_packer - this is in NeL tools. #xml_packer - this is in NeL tools.

View file

@ -6,7 +6,7 @@ LIST(REMOVE_ITEM SRC
ADD_EXECUTABLE(assoc_mem ${SRC}) ADD_EXECUTABLE(assoc_mem ${SRC})
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NELMISC_INCLUDE_DIRS}) INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NEL_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(assoc_mem ${PLATFORM_LINKFLAGS} ${LIBXML2_LIBRARIES} ${NELMISC_LIBRARY}) TARGET_LINK_LIBRARIES(assoc_mem ${PLATFORM_LINKFLAGS} ${LIBXML2_LIBRARIES} ${NELMISC_LIBRARY})
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS}) ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})

View file

@ -0,0 +1,11 @@
# Deprecated, no longer used
#ADD_SUBDIRECTORY(ai_build_wmap)
# Not done yet.
#admin
#brick_param_extractor
#build_spell_sheet
#build_world_packed_col
#CMakeLists.txt
#sql
#www

View file

@ -0,0 +1,17 @@
FILE(GLOB SRC *.cpp *.h)
ADD_EXECUTABLE(ai_build_wmap ${SRC})
INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/server/src
${CMAKE_SOURCE_DIR}/common/src
${LIBXML2_INCLUDE_DIR}
${NEL_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(ai_build_wmap game_share
server_share
ai_share
${PLATFORM_LINKFLAGS}
${LIBXML2_LIBRARIES}
${NELMISC_LIBRARY})
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
INSTALL(TARGETS ai_build_wmap RUNTIME DESTINATION bin COMPONENT tools)

View file

@ -24,9 +24,10 @@
#include "nel/misc/command.h" #include "nel/misc/command.h"
#include "nel/misc/path.h" #include "nel/misc/path.h"
#include "nel/misc/sstring.h" #include "nel/misc/sstring.h"
#include "nel/misc/file.h"
// Game share // Game share
#include "game_share/bmp4image.h" #include "server_share/bmp4image.h"
// AI share // AI share
#include "ai_share/world_map.h" #include "ai_share/world_map.h"