- 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
9 lines
792 B
Text
9 lines
792 B
Text
dnl JumPHP's Android build of sdl (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], [sdl (JumPHP)], [AS_HELP_STRING([--enable-sdl], [sdl])], [no])
|
|
if test "$PHP_SDL" != "no"; then
|
|
AC_DEFINE(HAVE_SDL2, 1, [ ])
|
|
AC_DEFINE(HAVE_SDL_GETREVISIONNUMBER, 1, [ ])
|
|
PHP_NEW_EXTENSION(sdl, src/blendmode.c src/cpuinfo.c src/error.c src/event.c src/filesystem.c src/glcontext.c src/joystick.c src/keyboard.c src/messagebox.c src/mouse.c src/mutex.c src/php_sdl.c src/pixels.c src/platform.c src/power.c src/rect.c src/render.c src/rwops.c src/sdl.c src/shape.c src/surface.c src/timer.c src/version.c src/video.c src/window.c, $ext_shared)
|
|
PHP_ADD_BUILD_DIR($ext_builddir/src)
|
|
fi
|