summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-10 20:48:55 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-10 20:48:55 +0000
commitab28c3b45e611b5d49a03024bd6ae7b184d37d4a (patch)
tree759274ad49ad0d9cc6b1839581908db86d241bf4
parent52aa5325f333d263f9845b9f182350c5e0194cc3 (diff)
Minor build framework fixes
git-svn-id: http://pugixml.googlecode.com/svn/trunk@139 99668b35-9821-0410-8761-19e4c4f06640
-rw-r--r--Jamrules.jam6
-rw-r--r--tests/gcov-filter.pl7
2 files changed, 10 insertions, 3 deletions
diff --git a/Jamrules.jam b/Jamrules.jam
index db73c81..43d817f 100644
--- a/Jamrules.jam
+++ b/Jamrules.jam
@@ -2,7 +2,7 @@
actions ObjectAction
{
- %MINGW_PATH%\bin\gcc -W -Wall -Wextra -Werror -ansi -pedantic -c $(>) -o $(<) $(CCFLAGS)
+ %MINGW_PATH%\bin\gcc -W -Wall -Wextra -Werror -pedantic -c $(>) -o $(<) $(CCFLAGS)
}
actions LibraryAction
@@ -17,7 +17,7 @@ actions LinkAction
actions CoverageAction
{
- %MINGW_PATH%\bin\gcov $(>:\\) $(GCOVFLAGS)
+ %MINGW_PATH%\bin\gcov $(>:\\) $(GCOVFLAGS) | perl tests/gcov-filter.pl
}
actions RunAction
@@ -106,7 +106,7 @@ rule Application TARGET : SOURCES : LIBRARIES
# build application
MakeFileDir $(EXECUTABLE) ;
LinkAction $(EXECUTABLE) : $(OBJECTS) ;
- Depends $(EXECUTABLE) : $(OBJECTS) $(LIBRARIES) ;
+ Depends $(EXECUTABLE) : $(OBJECTS) $($(LIBRARIES)_path) ;
# make alias
Alias $(TARGET) : $(EXECUTABLE) ;
diff --git a/tests/gcov-filter.pl b/tests/gcov-filter.pl
new file mode 100644
index 0000000..8a581d0
--- /dev/null
+++ b/tests/gcov-filter.pl
@@ -0,0 +1,7 @@
+#!/usr/bin/perl
+
+$lines = join('', <>);
+$lines =~ s/File (.+)\nLines (.+)\n(.+\n)*\n/$1 $2\n/g;
+$lines =~ s/.+include\/c\+\+.+\n//g;
+
+print $lines;