mirror of
https://github.com/Ed94/VEFontCache-Odin.git
synced 2025-08-05 14:42:42 -07:00
Fixes for demo build not copying harfbuzz lib in macos
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user