cbuild 2.1.1

This commit is contained in:
Timerix 2024-07-20 23:12:09 +03:00
parent dd8e0d0552
commit e722cd0353

View File

@ -1,5 +1,5 @@
#!/bin/bash
CBUILD_VERSION=2.1.0
CBUILD_VERSION=2.1.1
CONFIG_VERSION=9
PROJECT="kerep"
@ -65,6 +65,8 @@ case "$TASK" in
PRE_TASK_SCRIPT=
TASK_SCRIPT=cbuild/default_tasks/build_exec.sh
POST_TASK_SCRIPT=
SRC_C+=" $TESTS_C"
SRC_CPP+=" $TESTS_CPP"
;;
# creates executable with debug info and no optimizations
build_exec_dbg)
@ -74,6 +76,8 @@ case "$TASK" in
PRE_TASK_SCRIPT=
TASK_SCRIPT=cbuild/default_tasks/build_exec.sh
POST_TASK_SCRIPT=
SRC_C+=" $TESTS_C"
SRC_CPP+=" $TESTS_CPP"
;;
# creates shared library
build_shared_lib)
@ -133,6 +137,8 @@ case "$TASK" in
PRE_TASK_SCRIPT=cbuild/default_tasks/build_exec.sh
TASK_SCRIPT=cbuild/default_tasks/profile.sh
POST_TASK_SCRIPT=
SRC_C+=" $TESTS_C"
SRC_CPP+=" $TESTS_CPP"
;;
# compiles program with -pg and runs it with gprof
# uses gprof2dot python script to generate function call tree (pip install gprof2dot)
@ -146,6 +152,8 @@ case "$TASK" in
PRE_TASK_SCRIPT=cbuild/default_tasks/build_exec.sh
TASK_SCRIPT=cbuild/default_tasks/gprof.sh
POST_TASK_SCRIPT=
SRC_C+=" $TESTS_C"
SRC_CPP+=" $TESTS_CPP"
;;
# compiles program and runs it with callgrind (part of valgrind)
# uses gprof2dot python script to generate function call tree (pip install gprof2dot)
@ -160,6 +168,8 @@ case "$TASK" in
PRE_TASK_SCRIPT=tasks/pre_build.sh
TASK_SCRIPT=cbuild/default_tasks/build_exec.sh
POST_TASK_SCRIPT=cbuild/default_tasks/callgrind.sh
SRC_C+=" $TESTS_C"
SRC_CPP+=" $TESTS_CPP"
;;
# compiles executable with sanitizers and executes it to find errors and warnings
sanitize)
@ -170,6 +180,8 @@ case "$TASK" in
PRE_TASK_SCRIPT=cbuild/default_tasks/build_exec.sh
TASK_SCRIPT=cbuild/default_tasks/exec.sh
POST_TASK_SCRIPT=
SRC_C+=" $TESTS_C"
SRC_CPP+=" $TESTS_CPP"
;;
# deletes generated files
clean)