mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-24 15:23:13 +03:00
- Introduce DragAndDrop with capability queries, copy-only file offers, image previews, cancellation, and completion callbacks. - Implement XDND and OLE sources with safe input recovery and window teardown. - Keep SDL2 and SDL3 presentation and input handling in their own backends. - Load X11 dynamically without adding a link dependency. - Reuse Image, URI, and timing APIs; fix Image::fillWithColor(). - Add a manual playground, integration tests, and consumer documentation. - Migrate SDK builds and packaging to SDL3 and fix bundled runtime lookup.
42 lines
1.2 KiB
Bash
Executable File
42 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
cd $(dirname "$0")
|
|
|
|
BACKEND=SDL2
|
|
DEBUG_SYMBOLS=
|
|
for arg do
|
|
shift
|
|
case "$arg" in
|
|
--backend=SDL2|--backend=sdl2) BACKEND=SDL2 ;;
|
|
--backend=SDL3|--backend=sdl3) BACKEND=SDL3 ;;
|
|
--backend=*) echo "Unsupported backend: ${arg#*=}" >&2; exit 1 ;;
|
|
--with-debug-symbols) DEBUG_SYMBOLS=--with-debug-symbols ;;
|
|
*) set -- "$@" "$arg" ;;
|
|
esac
|
|
done
|
|
|
|
USE_ARCH=
|
|
if command -v premake4 &> /dev/null
|
|
then
|
|
premake4 --file=../../premake4.lua --disable-static-build --with-backend="$BACKEND" ${DEBUG_SYMBOLS:+$DEBUG_SYMBOLS} gmake || exit 1
|
|
elif command -v premake5 &> /dev/null
|
|
then
|
|
premake5 --file=../../premake5.lua --disable-static-build --with-backend="$BACKEND" ${DEBUG_SYMBOLS:+$DEBUG_SYMBOLS} gmake || exit 1
|
|
USE_ARCH=arm64
|
|
else
|
|
echo "Neither premake5 nor premake4 is available. Please install one."
|
|
exit 1
|
|
fi
|
|
|
|
cd ../../make/macosx/
|
|
|
|
JOBS=${EEPP_BUILD_JOBS:-$(sysctl -n hw.ncpu 2>/dev/null)}
|
|
if ! [ "$JOBS" -gt 0 ] 2>/dev/null; then
|
|
JOBS=$(getconf NPROCESSORS_ONLN 2>/dev/null)
|
|
fi
|
|
if ! [ "$JOBS" -gt 0 ] 2>/dev/null; then
|
|
echo "Could not determine a safe build job count." >&2
|
|
exit 1
|
|
fi
|
|
|
|
make -j"$JOBS" "$@"
|