build_scripts
This commit is contained in:
10
build_scripts/build_configurations/build.sh
Normal file
10
build_scripts/build_configurations/build.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
source build_scripts/init.sh
|
||||
|
||||
print "${CYAN}===============[build]================\n"
|
||||
clear_dir "$OUTDIR"
|
||||
clear_dir "$OBJDIR"
|
||||
compile_c "$BUILD_C_ARGS" "$SRC_C $TESTS_C"
|
||||
compile_cpp "$BUILD_CPP_ARGS" "$SRC_CPP $TESTS_CPP"
|
||||
link "$BUILD_CPP_ARGS $BUILD_LINKER_ARGS" $BUILD_FILE
|
||||
10
build_scripts/build_configurations/build_dbg.sh
Normal file
10
build_scripts/build_configurations/build_dbg.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
source build_scripts/init.sh
|
||||
|
||||
print "${CYAN}=============[build_dbg]==============\n"
|
||||
clear_dir "$OUTDIR"
|
||||
clear_dir "$OBJDIR"
|
||||
compile_c "$BUILD_DBG_C_ARGS" "$SRC_C $TESTS_C"
|
||||
compile_cpp "$BUILD_DBG_CPP_ARGS" "$SRC_CPP $TESTS_CPP"
|
||||
link "$BUILD_DBG_CPP_ARGS $BUILD_DBG_LINKER_ARGS" $TEST_DBG_FILE
|
||||
8
build_scripts/build_configurations/test.sh
Normal file
8
build_scripts/build_configurations/test.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
source build_scripts/init.sh
|
||||
|
||||
print "${CYAN}================[test]================\n"
|
||||
cd $OUTDIR
|
||||
./$TEST_FILE
|
||||
cd ..
|
||||
9
build_scripts/build_configurations/test_valgrind.sh
Normal file
9
build_scripts/build_configurations/test_valgrind.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
source build_scripts/init.sh
|
||||
|
||||
print "${CYAN}===========[test_valgrind]============\n"
|
||||
cd $OUTDIR
|
||||
valgrind $VALGRIND_ARGS ./$TEST_DBG_FILE
|
||||
cat "valgrind.log"
|
||||
cd ..
|
||||
Reference in New Issue
Block a user