utf8proc library added

This commit is contained in:
2023-05-04 15:31:40 +06:00
parent 483e6fa96b
commit c8dfd8224e
17 changed files with 205 additions and 167 deletions

View File

@@ -1,4 +1,10 @@
#!/usr/bin/bash
for tmpfile in $(ls .rebuild_*.tmp); do
for tmpfile in $(ls -a | grep -e '\.rebuild.*\.tmp'); do
try_delete_dir_or_file "$tmpfile"
done
for submodule in kerep utf8proc; do
cd "$submodule"
make clean
cd ..
done

View File

@@ -1,17 +1,25 @@
#!/bin/bash
# check if kerep static lib exists or kerep_rebuild task was executed
if [ ! -f "$OBJDIR/libs/kerep.a" ] || [ -f .rebuild_kerep.tmp ]; then
[[ -z "$KEREP_BUILD_TASK" ]] && error "KEREP_BUILD_TASK is empty"
myprint "${BLUE}making kerep task <$KEREP_BUILD_TASK>"
# if $lib_project.a doesn't exist or rebuild_* task was executed, builds static lib
function handle_static_dependency {
local lib_project="$1"
local lib_build_task="$2"
local lib_build_rezults="$3"
if [ ! -f "$OBJDIR/libs/$lib_project.a" ] || [ -f .rebuild_$lib_project.tmp ]; then
[[ -z "$lib_build_task" ]] && error "lib_build_task is empty"
myprint "${BLUE}making $lib_project task <$lib_build_task>"
cd kerep
if ! make "$KEREP_BUILD_TASK"; then
exit 1
cd $lib_project
if ! make "$lib_build_task"; then
exit 1
fi
cd ..
cp $lib_build_rezults $OBJDIR/libs/
myprint "${GREEN}copied ${CYAN}$lib_project.a"
rm -f .rebuild_$lib_project.tmp
fi
cd ..
}
cp kerep/bin/kerep.a $OBJDIR/libs/
myprint "${GREEN}copied ${CYAN}kerep.a"
rm -f .rebuild_kerep.tmp
fi
handle_static_dependency kerep "$DEPS_BUILD_TASK" kerep/bin/kerep.a
handle_static_dependency utf8proc libutf8proc.a utf8proc/libutf8proc.a

View File

@@ -1,3 +0,0 @@
#!/bin/bash
touch .rebuild_kerep.tmp
myprint "${YELLOW}kerep.a will be rebuilt in the next build task"

5
tasks/rebuild_lib.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
source cbuild/colors.sh
source cbuild/functions.sh
touch ".rebuild_$1.tmp"
myprint "${YELLOW}$1.a will be rebuilt in the next build task"