2011-11-21 21:19:24 +04:00
|
|
|
#If you get compilation errors here, make sure you have xmlrpc-c installed properly. . .
|
|
|
|
|
|
|
|
import option ;
|
|
|
|
|
|
|
|
if [ option.get "with-xmlrpc-c" ]
|
|
|
|
{
|
|
|
|
with-xmlrpc-c = [ option.get "with-xmlrpc-c" ] ;
|
|
|
|
xmlrpc-lib = <search>$(with-xmlrpc-c)/lib ;
|
|
|
|
xmlrpc-include = <include>$(with-xmlrpc-c)/include ;
|
|
|
|
build-moses-server = "yes" ;
|
|
|
|
} else {
|
2011-11-26 15:57:09 +04:00
|
|
|
if [ SHELL $(TOP)"/jam-files/test.sh -include xmlrpc-c/base.hpp -lxmlrpc_server_abyss++" ] = 0 {
|
2011-11-21 21:19:24 +04:00
|
|
|
build-moses-server = "yes" ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if $(build-moses-server) = "yes"
|
|
|
|
{
|
|
|
|
xmlrpc-deps = ;
|
|
|
|
#This is the libraries in reverse order
|
|
|
|
for xmllib in xmlrpc_xmltok xmlrpc_xmlparse xmlrpc_util xmlrpc xmlrpc_abyss xmlrpc_server xmlrpc_server_abyss xmlrpc++ xmlrpc_server++ xmlrpc_server_abyss++ {
|
|
|
|
lib $(xmllib) : : <use>$(xmlrpc-deps) $(xmlrpc-lib) : : $(xmlrpc-include) ;
|
|
|
|
xmlrpc-deps = $(xmlrpc-deps) $(xmllib) ;
|
|
|
|
}
|
|
|
|
|
2011-11-23 19:22:45 +04:00
|
|
|
exe mosesserver : mosesserver.cpp ../../moses/src//moses ../../OnDiskPt/src//OnDiskPt $(xmlrpc-deps) ;
|
2011-11-21 21:19:24 +04:00
|
|
|
} else {
|
|
|
|
alias mosesserver ;
|
|
|
|
}
|