commit f37dab26ccd638472c8b65edcebad7eb96b7abbe
parent 2fe8ac798ce3a1305363d4f0e6bf4578e80fe285
Author: kyle <kyle@0x30.net>
Date: Sun, 29 Jan 2017 12:02:18 -0700
jam: move build modifiers to root Jamfile
Diffstat:
M | Jamfile | | | 65 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
M | Jamrules.extra | | | 65 | ----------------------------------------------------------------- |
2 files changed, 65 insertions(+), 65 deletions(-)
diff --git a/Jamfile b/Jamfile
@@ -4,3 +4,68 @@ SubInclude TOP bin ;
SubInclude TOP lib ;
SubInclude TOP man ;
SubInclude TOP share citrun ;
+
+#
+# Run clang static analysis on the build.
+#
+actions Analysis
+{
+ scan-build --use-c++=eg++ ./configure
+ scan-build -o html --use-c++=eg++ jam
+}
+
+#
+# Get test coverage of integration test suite.
+#
+actions TestCoverage
+{
+ set -e
+ CFLAGS="-coverage" LDFLAGS="-coverage" ./configure
+ jam
+
+ # Roll libgcov.a into libcitrun.a.
+ ar -M < t/libcitrun_gcov.mri
+
+ prove
+ # prove tt
+
+ gcov -o . lib*.c
+ egcov -r *.cc
+
+ mkdir gcov
+ mv *.gcov gcov/
+}
+
+#
+# Use C It Run on itself.
+#
+actions CCItRunRun
+{
+ set -e
+
+ #
+ # Namespace global instrumentation variables such that they don't
+ # collide with the actual instrumentation.
+ #
+ sed -i \
+ -e "s,struct citrun_node,struct ccitrunrun_node," \
+ -e "s,citrun_node_add,ccitrunrun_node_add," \
+ -e "s,citrun_major,ccitrunrun_major,g" \
+ -e "s,citrun_minor,ccitrunrun_minor,g" \
+ lib.h lib.c inst_action.cc inst_fe.cc gl_procfile.cc
+
+ #
+ # Change binary names so we can do a side by side installation.
+ #
+ sed -i \
+ -e "s,citrun_inst,ccitrunrun_inst," \
+ -e "s,citrun_term,ccitrunrun_term," \
+ -e "s,citrun_gl,ccitrunrun_gl," \
+ -e "s,libcitrun,libccitrunrun," \
+ Jamfile lib.c inst_main.cc
+ jam
+}
+
+Analysis analysis ;
+TestCoverage coverage ;
+CCItRunRun ccitrunrun ;
diff --git a/Jamrules.extra b/Jamrules.extra
@@ -22,68 +22,3 @@ if $(NT) {
>> $(<) echo ")\";"
}
}
-
-#
-# Run clang static analysis on the build.
-#
-actions Analysis
-{
- scan-build --use-c++=eg++ ./configure
- scan-build -o html --use-c++=eg++ jam
-}
-
-#
-# Get test coverage of integration test suite.
-#
-actions TestCoverage
-{
- set -e
- CFLAGS="-coverage" LDFLAGS="-coverage" ./configure
- jam
-
- # Roll libgcov.a into libcitrun.a.
- ar -M < t/libcitrun_gcov.mri
-
- prove
- # prove tt
-
- gcov -o . lib*.c
- egcov -r *.cc
-
- mkdir gcov
- mv *.gcov gcov/
-}
-
-#
-# Use C It Run on itself.
-#
-actions CCItRunRun
-{
- set -e
-
- #
- # Namespace global instrumentation variables such that they don't
- # collide with the actual instrumentation.
- #
- sed -i \
- -e "s,struct citrun_node,struct ccitrunrun_node," \
- -e "s,citrun_node_add,ccitrunrun_node_add," \
- -e "s,citrun_major,ccitrunrun_major,g" \
- -e "s,citrun_minor,ccitrunrun_minor,g" \
- lib.h lib.c inst_action.cc inst_fe.cc gl_procfile.cc
-
- #
- # Change binary names so we can do a side by side installation.
- #
- sed -i \
- -e "s,citrun_inst,ccitrunrun_inst," \
- -e "s,citrun_term,ccitrunrun_term," \
- -e "s,citrun_gl,ccitrunrun_gl," \
- -e "s,libcitrun,libccitrunrun," \
- Jamfile lib.c inst_main.cc
- jam
-}
-
-Analysis analysis ;
-TestCoverage coverage ;
-CCItRunRun ccitrunrun ;