winzik/docker/standalone/registry/w32/openal.config.w32
David Nurdin c8337fd01f A game as one executable: bin/jumphp export:standalone (StaticPHP micro with SDL, OpenGL, OpenAL + the game as a PHAR)
- 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]>
2026-10-30 01:52:36 +01:00

10 lines
473 B
Text

ARG_WITH('openal', 'OpenAL Soft (JumPHP)', 'no');
if (PHP_OPENAL != 'no') {
jumphp_libs('openal', ['OpenAL32.lib;openal.lib', 'winmm.lib', 'ole32.lib', 'avrt.lib', 'uuid.lib']);
EXTENSION('openal', 'php_openal.c', PHP_OPENAL_SHARED, '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 /DAL_LIBTYPE_STATIC');
jumphp_includes('openal');
AC_DEFINE('WITH_OPENAL', 1);
AC_DEFINE('HAVE_AL_AL_H', 1);
AC_DEFINE('HAVE_AL_ALC_H', 1);
AC_DEFINE('HAVE_AL_ALEXT_H', 1);
}