winzik/tools/android/ext/sdl_image.m4
David Nurdin ea0f400a15 A game as a native Android app: bin/jumphp android <game> (PHP 8.5, SDL2, OpenGL ES, OpenAL in the app, no browser)
- tools/android/build.sh (docker/android-native): PHP 8.5 embed cross-built with the NDK r29 per ABI (arm64-v8a,
  x86_64) with JumPHP's extensions, gd (libpng) and bcmath; SDL's Android project; the game unpacked from the APK
  by main.c on its first launch; signed .aab + .apk
- bin/jumphp android: the workflow in the project's GitHub (tools/android/workflow.yml), the upload key in its
  secrets after a yes, the build and the release on GitHub; --local in Docker
- engine: on-screen controls drawn by the engine (JUMPHP_TOUCH_CONTROLS), the game's orientation on Android,
  Platform::isAbsolutePath (Windows paths: sounds, fonts, maps, 3D)
- tools/stage-game.sh: the game's files, shared by export:standalone and android
- docs/android-native.md: the command, what is in the app, Google Play step by step

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018nX3d2yxMGf7KC1TN3rwew
2026-10-30 04:26:16 +01:00

9 lines
517 B
Text

dnl JumPHP's Android build of sdl_image (tools/android/build.sh): no link test (cross-compiled; SDL, SDL_image... are
dnl linked into the app by Gradle), the headers given by CPPFLAGS.
PHP_ARG_ENABLE([sdl_image], [sdl_image (JumPHP)], [AS_HELP_STRING([--enable-sdl_image], [sdl_image])], [no])
if test "$PHP_SDL_IMAGE" != "no"; then
AC_DEFINE(HAVE_SDL_IMAGE, 1, [ ])
AC_DEFINE(HAVE_SDL_IMAGE_FEATURE, 1, [ ])
PHP_NEW_EXTENSION(sdl_image, php_sdl_image.c, $ext_shared)
PHP_ADD_EXTENSION_DEP(sdl_image, sdl)
fi