removed TESTS_C and TESTS_CPP

This commit is contained in:
Timerix 2024-07-20 23:05:44 +03:00
parent 4fc62f65b4
commit 9c4959d51e
5 changed files with 10 additions and 9 deletions

View File

@ -1,3 +1,6 @@
# v2.1.1
+ removed `TESTS_C` and `TESTS_CPP`
# v2.1.0 # v2.1.0
+ **config**: no more `current.config` and `default.config`, just `project.config` + **config**: no more `current.config` and `default.config`, just `project.config`
+ improved version checking + improved version checking

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
INSTALLED_CBUILD_VERSION=2.1.0 INSTALLED_CBUILD_VERSION=2.1.1
# set \t size to 4 spaces # set \t size to 4 spaces
tabs 4 tabs 4

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
CBUILD_VERSION=2.1.0 CBUILD_VERSION=2.1.1
CONFIG_VERSION=1 CONFIG_VERSION=1
PROJECT="%PROJECT_NAME%" PROJECT="%PROJECT_NAME%"
@ -11,8 +11,6 @@ WARN_C="-Wall -Wno-discarded-qualifiers -Wextra -Wno-unused-parameter"
WARN_CPP="-Wall -Wextra -Wno-unused-parameter" WARN_CPP="-Wall -Wextra -Wno-unused-parameter"
SRC_C="$(find src -name '*.c')" SRC_C="$(find src -name '*.c')"
SRC_CPP="$(find src -name '*.cpp')" SRC_CPP="$(find src -name '*.cpp')"
TESTS_C="$( find tests -name '*.c')"
TESTS_CPP="$(find tests -name '*.cpp')"
# Directory with dependency configs. # Directory with dependency configs.
# See cbuild/example_dependency_configs # See cbuild/example_dependency_configs

View File

@ -15,6 +15,6 @@ else
done done
fi fi
compile_c "$C_ARGS" "$SRC_C $TESTS_C" compile_c "$C_ARGS" "$SRC_C"
compile_cpp "$CPP_ARGS" "$SRC_CPP $TESTS_CPP" compile_cpp "$CPP_ARGS" "$SRC_CPP"
link "$LINKER_ARGS" "$EXEC_FILE" link "$LINKER_ARGS" "$EXEC_FILE"

View File

@ -4,7 +4,7 @@
# exit on errors # exit on errors
set -xeo pipefail set -xeo pipefail
CBUILD_VERSION=2.1.0 CBUILD_VERSION=2.1.1
function version_parse { function version_parse {
local value="$1" local value="$1"