diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-10-28 20:08:43 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-10-28 20:08:43 +0000 |
commit | 2a14a3b4c9b48b7656cb44aa75bef3b585f95e02 (patch) | |
tree | 5c6ceb7f9f3a5df533d4d60f1c884c7e4a0bb834 /Jamfile.jam | |
parent | 9216c82cfdeba41a35314f0315a5b61b42e82c1c (diff) |
Added MSVC building
git-svn-id: http://pugixml.googlecode.com/svn/trunk@186 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'Jamfile.jam')
-rw-r--r-- | Jamfile.jam | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/Jamfile.jam b/Jamfile.jam index 420a3e0..48dd03a 100644 --- a/Jamfile.jam +++ b/Jamfile.jam @@ -1,17 +1,40 @@ # Latest jamplus is needed to use this
+
# Targets:
# pugixml - build pugixml library
# tests - build pugixml test suite
# run_tests - run pugixml test suite
# coverage - get test suite coverage
-include "Jamrules.jam" ;
+# Options:
+# toolset=name - select toolset
+# supported toolsets: mingw*, msvc*
+
+# default toolset/configuration
+if ( ! $(toolset) )
+{
+ exit You should specify a toolset ;
+}
+
+if ( ! $(configuration) )
+{
+ configuration = "debug" ;
+}
-BUILD = build/mingw/debug ;
-CCFLAGS = -fprofile-arcs -ftest-coverage ;
-LDFLAGS = -fprofile-arcs ;
-GCOVFLAGS = -n ;
+# options
+BUILD = build/$(toolset)/$(configuration) ;
+
+if ( $(toolset) = "mingw" )
+{
+ CCFLAGS = -fprofile-arcs -ftest-coverage ;
+ LDFLAGS = -fprofile-arcs ;
+ GCOVFLAGS = -n ;
+}
+
+# rules
+include "Jamrules.jam" ;
+# targets
Library pugixml : src/pugixml.cpp src/pugixpath.cpp ;
Application tests : tests/main.cpp [ Glob tests : test_*.cpp ] : pugixml ;
Test run_tests : tests ;
|