Fixes for demo build not copying harfbuzz lib in macos

This commit is contained in:
2024-10-19 14:05:36 -04:00
parent bee81f896c
commit 44fcdabf38

View File

@@ -22,12 +22,10 @@ else
OS=$(uname -s)
case "$OS" in
Darwin*)
# macOS-specific commands
CoreCount_Physical=$(sysctl -n hw.physicalcpu)
CoreCount_Logical=$(sysctl -n hw.logicalcpu)
;;
Linux*)
# Linux-specific commands
CoreCount_Physical=$(nproc --all)
CoreCount_Logical=$(nproc)
;;
@@ -63,7 +61,19 @@ update_git_repo "$path_sokol" "$url_sokol" "$sokol_build_clibs_command"
update_git_repo "$path_harfbuzz" "$url_harfbuzz" "./scripts/build.sh"
pushd "$path_thirdparty" > /dev/null
path_harfbuzz_dlls="$path_harfbuzz/lib/linux64"
case "$OS" in
Darwin*)
path_harfbuzz_dlls="$path_harfbuzz/lib/osx"
;;
Linux*)
path_harfbuzz_dlls="$path_harfbuzz/lib/linux64"
;;
*)
echo "Unsupported operating system: $OS"
CoreCount_Physical=1
CoreCount_Logical=1
;;
esac
if ls "$path_harfbuzz_dlls"/*.so 1> /dev/null 2>&1; then
cp "$path_harfbuzz_dlls"/*.so "$path_build/"
else