uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 9aed17b97787d20113d6906138f9ef37b3109143
parent b53d5c428bf3eb98fb07083de5e416a7c8a5c4c3
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date:   Sun, 10 Oct 2021 20:07:40 +0100

Bundled SDL2 on macOS builds

Diffstat:
Mbuild.sh | 13++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/build.sh b/build.sh @@ -24,11 +24,18 @@ fi mkdir -p bin CFLAGS="-std=c89 -Wall -Wno-unknown-pragmas" -if [ -n "${MSYSTEM}" ]; then +case "$(uname -s 2>/dev/null)" in +MSYS_NT*) # MSYS2 on Windows UXNEMU_LDFLAGS="-static $(sdl2-config --cflags --static-libs)" -else + ;; +Darwin) # macOS + CFLAGS="${CFLAGS} -Wno-typedef-redefinition" + UXNEMU_LDFLAGS="/usr/local/lib/libSDL2.a $(sdl2-config --cflags --static-libs | sed -e 's/-lSDL2 //')" + ;; +Linux|*) UXNEMU_LDFLAGS="-L/usr/local/lib $(sdl2-config --cflags --libs)" -fi + ;; +esac if [ "${1}" = '--debug' ]; then