mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-26 02:20:54 +00:00
Fixed: libwww GNU Regex, libcurl OpenSSL dependencies under Windows
This commit is contained in:
parent
2f0e1ceb27
commit
a54335e454
3 changed files with 31 additions and 2 deletions
|
@ -84,12 +84,33 @@ FIND_WWW_LIBRARY(LIBWWWXML_LIBRARY wwwxml)
|
||||||
FIND_WWW_LIBRARY(LIBWWWZIP_LIBRARY wwwzip)
|
FIND_WWW_LIBRARY(LIBWWWZIP_LIBRARY wwwzip)
|
||||||
|
|
||||||
# combine all the libraries into one variable
|
# combine all the libraries into one variable
|
||||||
SET(LIBWWW_LIBRARY
|
SET(LIBWWW_LIBRARIES
|
||||||
${LIBWWWAPP_LIBRARY} ${LIBWWWCORE_LIBRARY} ${LIBWWWDIR_LIBRARY} ${LIBWWWHTML_LIBRARY}
|
${LIBWWWAPP_LIBRARY} ${LIBWWWCORE_LIBRARY} ${LIBWWWDIR_LIBRARY} ${LIBWWWHTML_LIBRARY}
|
||||||
${LIBWWWHTTP_LIBRARY} ${LIBWWWINIT_LIBRARY} ${LIBWWWMIME_LIBRARY} ${LIBWWWMUX_LIBRARY}
|
${LIBWWWHTTP_LIBRARY} ${LIBWWWINIT_LIBRARY} ${LIBWWWMIME_LIBRARY} ${LIBWWWMUX_LIBRARY}
|
||||||
${LIBWWWSTREAM_LIBRARY} ${LIBWWWCACHE_LIBRARY} ${LIBWWWFILE_LIBRARY} ${LIBWWWTRANS_LIBRARY} ${LIBWWWUTILS_LIBRARY}
|
${LIBWWWSTREAM_LIBRARY} ${LIBWWWCACHE_LIBRARY} ${LIBWWWFILE_LIBRARY} ${LIBWWWTRANS_LIBRARY} ${LIBWWWUTILS_LIBRARY}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Windows libwww version needs GNU Regex
|
||||||
|
IF(WIN32)
|
||||||
|
FIND_PATH(LIBWWW_REGEX_INCLUDE_DIR
|
||||||
|
regex.h
|
||||||
|
PATHS
|
||||||
|
/usr/local/include
|
||||||
|
/usr/include
|
||||||
|
/sw/include
|
||||||
|
/opt/local/include
|
||||||
|
/opt/csw/include
|
||||||
|
/opt/include
|
||||||
|
)
|
||||||
|
|
||||||
|
# combine both include directories into one variable
|
||||||
|
IF(LIBWWW_REGEX_INCLUDE_DIR)
|
||||||
|
SET(LIBWWW_INCLUDE_DIR ${LIBWWW_INCLUDE_DIR} ${LIBWWW_REGEX_INCLUDE_DIR})
|
||||||
|
FIND_WWW_LIBRARY(LIBREGEX_LIBRARY gnu_regex)
|
||||||
|
SET(LIBWWW_LIBRARIES ${LIBWWW_LIBRARIES} ${LIBREGEX_LIBRARY})
|
||||||
|
ENDIF(LIBWWW_REGEX_INCLUDE_DIR)
|
||||||
|
ENDIF(WIN32)
|
||||||
|
|
||||||
IF(LIBWWW_LIBRARY AND LIBWWW_INCLUDE_DIR)
|
IF(LIBWWW_LIBRARY AND LIBWWW_INCLUDE_DIR)
|
||||||
SET(LIBWWW_FOUND "YES")
|
SET(LIBWWW_FOUND "YES")
|
||||||
IF(NOT LIBWWW_FIND_QUIETLY)
|
IF(NOT LIBWWW_FIND_QUIETLY)
|
||||||
|
|
|
@ -8,6 +8,7 @@ ELSE(WITH_LUA51)
|
||||||
ENDIF(WITH_LUA51)
|
ENDIF(WITH_LUA51)
|
||||||
FIND_PACKAGE(Luabind REQUIRED)
|
FIND_PACKAGE(Luabind REQUIRED)
|
||||||
FIND_PACKAGE(CURL REQUIRED)
|
FIND_PACKAGE(CURL REQUIRED)
|
||||||
|
FIND_PACKAGE(OpenSSL REQUIRED)
|
||||||
FIND_PACKAGE(Libwww)
|
FIND_PACKAGE(Libwww)
|
||||||
FIND_PACKAGE(ZLIB)
|
FIND_PACKAGE(ZLIB)
|
||||||
IF(NOT WIN32 AND NOT APPLE)
|
IF(NOT WIN32 AND NOT APPLE)
|
||||||
|
@ -17,6 +18,8 @@ ENDIF(NOT WIN32 AND NOT APPLE)
|
||||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common/src )
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common/src )
|
||||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common )
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common )
|
||||||
|
|
||||||
|
NL_CONFIGURE_CHECKS()
|
||||||
|
|
||||||
ADD_SUBDIRECTORY(common)
|
ADD_SUBDIRECTORY(common)
|
||||||
|
|
||||||
IF(WITH_RYZOM_CLIENT)
|
IF(WITH_RYZOM_CLIENT)
|
||||||
|
|
|
@ -81,7 +81,8 @@ TARGET_LINK_LIBRARIES(ryzom_client ${PLATFORM_LINKFLAGS}
|
||||||
${LUA_LIBRARIES}
|
${LUA_LIBRARIES}
|
||||||
${LUABIND_LIBRARY}
|
${LUABIND_LIBRARY}
|
||||||
${CURL_LIBRARIES}
|
${CURL_LIBRARIES}
|
||||||
${LIBWWW_LIBRARY}
|
${OPENSSL_LIBRARIES}
|
||||||
|
${LIBWWW_LIBRARIES}
|
||||||
${SEVENZIP_LIBRARY}
|
${SEVENZIP_LIBRARY}
|
||||||
expat) # TODO: find expat cleanly using a find script
|
expat) # TODO: find expat cleanly using a find script
|
||||||
|
|
||||||
|
@ -91,6 +92,10 @@ ENDIF(NOT APPLE AND NOT WIN32)
|
||||||
|
|
||||||
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
ADD_DEFINITIONS(${LIBXML2_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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue