mirror of
https://github.com/Ed94/VEFontCache-Odin.git
synced 2025-08-06 06:52:44 -07:00
Updated build_sokol_library.sh for mac support
This commit is contained in:
@@ -36,7 +36,14 @@ fi
|
||||
|
||||
pushd "$path_sokol"
|
||||
|
||||
check_and_install() {
|
||||
# Detect the operating system
|
||||
OS=$(uname -s)
|
||||
|
||||
case "$OS" in
|
||||
Linux*)
|
||||
echo "Detected Linux operating system"
|
||||
# Check for OpenGL and X11 development libraries
|
||||
check_and_install() {
|
||||
if ! dpkg -s $1 &> /dev/null; then
|
||||
echo "$1 not found. Attempting to install..."
|
||||
sudo apt update && sudo apt install -y $1
|
||||
@@ -45,18 +52,30 @@ check_and_install() {
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
}
|
||||
# Uncomment these lines if you need to install these dependencies
|
||||
# check_and_install libgl1-mesa-dev
|
||||
# check_and_install libx11-dev
|
||||
# check_and_install libxcursor-dev
|
||||
# check_and_install libxrandr-dev
|
||||
# check_and_install libxinerama-dev
|
||||
# check_and_install libxi-dev
|
||||
# check_and_install libasound2-dev # ALSA development library
|
||||
|
||||
# Check for OpenGL and X11 development libraries
|
||||
# check_and_install libgl1-mesa-dev
|
||||
# check_and_install libx11-dev
|
||||
# check_and_install libxcursor-dev
|
||||
# check_and_install libxrandr-dev
|
||||
# check_and_install libxinerama-dev
|
||||
# check_and_install libxi-dev
|
||||
# check_and_install libasound2-dev # ALSA development library
|
||||
|
||||
# Run the build script
|
||||
./build_clibs_linux.sh
|
||||
echo "Running Linux build script..."
|
||||
./build_clibs_linux.sh
|
||||
;;
|
||||
Darwin*)
|
||||
echo "Detected macOS operating system"
|
||||
echo "Running macOS build script..."
|
||||
./build_clibs_macos.sh
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported operating system: $OS"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
popd
|
||||
|
||||
echo "Build process completed."
|
||||
|
Reference in New Issue
Block a user