mirror of
https://github.com/Ed94/VEFontCache-Odin.git
synced 2025-08-06 06:52:44 -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)
|
OS=$(uname -s)
|
||||||
case "$OS" in
|
case "$OS" in
|
||||||
Darwin*)
|
Darwin*)
|
||||||
# macOS-specific commands
|
|
||||||
CoreCount_Physical=$(sysctl -n hw.physicalcpu)
|
CoreCount_Physical=$(sysctl -n hw.physicalcpu)
|
||||||
CoreCount_Logical=$(sysctl -n hw.logicalcpu)
|
CoreCount_Logical=$(sysctl -n hw.logicalcpu)
|
||||||
;;
|
;;
|
||||||
Linux*)
|
Linux*)
|
||||||
# Linux-specific commands
|
|
||||||
CoreCount_Physical=$(nproc --all)
|
CoreCount_Physical=$(nproc --all)
|
||||||
CoreCount_Logical=$(nproc)
|
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"
|
update_git_repo "$path_harfbuzz" "$url_harfbuzz" "./scripts/build.sh"
|
||||||
|
|
||||||
pushd "$path_thirdparty" > /dev/null
|
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
|
if ls "$path_harfbuzz_dlls"/*.so 1> /dev/null 2>&1; then
|
||||||
cp "$path_harfbuzz_dlls"/*.so "$path_build/"
|
cp "$path_harfbuzz_dlls"/*.so "$path_build/"
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user