mirror of
https://github.com/Ed94/VEFontCache-Odin.git
synced 2025-08-06 06:52:44 -07:00
Merge branch 'test_macos_action'
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user