Files
eepp/projects/macos/make.sh
Martín Lucas Golini cec4fa6e72 Add webp image format support (load and save).
Fix bug introduced in the last commit for UIDataBind initialization.
Change gmake2 in favor of gmake when using premake5 since it has been depreated in premake5-beta6 (hopefully I did not miss anything).
2025-06-04 21:02:38 -03:00

27 lines
750 B
Bash
Executable File

#!/bin/sh
cd $(dirname "$0")
USE_ARCH=
if command -v premake4 &> /dev/null
then
premake4 --file=../../premake4.lua --use-frameworks --disable-static-build --with-text-shaper gmake
elif command -v premake5 &> /dev/null
then
premake5 --file=../../premake5.lua --use-frameworks --disable-static-build --with-text-shaper gmake
USE_ARCH=arm64/
else
echo "Neither premake5 nor premake4 is available. Please install one."
exit 1
fi
cd ../../make/macosx/
make -j$(sysctl -n hw.ncpu) $@
cd ../../bin/
ln -sf ../libs/macosx/"$USE_ARCH"libeepp.dylib .
ln -sf ../libs/macosx/"$USE_ARCH"libeepp-debug.dylib .
if [ -f ../libs/macosx/"$USE_ARCH"libeepp-maps-debug.dylib ]; then
ln -sf ../libs/macosx/"$USE_ARCH"libeepp-maps-debug.dylib .
fi