mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-20 16:08:44 +00:00
changed #20 - moved the libwww package discovery and fixed include paths in library project.
This commit is contained in:
parent
8d54b6f77d
commit
6e309fee7a
9 changed files with 28 additions and 22 deletions
|
@ -135,6 +135,10 @@ IF(WITH_NEL)
|
||||||
FIND_PACKAGE(CppTest)
|
FIND_PACKAGE(CppTest)
|
||||||
ENDIF(WITH_NEL_TESTS)
|
ENDIF(WITH_NEL_TESTS)
|
||||||
|
|
||||||
|
IF(WITH_GUI)
|
||||||
|
FIND_PACKAGE(Libwww REQUIRED)
|
||||||
|
ENDIF(WITH_GUI)
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/nel/include ${LIBXML2_INCLUDE_DIR})
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/nel/include ${LIBXML2_INCLUDE_DIR})
|
||||||
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
||||||
ADD_SUBDIRECTORY(nel)
|
ADD_SUBDIRECTORY(nel)
|
||||||
|
|
|
@ -31,7 +31,7 @@ typedef std::map<std::string, std::string> TStyle;
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#include "libwww/WWWInit.h"
|
#include "WWWInit.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace NLGUI
|
namespace NLGUI
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#include "libwww/WWWInit.h"
|
#include "WWWInit.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace NLGUI
|
namespace NLGUI
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#define LIBWWW_NEL_STREAM_H
|
#define LIBWWW_NEL_STREAM_H
|
||||||
|
|
||||||
|
|
||||||
#include "libwww/HTProt.h"
|
#include "HTProt.h"
|
||||||
|
|
||||||
extern "C" HTProtCallback HTLoadNeLFile;
|
extern "C" HTProtCallback HTLoadNeLFile;
|
||||||
extern "C" PUBLIC HTInputStream * HTNeLReader_new (HTHost * host, HTChannel * ch, void * param, int mode);
|
extern "C" PUBLIC HTInputStream * HTNeLReader_new (HTHost * host, HTChannel * ch, void * param, int mode);
|
||||||
|
|
|
@ -12,7 +12,7 @@ SET_TARGET_PROPERTIES(nelgui PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
||||||
NL_DEFAULT_PROPS(nelgui "NeL, Library: NeL GUI")
|
NL_DEFAULT_PROPS(nelgui "NeL, Library: NeL GUI")
|
||||||
NL_ADD_RUNTIME_FLAGS(nelgui)
|
NL_ADD_RUNTIME_FLAGS(nelgui)
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES( ${LUA_INCLUDE_DIR} )
|
INCLUDE_DIRECTORIES( ${LUA_INCLUDE_DIR} ${LIBWWW_INCLUDE_DIR})
|
||||||
|
|
||||||
NL_ADD_LIB_SUFFIX(nelgui)
|
NL_ADD_LIB_SUFFIX(nelgui)
|
||||||
|
|
||||||
|
|
|
@ -23,9 +23,9 @@
|
||||||
// LibWWW
|
// LibWWW
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#include "libwww/WWWLib.h" /* Global Library Include file */
|
#include "WWWLib.h" /* Global Library Include file */
|
||||||
#include "libwww/WWWApp.h"
|
#include "WWWApp.h"
|
||||||
#include "libwww/WWWInit.h"
|
#include "WWWInit.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
|
@ -21,9 +21,9 @@
|
||||||
// LibWWW
|
// LibWWW
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#include "libwww/WWWLib.h" /* Global Library Include file */
|
#include "WWWLib.h" /* Global Library Include file */
|
||||||
#include "libwww/WWWApp.h"
|
#include "WWWApp.h"
|
||||||
#include "libwww/WWWInit.h"
|
#include "WWWInit.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "nel/gui/group_html.h"
|
#include "nel/gui/group_html.h"
|
||||||
|
|
|
@ -21,16 +21,16 @@ extern "C"
|
||||||
{
|
{
|
||||||
|
|
||||||
/* Library Includes */
|
/* Library Includes */
|
||||||
#include "libwww/wwwsys.h"
|
#include "wwwsys.h"
|
||||||
#include "libwww/WWWUtil.h"
|
#include "WWWUtil.h"
|
||||||
#include "libwww/WWWCore.h"
|
#include "WWWCore.h"
|
||||||
#include "libwww/WWWDir.h"
|
#include "WWWDir.h"
|
||||||
#include "libwww/WWWTrans.h"
|
#include "WWWTrans.h"
|
||||||
#include "libwww/HTReqMan.h"
|
#include "HTReqMan.h"
|
||||||
#include "libwww/HTBind.h"
|
#include "HTBind.h"
|
||||||
#include "libwww/HTMulti.h"
|
#include "HTMulti.h"
|
||||||
#include "libwww/HTNetMan.h"
|
#include "HTNetMan.h"
|
||||||
#include "libwww/HTChannl.h"
|
#include "HTChannl.h"
|
||||||
#include "nel/gui/libwww_nel_stream.h" /* Implemented here */
|
#include "nel/gui/libwww_nel_stream.h" /* Implemented here */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,10 @@ SET(RZ_SERVER_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/server/src)
|
||||||
ADD_SUBDIRECTORY(common)
|
ADD_SUBDIRECTORY(common)
|
||||||
|
|
||||||
IF(WITH_RYZOM_CLIENT)
|
IF(WITH_RYZOM_CLIENT)
|
||||||
|
IF(NOT WITH_GUI)
|
||||||
|
MESSAGE( FATAL_ERROR "The client cannot be built without the NeL GUI Library (WITH_GUI)")
|
||||||
|
ENDIF(NOT WITH_GUI)
|
||||||
|
|
||||||
IF(WITH_LUA51)
|
IF(WITH_LUA51)
|
||||||
FIND_PACKAGE(Lua51 REQUIRED)
|
FIND_PACKAGE(Lua51 REQUIRED)
|
||||||
ELSE(WITH_LUA51)
|
ELSE(WITH_LUA51)
|
||||||
|
@ -41,8 +45,6 @@ IF(WITH_RYZOM_CLIENT)
|
||||||
ENDIF(APPLE)
|
ENDIF(APPLE)
|
||||||
ENDIF(CURL_STATIC)
|
ENDIF(CURL_STATIC)
|
||||||
|
|
||||||
FIND_PACKAGE(Libwww REQUIRED)
|
|
||||||
|
|
||||||
ADD_SUBDIRECTORY(client)
|
ADD_SUBDIRECTORY(client)
|
||||||
ENDIF(WITH_RYZOM_CLIENT)
|
ENDIF(WITH_RYZOM_CLIENT)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue