summaryrefslogtreecommitdiff
path: root/Jamroot
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-05-11 19:00:26 -0400
committerKenneth Heafield <github@kheafield.com>2012-05-11 19:00:26 -0400
commit45a28264df3f1347eba603ee0758e5d7f063c327 (patch)
treea9c643170f7d70455b985ef90682f3826865b4dc /Jamroot
parentd89d7d363a8f770eb309bb7b4e45eaa9d24468fb (diff)
Add just enough jam to compile the decoder.
Diffstat (limited to 'Jamroot')
-rw-r--r--Jamroot29
1 files changed, 29 insertions, 0 deletions
diff --git a/Jamroot b/Jamroot
new file mode 100644
index 00000000..ad09509d
--- /dev/null
+++ b/Jamroot
@@ -0,0 +1,29 @@
+path-constant TOP : . ;
+include $(TOP)/sanity.jam ;
+boost 104400 ;
+external-lib z ;
+
+if [ test_header google/dense_hash_map ] {
+ requirements += <define>HAVE_SPARSEHASH ;
+}
+
+if [ test_header boost/serialization/map.hpp ] && [ test_library boost_serialization ] {
+ requirements += <define>HAVE_BOOST_ARCHIVE_TEXT_OARCHIVE_HPP ;
+}
+
+project : requirements $(requirements) ;
+project : default-build <threading>single <warnings>on <variant>release ;
+
+install-bin-libs utils//programs mteval//programs klm/lm//programs decoder//cdec ;
+
+build-project mteval ;
+build-project decoder ;
+
+#Compile everything ending with _test.cc into a test and run it.
+rule all_tests ( targets * : dependencies ) {
+ targets ?= [ glob *_test.cc ] ;
+ for t in $(targets) {
+ local base = [ MATCH "^(.*).cc$" : $(t) ] ;
+ unit-test $(base) : $(t) $(dependencies) ..//boost_unit_test_framework ;
+ }
+}