mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-14 11:19:07 +00:00
Fixed: ryzom_client_patcher compilation
This commit is contained in:
parent
8cd6548990
commit
8a25bac7d3
6 changed files with 27 additions and 29 deletions
|
@ -34,6 +34,7 @@ IF(COMMAND cmake_policy)
|
||||||
ENDIF(COMMAND cmake_policy)
|
ENDIF(COMMAND cmake_policy)
|
||||||
|
|
||||||
INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/nel.cmake)
|
INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/nel.cmake)
|
||||||
|
INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/ConfigureChecks.cmake)
|
||||||
INCLUDE(${CMAKE_ROOT}/Modules/Documentation.cmake OPTIONAL)
|
INCLUDE(${CMAKE_ROOT}/Modules/Documentation.cmake OPTIONAL)
|
||||||
|
|
||||||
# Force out of source builds.
|
# Force out of source builds.
|
||||||
|
@ -112,8 +113,6 @@ ENDIF(FINAL_VERSION)
|
||||||
IF(WITH_QT)
|
IF(WITH_QT)
|
||||||
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtXml REQUIRED)
|
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtXml REQUIRED)
|
||||||
ENDIF(WITH_QT)
|
ENDIF(WITH_QT)
|
||||||
ADD_DEFINITIONS(-DHAVE_CONFIG_H)
|
|
||||||
|
|
||||||
|
|
||||||
IF(WITH_NEL)
|
IF(WITH_NEL)
|
||||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/nel/include)
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/nel/include)
|
||||||
|
|
|
@ -49,7 +49,6 @@ MACRO(NL_DEFAULT_PROPS name label)
|
||||||
ENDIF(${type} STREQUAL SHARED_LIBRARY)
|
ENDIF(${type} STREQUAL SHARED_LIBRARY)
|
||||||
ENDMACRO(NL_DEFAULT_PROPS)
|
ENDMACRO(NL_DEFAULT_PROPS)
|
||||||
|
|
||||||
|
|
||||||
###
|
###
|
||||||
# Adds the target suffix on Windows.
|
# Adds the target suffix on Windows.
|
||||||
# Argument: name - the library's target name.
|
# Argument: name - the library's target name.
|
||||||
|
|
|
@ -98,12 +98,9 @@ IF(WIN32)
|
||||||
SET(WINSOCK2_LIB ws2_32.lib)
|
SET(WINSOCK2_LIB ws2_32.lib)
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
|
||||||
ADD_SUBDIRECTORY(include)
|
NL_CONFIGURE_CHECKS()
|
||||||
# config.h configuration and use by projects
|
|
||||||
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_BINARY_DIR}/config.h)
|
|
||||||
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
|
|
||||||
ADD_DEFINITIONS(-DHAVE_CONFIG_H)
|
|
||||||
|
|
||||||
|
ADD_SUBDIRECTORY(include)
|
||||||
ADD_SUBDIRECTORY(src)
|
ADD_SUBDIRECTORY(src)
|
||||||
|
|
||||||
IF(WITH_NEL_SAMPLES)
|
IF(WITH_NEL_SAMPLES)
|
||||||
|
|
|
@ -20,6 +20,16 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common )
|
||||||
|
|
||||||
NL_CONFIGURE_CHECKS()
|
NL_CONFIGURE_CHECKS()
|
||||||
|
|
||||||
|
IF(WITH_STATIC)
|
||||||
|
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
|
||||||
|
SET(CURL_DEFINITIONS -DCURL_STATICLIB)
|
||||||
|
SET(LIBXML2_DEFINITIONS ${LIBXML2_DEFINITIONS} -DLIBXML_STATIC)
|
||||||
|
ENDIF(WITH_STATIC)
|
||||||
|
|
||||||
|
IF(NOT WIN32)
|
||||||
|
SET(EXPAT_LIBRARY expat)
|
||||||
|
ENDIF(NOT WIN32)
|
||||||
|
|
||||||
ADD_SUBDIRECTORY(common)
|
ADD_SUBDIRECTORY(common)
|
||||||
|
|
||||||
IF(WITH_RYZOM_CLIENT)
|
IF(WITH_RYZOM_CLIENT)
|
||||||
|
|
|
@ -65,7 +65,7 @@ INCLUDE_DIRECTORIES(
|
||||||
${LUABIND_INCLUDE_DIR}
|
${LUABIND_INCLUDE_DIR}
|
||||||
${LIBWWW_INCLUDE_DIR}
|
${LIBWWW_INCLUDE_DIR}
|
||||||
${CURL_INCLUDE_DIRS}
|
${CURL_INCLUDE_DIRS}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR})
|
)
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(ryzom_client ${PLATFORM_LINKFLAGS}
|
TARGET_LINK_LIBRARIES(ryzom_client ${PLATFORM_LINKFLAGS}
|
||||||
nelmisc
|
nelmisc
|
||||||
|
@ -78,23 +78,19 @@ TARGET_LINK_LIBRARIES(ryzom_client ${PLATFORM_LINKFLAGS}
|
||||||
ryzom_clientsheets
|
ryzom_clientsheets
|
||||||
ryzom_gameshare
|
ryzom_gameshare
|
||||||
nelpacs
|
nelpacs
|
||||||
|
${LIBXML2_LIBRARIES}
|
||||||
${LUA_LIBRARIES}
|
${LUA_LIBRARIES}
|
||||||
${LUABIND_LIBRARY}
|
${LUABIND_LIBRARY}
|
||||||
${CURL_LIBRARIES}
|
${CURL_LIBRARIES}
|
||||||
${OPENSSL_LIBRARIES}
|
|
||||||
${LIBWWW_LIBRARIES}
|
${LIBWWW_LIBRARIES}
|
||||||
${SEVENZIP_LIBRARY}
|
${SEVENZIP_LIBRARY}
|
||||||
expat) # TODO: find expat cleanly using a find script
|
${EXPAT_LIBRARY}) # TODO: find expat cleanly using a find script
|
||||||
|
|
||||||
IF(NOT APPLE AND NOT WIN32)
|
IF(NOT APPLE AND NOT WIN32)
|
||||||
TARGET_LINK_LIBRARIES(ryzom_client ${X11_LIBRARIES})
|
TARGET_LINK_LIBRARIES(ryzom_client ${X11_LIBRARIES})
|
||||||
ENDIF(NOT APPLE AND NOT WIN32)
|
ENDIF(NOT APPLE AND NOT WIN32)
|
||||||
|
|
||||||
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} ${CURL_DEFINITIONS})
|
||||||
|
|
||||||
IF(WITH_STATIC)
|
|
||||||
ADD_DEFINITIONS(-DCURL_STATICLIB -DLIBXML_STATIC)
|
|
||||||
ENDIF(WITH_STATIC)
|
|
||||||
|
|
||||||
NL_DEFAULT_PROPS(ryzom_client "Ryzom, Client: Ryzom Core Client")
|
NL_DEFAULT_PROPS(ryzom_client "Ryzom, Client: Ryzom Core Client")
|
||||||
NL_ADD_RUNTIME_FLAGS(ryzom_client)
|
NL_ADD_RUNTIME_FLAGS(ryzom_client)
|
||||||
|
|
|
@ -1,18 +1,15 @@
|
||||||
FILE(GLOB SRC *.cpp *.h
|
FILE(GLOB SRC main.cpp
|
||||||
${CMAKE_SOURCE_DIR}/client/src/client_cfg.cpp
|
${CMAKE_SOURCE_DIR}/ryzom/client/src/client_cfg.cpp
|
||||||
${CMAKE_SOURCE_DIR}/client/src/login_patch.cpp
|
${CMAKE_SOURCE_DIR}/ryzom/client/src/login_patch.cpp
|
||||||
${CMAKE_SOURCE_DIR}/client/src/login_xdelta.cpp
|
${CMAKE_SOURCE_DIR}/ryzom/client/src/login_xdelta.cpp
|
||||||
|
${CMAKE_SOURCE_DIR}/ryzom/client/src/stdpch.cpp
|
||||||
|
${CMAKE_SOURCE_DIR}/ryzom/client/src/stdpch.h
|
||||||
)
|
)
|
||||||
|
|
||||||
SET(SEVENZIP_LIBRARY "ryzom_sevenzip")
|
|
||||||
|
|
||||||
ADD_EXECUTABLE(ryzom_client_patcher ${SRC})
|
ADD_EXECUTABLE(ryzom_client_patcher ${SRC})
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(
|
INCLUDE_DIRECTORIES(
|
||||||
${CMAKE_BINARY_DIR}
|
|
||||||
${LIBXML2_INCLUDE_DIR}
|
|
||||||
${CURL_INCLUDE_DIRS}
|
${CURL_INCLUDE_DIRS}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}
|
|
||||||
${CMAKE_SOURCE_DIR}/ryzom/client/src
|
${CMAKE_SOURCE_DIR}/ryzom/client/src
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -20,10 +17,10 @@ TARGET_LINK_LIBRARIES(ryzom_client_patcher ${PLATFORM_LINKFLAGS}
|
||||||
nelmisc
|
nelmisc
|
||||||
nelnet
|
nelnet
|
||||||
ryzom_gameshare
|
ryzom_gameshare
|
||||||
${CURL_LIBRARIES}
|
ryzom_sevenzip
|
||||||
${SEVENZIP_LIBRARY})
|
${CURL_LIBRARIES})
|
||||||
|
|
||||||
ADD_DEFINITIONS(-DRZ_NO_CLIENT -DNL_USE_SEVENZIP)
|
ADD_DEFINITIONS(${CURL_DEFINITIONS} -DRZ_NO_CLIENT -DNL_USE_SEVENZIP)
|
||||||
|
|
||||||
NL_DEFAULT_PROPS(ryzom_client_patcher "Ryzom, Tools: Ryzom Client Patcher")
|
NL_DEFAULT_PROPS(ryzom_client_patcher "Ryzom, Tools: Ryzom Client Patcher")
|
||||||
NL_ADD_RUNTIME_FLAGS(ryzom_client_patcher)
|
NL_ADD_RUNTIME_FLAGS(ryzom_client_patcher)
|
||||||
|
|
Loading…
Reference in a new issue