winzik/docker/engine-wasm/config-sdl.m4
David Nurdin ffefc796f8 JumPHP: PHP framework for retro 2D games (desktop + WebAssembly)
Engine (tiles, collisions, entities, sound, menus, network), skeleton, Pong and
Breakout, Docker-only CLI bin/jumphp, FrankenPHP web server, AGENTS.md guide.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 18:11:08 +01:00

11 lines
584 B
Text

PHP_ARG_ENABLE(sdl, whether to enable SDL support,
[ --enable-sdl Enable SDL support], no)
if test "$PHP_SDL" != "no"; then
AC_MSG_NOTICE([Building php-sdl with Emscripten SDL support])
CFLAGS="$CFLAGS -sUSE_SDL=2"
CPPFLAGS="$CPPFLAGS -sUSE_SDL=2"
LDFLAGS="$LDFLAGS -sUSE_SDL=2"
PHP_NEW_EXTENSION(sdl, blendmode.c cpuinfo.c error.c event.c filesystem.c glcontext.c joystick.c keyboard.c messagebox.c mouse.c mutex.c php_sdl.c pixels.c platform.c power.c rect.c render.c rwops.c sdl.c shape.c surface.c timer.c version.c video.c window.c, , -sUSE_SDL=2, -sUSE_SDL=2)
fi