- docker/standalone: StaticPHP v3 (pinned) and JumPHP's registry: SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, OpenAL Soft static; php-sdl, sdl_image, sdl_mixer, sdl_ttf, PHP-OpenGL (JumPHP's patch), PHP-OpenAL built in - Linux: glibc 2.17 (Zig); X11, ALSA, PulseAudio and OpenGL loaded from the player's system (OpenGL through SDL_GL_GetProcAddress, nothing linked); tested with Pong and 3D Jumpball (23 MB each) - Windows: config.w32 of the extensions and the workflow .github/workflows/standalone.yml (run by hand) that publishes both micros as the release standalone-<key>; export:standalone downloads them - docs/standalone.md, README, AGENTS.md Co-Authored-By: Claude Opus 5.5 <[email protected]>
10 lines
450 B
Text
10 lines
450 B
Text
ARG_ENABLE('sdl_ttf', 'SDL2_ttf (JumPHP)', 'no');
|
|
if (PHP_SDL_TTF != 'no') {
|
|
jumphp_libs('sdl_ttf', ['SDL2_ttf-static.lib;SDL2_ttf.lib', 'freetype.lib;freetyped.lib']);
|
|
EXTENSION('sdl_ttf', 'sdl_ttf.c', PHP_SDL_TTF_SHARED, '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');
|
|
jumphp_includes('sdl_ttf');
|
|
ADD_EXTENSION_DEP('sdl_ttf', 'sdl');
|
|
AC_DEFINE('WITH_SDL_TTF', 1);
|
|
AC_DEFINE('HAVE_SDL_TTF_H', 1);
|
|
AC_DEFINE('HAVE_SDL_TTF', 1);
|
|
}
|