Minor build framework fixes
git-svn-id: http://pugixml.googlecode.com/svn/trunk@139 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
52aa5325f3
commit
ab28c3b45e
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
actions ObjectAction
|
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
|
actions LibraryAction
|
||||||
@ -17,7 +17,7 @@ actions LinkAction
|
|||||||
|
|
||||||
actions CoverageAction
|
actions CoverageAction
|
||||||
{
|
{
|
||||||
%MINGW_PATH%\bin\gcov $(>:\\) $(GCOVFLAGS)
|
%MINGW_PATH%\bin\gcov $(>:\\) $(GCOVFLAGS) | perl tests/gcov-filter.pl
|
||||||
}
|
}
|
||||||
|
|
||||||
actions RunAction
|
actions RunAction
|
||||||
@ -106,7 +106,7 @@ rule Application TARGET : SOURCES : LIBRARIES
|
|||||||
# build application
|
# build application
|
||||||
MakeFileDir $(EXECUTABLE) ;
|
MakeFileDir $(EXECUTABLE) ;
|
||||||
LinkAction $(EXECUTABLE) : $(OBJECTS) ;
|
LinkAction $(EXECUTABLE) : $(OBJECTS) ;
|
||||||
Depends $(EXECUTABLE) : $(OBJECTS) $(LIBRARIES) ;
|
Depends $(EXECUTABLE) : $(OBJECTS) $($(LIBRARIES)_path) ;
|
||||||
|
|
||||||
# make alias
|
# make alias
|
||||||
Alias $(TARGET) : $(EXECUTABLE) ;
|
Alias $(TARGET) : $(EXECUTABLE) ;
|
||||||
|
|||||||
7
tests/gcov-filter.pl
Normal file
7
tests/gcov-filter.pl
Normal file
@ -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;
|
||||||
Loading…
Reference in New Issue
Block a user