citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit bf2968d1c7d12717aad12e1687772009841bd068
parent 9a9c0511a4781e9a37096932eeea3a934f1a68b7
Author: Kyle Milz <kyle@0x30.net>
Date:   Sun,  8 Jan 2017 15:11:59 -0700

jam: move non critical rules into extra

Diffstat:
MJamfile | 29-----------------------------
MJamrules.extra | 28++++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 29 deletions(-)

diff --git a/Jamfile b/Jamfile @@ -3,35 +3,6 @@ SubDir TOP ; include Jamrules.extra ; # -# Different build modifiers. Put them here because it only makes sense to run -# them from the root directory. -# -actions StaticAnalysis -{ - scan-build ./configure - scan-build -o html --use-c++=eg++ jam -j4 -} - -actions TestCoverage -{ - set -e - CFLAGS="-coverage" LDFLAGS="-coverage" ./configure - jam -j4 - - # Roll libgcov.a into libcitrun.a. - ar -M < t/libcitrun_gcov.mri - - prove - # prove tt - - gcov -o src src/lib.c - egcov -r src/*.cc -} - -StaticAnalysis static-analysis ; -TestCoverage test-coverage ; - -# # libcitrun # if ! $(NT) { diff --git a/Jamrules.extra b/Jamrules.extra @@ -26,3 +26,31 @@ if $(NT) { >> $(<) echo ")\";" } } + +# +# Different build modifiers for static analysis and test coverage. +# +actions StaticAnalysis +{ + scan-build ./configure + scan-build -o html --use-c++=eg++ jam -j4 +} + +actions TestCoverage +{ + set -e + CFLAGS="-coverage" LDFLAGS="-coverage" ./configure + jam -j4 + + # Roll libgcov.a into libcitrun.a. + ar -M < t/libcitrun_gcov.mri + + prove + # prove tt + + gcov -o src src/lib.c + egcov -r src/*.cc +} + +StaticAnalysis static-analysis ; +TestCoverage test-coverage ;