wip: IPC and Runtime

This commit is contained in:
karina
2026-05-03 21:57:20 +04:00
parent 5f343c991b
commit 39b2af7626
25 changed files with 371 additions and 66 deletions
+25
View File
@@ -95,8 +95,22 @@ _default:
exit 0
fi
# libksOS MUST be built first — everyone depends on it
for dir in "${projects[@]}"; do
name=$(basename "${dir}")
if [ "${name}" = "libksOS" ]; then
echo ""
echo " 📦 ${CATEGORY}/${name}"
just --quiet _build_cmake "${dir}" "${CATEGORY}/${name}"
break
fi
done
for dir in "${projects[@]}"; do
name=$(basename "${dir}")
if [ "${name}" = "libksOS" ]; then
continue
fi
echo ""
echo " 📦 ${CATEGORY}/${name}"
@@ -111,6 +125,7 @@ _default:
@build:
@echo "🛠️ Building Runtime..."
@just --quiet clangd
@mkdir -p {{ RUNTIME_BUILD_DIR }}/System
@mkdir -p {{ RUNTIME_BUILD_DIR }}/Apps
@just --quiet _discover_and_build System
@@ -122,3 +137,13 @@ _default:
@rm -rf {{ TEMP_DIR }}/Runtime
@rm -rf {{ RUNTIME_BUILD_DIR }}
@echo "🧹 Runtime cleaned"
@clangd:
#!/usr/bin/env bash
set -e
RUNTIME_DIR="{{ justfile_directory() }}"
INCLUDE_DIR="${RUNTIME_DIR}/System/libksOS/Include"
printf 'CompileFlags:\n Add:\n - -xc\n - --target=aarch64-none-elf\n - -ffreestanding\n - -I%s\n' "${INCLUDE_DIR}" > "${RUNTIME_DIR}/.clangd"
echo "✅ Generated ${RUNTIME_DIR}/.clangd"