mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
Exclude code from compilation when compiling without xmlrpc-c.
This commit is contained in:
parent
0e2dc56360
commit
67ba055213
@ -5,6 +5,7 @@ namespace MosesServer
|
||||
{
|
||||
Server::
|
||||
Server(Moses::Parameter& params)
|
||||
#ifdef HAVE_XMLRPC_C
|
||||
: m_server_options(params),
|
||||
m_updater(new Updater),
|
||||
m_optimizer(new Optimizer),
|
||||
@ -16,6 +17,9 @@ namespace MosesServer
|
||||
m_registry.addMethod("optimize", m_optimizer);
|
||||
m_registry.addMethod("close_session", m_close_session);
|
||||
}
|
||||
#else
|
||||
{ }
|
||||
#endif
|
||||
|
||||
int
|
||||
Server::
|
||||
|
@ -9,8 +9,8 @@
|
||||
#include "Updater.h"
|
||||
#include "CloseSession.h"
|
||||
#include "Session.h"
|
||||
#include "moses/parameters/ServerOptions.h"
|
||||
#endif
|
||||
#include "moses/parameters/ServerOptions.h"
|
||||
|
||||
namespace MosesServer
|
||||
{
|
||||
@ -18,12 +18,13 @@ namespace MosesServer
|
||||
{
|
||||
Moses::ServerOptions m_server_options;
|
||||
SessionCache m_session_cache;
|
||||
#ifdef HAVE_XMLRPC_C
|
||||
xmlrpc_c::registry m_registry;
|
||||
xmlrpc_c::methodPtr const m_updater;
|
||||
xmlrpc_c::methodPtr const m_optimizer;
|
||||
xmlrpc_c::methodPtr const m_translator;
|
||||
xmlrpc_c::methodPtr const m_close_session;
|
||||
|
||||
#endif
|
||||
public:
|
||||
Server(Moses::Parameter& params);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user