Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2011-11-21 21:19:24 +0400
committerKenneth Heafield <github@kheafield.com>2011-11-21 21:19:24 +0400
commitda89f1e9b9963a92b4b9ed4d69840a2d9c229623 (patch)
treeb1bb90d26d133aa5fe72d4b1a2aad4d262ff43d2 /Jamroot
parentee0a6dbd5cea7d2a72bbfb0d081a9232d1f60a8b (diff)
Moses server Jam
Diffstat (limited to 'Jamroot')
-rw-r--r--Jamroot23
1 files changed, 16 insertions, 7 deletions
diff --git a/Jamroot b/Jamroot
index c4a4052f2..f5e407ed8 100644
--- a/Jamroot
+++ b/Jamroot
@@ -6,18 +6,25 @@
#--with-randlm=/path/to/randlm
#KenLM is always compiled.
#
-#threading=single compiles single-threaded
+#--with-xmlrpc-c=/path/to/xmlrpc-c for libxmlrpc-c (used by server)
+#Note that, like language models, this is the --prefix where the library was
+#installed, not some executable within the library.
+#
+#--notrace compiles without TRACE macros
+#
+#--install=/path/to/install sets the install directory (default dist)
+#
+#By default, the build is multi-threaded, optimized, and statically linked.
#
+#General help with bjam:
+#threading=single compiles single-threaded
#variant=debug for debugging (or just "debug")
#variant=profile for profiling
-#
#link=shared for dynamic linking
#
-#--install=/path/to/install sets the install directory (default dist)
-#--notrace compiles without TRACE macros
-#
+#-a to build from scratch
#-j$NCPUS to compile in parallel
-#
+#clean to clean
path-constant TOP : . ;
@@ -35,13 +42,14 @@ rule boost_lib ( name macro ) {
#Add -mt if multi-threaded.
lib inner_boost_$(name) : : <threading>single <name>boost_$(name) ;
lib inner_boost_$(name) : : <threading>multi <name>boost_$(name)-mt ;
-#link dynamically
+#Link dynamically if necessary and define the dynamic linking macro if so
alias boost_$(name) : inner_boost_$(name) : $(force-boost-link) : : <link>shared:<define>BOOST_$(macro) ;
}
boost_lib thread THREAD_DYN_DLL ;
boost_lib program_options PROGRAM_OPTIONS_DYN_LINK ;
boost_lib unit_test_framework TEST_DYN_LINK ;
+#Dynamic libz if we have to.
if [ SHELL $(TOP)"/jam-files/test.sh -static -lz" ] != 0 {
lib z : : <link>shared ;
} else {
@@ -76,4 +84,5 @@ install dist :
moses-cmd/src//programs
CreateOnDisk/src//CreateOnDisk
mert//programs
+ server//mosesserver
: <location>$(install-location) <install-type>EXE <install-dependencies>on <link>shared:<dll-path>$(install-location) <link>shared:<install-type>LIB ;