buil scripts moved to submodule
This commit is contained in:
17
tasks/build.sh
Normal file
17
tasks/build.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
source build_scripts/init.sh
|
||||
|
||||
print "${CYAN}===============[build]================\n"
|
||||
clear_dir "$OUTDIR"
|
||||
clear_dir "$OBJDIR"
|
||||
|
||||
cd kerep
|
||||
make build_static_lib
|
||||
cp bin/kerep.a ../obj/
|
||||
printf "${GREEN}copied ${CYAN}kerep.a\n"
|
||||
cd ..
|
||||
|
||||
compile_c "$BUILD_C_ARGS" "$SRC_C"
|
||||
compile_cpp "$BUILD_CPP_ARGS" "$SRC_CPP"
|
||||
link "$BUILD_CPP_ARGS $BUILD_LINKER_ARGS" "$BUILD_FILE"
|
||||
17
tasks/build_dbg.sh
Normal file
17
tasks/build_dbg.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
source build_scripts/init.sh
|
||||
|
||||
print "${CYAN}=============[build_dbg]==============\n"
|
||||
clear_dir "$OUTDIR"
|
||||
clear_dir "$OBJDIR"
|
||||
|
||||
cd kerep
|
||||
make build_static_lib_dbg
|
||||
cp bin/kerep.a ../obj/
|
||||
printf "${GREEN}copied ${CYAN}kerep.a\n"
|
||||
cd ..
|
||||
|
||||
compile_c "$BUILD_DBG_C_ARGS" "$SRC_C"
|
||||
compile_cpp "$BUILD_DBG_CPP_ARGS" "$SRC_CPP"
|
||||
link "$BUILD_DBG_CPP_ARGS $BUILD_DBG_LINKER_ARGS" "$BUILD_DBG_FILE"
|
||||
Reference in New Issue
Block a user