Merge branch 'test_macos_action'

This commit is contained in:
2024-10-19 15:41:40 -04:00
5 changed files with 151 additions and 25 deletions

View File

@@ -1,12 +1,28 @@
#!/bin/bash
OS=$(uname -s)
path_root="$(git rev-parse --show-toplevel)"
path_backend="$path_root/backend"
path_scripts="$path_root/scripts"
path_thirdparty="$path_root/thirdparty"
path_sokol_tools="$path_thirdparty/sokol-tools"
sokol_shdc="$path_sokol_tools/bin/linux/sokol-shdc"
case "$OS" in
Darwin*)
sokol_shdc="$path_sokol_tools/bin/osx/sokol-shdc"
;;
Linux*)
sokol_shdc="$path_sokol_tools/bin/linux/sokol-shdc"
;;
*)
echo "Unsupported operating system: $OS"
CoreCount_Physical=1
CoreCount_Logical=1
;;
esac
echo "Using sokol-shdc: $sokol_shdc"
chmod +x "$sokol_shdc"
path_backend_sokol="$path_backend/sokol"
@@ -42,4 +58,6 @@ pushd "$path_backend_sokol" > /dev/null
"$flag_target_lang" "glsl410:glsl300es:hlsl4:metal_macos:wgsl" \
"$flag_format_odin" "$flag_module=draw_text"
echo "Built sokol shaders"
popd > /dev/null