Update: #842 Starting to add services to CMake, added admin_modules and frontend_service.

This commit is contained in:
Matt Raykowski 2010-05-12 13:21:55 -05:00
parent 6901aaa0e4
commit a3bc0ea702
5 changed files with 94 additions and 0 deletions

View file

@ -116,3 +116,6 @@ IF(WITH_TOOLS)
ADD_SUBDIRECTORY(tools)
ENDIF(WITH_TOOLS)
IF(WITH_SERVER)
ADD_SUBDIRECTORY(server)
ENDIF(WITH_SERVER)

View file

@ -0,0 +1 @@
ADD_SUBDIRECTORY(src)

View file

@ -0,0 +1,38 @@
ADD_SUBDIRECTORY(admin_modules)
ADD_SUBDIRECTORY(frontend_service)
#ags_test
#ai_data_service
#ai_service
#ai_share
#backup_service
#dynamic_scenario_service
#entities_game_service
#entity_view_service
#frontend_service
#gameplay_module_lib
#general_utilities_service
#gpm_service
#input_output_service
#log_analyser_service
#logger_service
#mail_forum_service
#mirror_service
#monitor_service
#patchman_service
#pd_lib
#pd_reference_builder
#pd_support_service
#persistant_data_service
#ryzom_admin_service
#ryzom_naming_service
#ryzom_welcome_service
#sabrina
#server_share
#session_browser_server
#shard_unifier_service
#simulation_service
#testing_tool_service
#tick_service

View file

@ -0,0 +1,27 @@
FILE(GLOB SRC *.cpp *.h)
# Filter out the source files not actually compiled.
LIST(REMOVE_ITEM SRC ${CMAKE_CURRENT_SOURCE_DIR}/Backup\ 1\ of\ admin_modules.cpp)
IF(WIN32)
ADD_LIBRARY(admin_modules STATIC ${SRC})
ELSE(WIN32)
ADD_LIBRARY(admin_modules SHARED ${SRC})
ENDIF(WIN32)
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NEL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
TARGET_LINK_LIBRARIES(admin_modules ${NELMISC_LIBRARY})
SET_TARGET_PROPERTIES(admin_modules PROPERTIES VERSION ${NL_VERSION})
IF(WIN32)
SET_TARGET_PROPERTIES(admin_modules
PROJECT_LABEL "Library: Admin Modules"
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
LINK_FLAGS_DEBUG "/NODEFAULTLIB:libc;libcmt;libcmtd;msvcrt"
LINK_FLAGS_RELEASE "/NODEFAULTLIB:libc;libcmt;libcmtd;msvcrtd")
ENDIF(WIN32)
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
INSTALL(TARGETS admin_modules LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)

View file

@ -0,0 +1,25 @@
FILE(GLOB SRC *.cpp *.h)
LIST(REMOVE_ITEM SRC ${CMAKE_CURRENT_SOURCE_DIR}/pair_selector.cpp
${CMAKE_CURRENT_SOURCE_DIR}/pair_selector.h
${CMAKE_CURRENT_SOURCE_DIR}/prioritizer.cpp
${CMAKE_CURRENT_SOURCE_DIR}/prioritizer.h
${CMAKE_CURRENT_SOURCE_DIR}/property_dispatcher.cpp
${CMAKE_CURRENT_SOURCE_DIR}/property_dispatcher.h)
ADD_EXECUTABLE(frontend_service ${SRC})
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MYSQL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ${NEL_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(frontend_service admin_modules game_share ${PLATFORM_LINKFLAGS} ${LIBXML2_LIBRARIES} ${MYSQL_LIBRARIES} ${ZLIB_LIBRARIES} ${NELMISC_LIBRARY} ${NELNET_LIBRARY} ${NELGEORGES_LIBRARY} ${NELLIGO_LIBRARY})
IF(WIN32)
SET_TARGET_PROPERTIES(frontend_service PROPERTIES
LINK_FLAGS "/NODEFAULTLIB:libcmt /SUBSYSTEM:WINDOWS"
PROJECT_LABEL "Services: Frontend Service")
ENDIF(WIN32)
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
INSTALL(TARGETS frontend_service RUNTIME DESTINATION sbin COMPONENT services)