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
+ **config**: no more `current.config` and `default.config`, just `project.config`
+ improved version checking

View File

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

View File

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

View File

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

View File

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