From a96fb02b3203a906937cdced97a5f3ee575b857a Mon Sep 17 00:00:00 2001 From: Timerix Date: Sun, 21 Jul 2024 00:51:01 +0300 Subject: [PATCH] kerep.config --- libkerep-dbg.config => kerep.config | 6 +++++- libkerep.config | 10 ---------- project.config | 3 +-- 3 files changed, 6 insertions(+), 13 deletions(-) rename libkerep-dbg.config => kerep.config (65%) delete mode 100644 libkerep.config diff --git a/libkerep-dbg.config b/kerep.config similarity index 65% rename from libkerep-dbg.config rename to kerep.config index e3d026c..28f39d8 100644 --- a/libkerep-dbg.config +++ b/kerep.config @@ -1,7 +1,11 @@ #!/usr/bin/env bash DEP_WORKING_DIR='kerep' DEP_PRE_BUILD_COMMAND='' -DEP_BUILD_COMMAND='cbuild build_static_lib' +if [[ "$TASK" = *_dbg ]]; then + DEP_BUILD_COMMAND='cbuild build_static_lib_dbg' +else + DEP_BUILD_COMMAND='cbuild build_static_lib' +fi DEP_POST_BUILD_COMMAND='' DEP_CLEAN_COMMAND='cbuild clean' # won't be copied to project $OUTDIR diff --git a/libkerep.config b/libkerep.config deleted file mode 100644 index e3d026c..0000000 --- a/libkerep.config +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash -DEP_WORKING_DIR='kerep' -DEP_PRE_BUILD_COMMAND='' -DEP_BUILD_COMMAND='cbuild build_static_lib' -DEP_POST_BUILD_COMMAND='' -DEP_CLEAN_COMMAND='cbuild clean' -# won't be copied to project $OUTDIR -DEP_STATIC_OUT_FILES='bin/libkerep.a' -# will be copied tp project $OUTDIR -DEP_DYNAMIC_OUT_FILES='' diff --git a/project.config b/project.config index 7c425d7..55e92d7 100644 --- a/project.config +++ b/project.config @@ -18,7 +18,7 @@ SRC_CPP="$( find src -name '*.cpp')" # See cbuild/example_dependency_configs DEPENDENCY_CONFIGS_DIR='.' # List of dependency config files in DEPENDENCY_CONFIGS_DIR separated by space. -ENABLED_DEPENDENCIES='libkerep' +ENABLED_DEPENDENCIES='kerep' # OBJDIR structure: # ├── objects/ - Compiled object files. Cleans on each call of build task @@ -71,7 +71,6 @@ case "$TASK" in PRE_TASK_SCRIPT= TASK_SCRIPT=cbuild/default_tasks/build_exec.sh POST_TASK_SCRIPT= - ENABLED_DEPENDENCIES="libkerep-dbg" ;; # executes $EXEC_FILE exec)