started implementing dtsod parsing

This commit is contained in:
2023-05-22 04:06:55 +06:00
parent 03f9f889cc
commit 4e2376f251
21 changed files with 724 additions and 63 deletions

17
tasks/build_view.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
set -eo pipefail
mkdir -p "obj"
clean_dir "obj/objects"
mkdir -p "src"
mkdir -p "src/generated"
cd resource_embedder
./build.sh
cd ..
embedder_args="-o src/generated/view.h"
for guifile in $(find "view" -name '*.tui.dtsod'); do
embedder_args="$embedder_args -i $guifile"
done
resource_embedder/resource_embedder $embedder_args

View File

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

View File

@@ -1,4 +1,5 @@
#!/bin/bash
set -eo pipefail
# if $lib_project.a doesn't exist or rebuild_* task was executed, builds static lib
function handle_static_dependency {
@@ -23,3 +24,5 @@ function handle_static_dependency {
handle_static_dependency kerep "$DEPS_BUILD_TASK" kerep/bin/kerep.a
handle_static_dependency utf8proc libutf8proc.a utf8proc/libutf8proc.a
source tasks/build_view.sh

View File

@@ -1,4 +1,6 @@
#!/bin/bash
set -eo pipefail
source cbuild/colors.sh
source cbuild/functions.sh
touch ".rebuild_$1.tmp"