5 Commits

Author SHA1 Message Date
3ad7685b88 v2.3.3: fixed default build tasks not deleting old out file 2026-01-16 18:14:34 +05:00
3198f8905e v2.3.2: fixed symlink creation 2025-11-19 13:47:34 +05:00
458652d0c5 default project config change 2025-11-12 15:13:10 +05:00
7ef47c567c default user config change 2025-11-12 15:11:32 +05:00
1a4ad2a3f0 default user config change 2025-11-12 15:10:40 +05:00
8 changed files with 17 additions and 6 deletions

View File

@@ -1 +1 @@
2.3.1 2.3.3

View File

@@ -1,3 +1,9 @@
## 2.3.3
+ now all default build dasks delete out file before building new one
## 2.3.2
+ fixed symlink creation in `OBJDIR/static_libs`
## 2.3.1 ## 2.3.1
+ user config loads before project config + user config loads before project config

View File

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

View File

@@ -2,6 +2,7 @@
# delete old objects # delete old objects
clean_dir "$OBJDIR/objects" clean_dir "$OBJDIR/objects"
rm -f "$EXEC_FILE"
# copy profiling info # copy profiling info
prof_files=$(find "$OBJDIR/profile/" -name '*.gcda') prof_files=$(find "$OBJDIR/profile/" -name '*.gcda')

View File

@@ -2,6 +2,8 @@
# delete old objects # delete old objects
clean_dir "$OBJDIR/objects" clean_dir "$OBJDIR/objects"
rm -f "$SHARED_LIB_FILE"
[ ! -z "$SRC_C" ] && compile_c "$CMP_C" "$STD_C" "$WARN_C" "$C_ARGS" "$INCLUDE" "$SRC_C" [ ! -z "$SRC_C" ] && compile_c "$CMP_C" "$STD_C" "$WARN_C" "$C_ARGS" "$INCLUDE" "$SRC_C"
[ ! -z "$SRC_CPP" ] && compile_cpp "$CMP_CPP" "$STD_CPP" "$WARN_CPP" "$CPP_ARGS" "$INCLUDE" "$SRC_CPP" [ ! -z "$SRC_CPP" ] && compile_cpp "$CMP_CPP" "$STD_CPP" "$WARN_CPP" "$CPP_ARGS" "$INCLUDE" "$SRC_CPP"
link "$LINKER_ARGS" "$SHARED_LIB_FILE" link "$LINKER_ARGS" "$SHARED_LIB_FILE"

View File

@@ -2,6 +2,8 @@
# delete old objects # delete old objects
clean_dir "$OBJDIR/objects" clean_dir "$OBJDIR/objects"
rm -f "$STATIC_LIB_FILE"
[ ! -z "$SRC_C" ] && compile_c "$CMP_C" "$STD_C" "$WARN_C" "$C_ARGS" "$INCLUDE" "$SRC_C" [ ! -z "$SRC_C" ] && compile_c "$CMP_C" "$STD_C" "$WARN_C" "$C_ARGS" "$INCLUDE" "$SRC_C"
[ ! -z "$SRC_CPP" ] && compile_cpp "$CMP_CPP" "$STD_CPP" "$WARN_CPP" "$CPP_ARGS" "$INCLUDE" "$SRC_CPP" [ ! -z "$SRC_CPP" ] && compile_cpp "$CMP_CPP" "$STD_CPP" "$WARN_CPP" "$CPP_ARGS" "$INCLUDE" "$SRC_CPP"
pack_static_lib "$STATIC_LIB_FILE" pack_static_lib "$STATIC_LIB_FILE"

View File

@@ -137,8 +137,8 @@ function build_dependency {
# creates symbolic link to each file in $OBJDIR/static_libs # creates symbolic link to each file in $OBJDIR/static_libs
for file in $DEP_STATIC_OUT_FILES; do for file in $DEP_STATIC_OUT_FILES; do
# doesnt return error if called not like this # doesnt return error if called not like this
f=$(realpath $file) real_file=$(realpath $file)
ln -sfv $f "$proj_root_dir/$OBJDIR/static_libs" ln -sfv "$real_file" "$proj_root_dir/$OBJDIR/static_libs/"
done done
fi fi

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
CBUILD_VERSION=2.3.1 CBUILD_VERSION=2.3.3
PROJECT="%PROJECT_NAME%" PROJECT="%PROJECT_NAME%"
CMP_C="gcc" CMP_C="gcc"
@@ -35,7 +35,7 @@ OBJDIR="obj"
OUTDIR="bin" OUTDIR="bin"
STATIC_LIB_FILE="$PROJECT.a" STATIC_LIB_FILE="$PROJECT.a"
# example: "-I./include" # example: "-I./include -I$DEPENDENCIES_DIR/libexample"
INCLUDE="" INCLUDE=""
# OS-specific options # OS-specific options