Update: Fixing some warnings and some more CMake work.

This commit is contained in:
Matt Raykowski 2010-05-20 15:40:16 -05:00
parent f0ecd029f2
commit 526effaaca
8 changed files with 21 additions and 16 deletions

View file

@ -106,6 +106,10 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common )
NL_SETUP_BUILD_FLAGS() NL_SETUP_BUILD_FLAGS()
IF(FINAL_VERSION)
ADD_DEFINITIONS(-DFINAL_VERSION=1)
ENDIF(FINAL_VERSION)
ADD_SUBDIRECTORY(common) ADD_SUBDIRECTORY(common)
IF(WITH_CLIENT) IF(WITH_CLIENT)

View file

@ -25,7 +25,8 @@ MACRO(NL_SETUP_DEFAULT_OPTIONS)
OPTION(WITH_CLIENT "Build Ryzom Core Client" ON ) OPTION(WITH_CLIENT "Build Ryzom Core Client" ON )
OPTION(WITH_TOOLS "Build Ryzom Core Tools" ON ) OPTION(WITH_TOOLS "Build Ryzom Core Tools" ON )
OPTION(WITH_SERVER "Build Ryzom Core Services" ON ) OPTION(WITH_SERVER "Build Ryzom Core Services" ON )
OPTION(WITH_LUA51 "Build Ryzom Core using Lua51" OFF) OPTION(WITH_LUA51 "Build Ryzom Core using Lua51" ON )
OPTION(FINAL_VERSION "Build in Final Version mode" ON )
### ###
# Features # Features

View file

@ -3,11 +3,8 @@ FILE(GLOB SRC *.cpp *.h)
# Filter out the source files not actually compiled. # Filter out the source files not actually compiled.
LIST(REMOVE_ITEM SRC ${CMAKE_CURRENT_SOURCE_DIR}/Backup\ 1\ of\ admin_modules.cpp) LIST(REMOVE_ITEM SRC ${CMAKE_CURRENT_SOURCE_DIR}/Backup\ 1\ of\ admin_modules.cpp)
IF(WIN32)
ADD_LIBRARY(admin_modules STATIC ${SRC}) 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}) INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NEL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
TARGET_LINK_LIBRARIES(admin_modules ${NELMISC_LIBRARY}) TARGET_LINK_LIBRARIES(admin_modules ${NELMISC_LIBRARY})

View file

@ -117,9 +117,9 @@ namespace ADMIN
CAdminExecutorServiceClient() CAdminExecutorServiceClient()
: _DontUseShardOrders(false), : _DontUseShardOrders(false),
_ProcessUsedMemory(0),
_LastStateReport(0), _LastStateReport(0),
_LastStatusStringReport(0) _LastStatusStringReport(0),
_ProcessUsedMemory(0)
{ {
CAdminExecutorServiceClientSkel::init(this); CAdminExecutorServiceClientSkel::init(this);
@ -186,7 +186,7 @@ namespace ADMIN
// loop for an optionnal 'dontUseShardOrders' flag in init params // loop for an optionnal 'dontUseShardOrders' flag in init params
const TParsedCommandLine *duso = pcl.getParam("dontUseShardOrders"); const TParsedCommandLine *duso = pcl.getParam("dontUseShardOrders");
if (duso != NULL) if (duso != NULL)
_DontUseShardOrders = (duso->ParamValue == "true" | duso->ParamName == "1"); _DontUseShardOrders = (duso->ParamValue == "true" || duso->ParamName == "1");
return true; return true;
} }

View file

@ -23,6 +23,7 @@ ADD_EXECUTABLE(ai_service ${SRC})
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/server/src ${LIBXML2_INCLUDE_DIR} ${MYSQL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ${NEL_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/server/src ${LIBXML2_INCLUDE_DIR} ${MYSQL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ${NEL_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(ai_service admin_modules TARGET_LINK_LIBRARIES(ai_service admin_modules
game_share game_share
server_share
ai_share ai_share
${PLATFORM_LINKFLAGS} ${PLATFORM_LINKFLAGS}
${LIBXML2_LIBRARIES} ${LIBXML2_LIBRARIES}

View file

@ -1,7 +1,8 @@
FILE(GLOB SRC *.cpp *.h) FILE(GLOB SRC *.cpp *.h)
# Filter out the source files not actually compiled. # Filter out the source files not actually compiled.
#LIST(REMOVE_ITEM SRC ${CMAKE_CURRENT_SOURCE_DIR}/Backup\ 1\ of\ admin_modules.cpp) LIST(REMOVE_ITEM SRC ${CMAKE_CURRENT_SOURCE_DIR}/world_map.cpp
${CMAKE_CURRENT_SOURCE_DIR}/world_map.h)
ADD_LIBRARY(ai_share STATIC ${SRC}) ADD_LIBRARY(ai_share STATIC ${SRC})

View file

@ -3232,6 +3232,8 @@ static void parsePrimSquadTemplate(const IPrimitive *prim, const std::string &ma
case AITypeSquadTemplateVariant: case AITypeSquadTemplateVariant:
parsePrimSquadTemplateVariant(nextTreeNode(aliasNode,child), child, name); parsePrimSquadTemplateVariant(nextTreeNode(aliasNode,child), child, name);
break; break;
default:
break;
} }
} }
} }

View file

@ -3,14 +3,13 @@ FILE(GLOB SRC *.cpp *.h)
# Filter out the source files not actually compiled. # Filter out the source files not actually compiled.
#LIST(REMOVE_ITEM SRC ${CMAKE_CURRENT_SOURCE_DIR}/Backup\ 1\ of\ admin_modules.cpp) #LIST(REMOVE_ITEM SRC ${CMAKE_CURRENT_SOURCE_DIR}/Backup\ 1\ of\ admin_modules.cpp)
IF(WIN32) ADD_LIBRARY(server_share STATIC ${SRC})
ADD_LIBRARY(server_share STATIC ${SRC})
ELSE(WIN32)
ADD_LIBRARY(server_share SHARED ${SRC})
ENDIF(WIN32)
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MYSQL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ${NEL_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MYSQL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ${NEL_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(server_share ${NELMISC_LIBRARY} ${NELPACS_LIBRARY} ${MYSQL_LIBRARIES} ${ZLIB_LIBRARIES}) TARGET_LINK_LIBRARIES(server_share ${NELMISC_LIBRARY}
${NELPACS_LIBRARY}
${MYSQL_LIBRARIES}
${ZLIB_LIBRARIES})
SET_TARGET_PROPERTIES(server_share PROPERTIES VERSION ${NL_VERSION}) SET_TARGET_PROPERTIES(server_share PROPERTIES VERSION ${NL_VERSION})
IF(WIN32) IF(WIN32)