summaryrefslogtreecommitdiff
path: root/Jamfile.jam
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-06 20:28:36 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-06 20:28:36 +0000
commitf542c5ebb8068ccd4f9176684eb62183afbe7e5c (patch)
tree6121507407cbab62c60047dc32e2332eb02844ca /Jamfile.jam
parentefee7df3f43c01504b4dd7c86f9ec72bcf318f05 (diff)
Integrated changes from unicode branch to trunk
git-svn-id: http://pugixml.googlecode.com/svn/trunk@383 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'Jamfile.jam')
-rw-r--r--Jamfile.jam19
1 files changed, 10 insertions, 9 deletions
diff --git a/Jamfile.jam b/Jamfile.jam
index 2e3a59f..beba202 100644
--- a/Jamfile.jam
+++ b/Jamfile.jam
@@ -28,8 +28,8 @@ if ( ! $(configuration) )
configuration = "debug" ;
}
-# remove empty define
-defines -= "" ;
+# split defines into list
+defines = [ Split $(defines) : ',' ] ;
# options
if ( $(defines) )
@@ -41,23 +41,24 @@ else
BUILD = build/$(toolset)/standard/$(configuration) ;
}
-if ( $(toolset:I=^mingw) )
+if ( $(toolset:I=^mingw) || $(toolset) = gcc )
{
CCFLAGS = -fprofile-arcs -ftest-coverage ;
LDFLAGS = -fprofile-arcs ;
GCOVFLAGS = -n ;
- if ( $(toolset) = mingw44 )
- {
- GCOVFLAGS += -o $(BUILD)/src ; # because stupid gcov can't find files via relative paths any more
- }
+ GCOVFLAGS += -o $(BUILD)/src ; # because stupid gcov can't find files via relative paths
}
# rules
include "Jamrules.jam" ;
+# enable dependency cache
+DEPCACHE.standard = build/.depcache ;
+
# targets
Library pugixml : src/pugixml.cpp src/pugixpath.cpp ;
-Application tests : tests/main.cpp [ Glob tests : test_*.cpp ] : pugixml ;
+Application tests : [ Glob tests : *.cpp ] : pugixml ;
Test run_tests : tests ;
-Coverage coverage : run_tests ;
+Coverage coverage : pugixml ;
+Depends coverage : run_tests ;