sdl2_frt/build-scripts
Sam Lantinga e977225937 Fixed bug 2839 - No way to create pre-built libraries for Android
Mark Callow

README-android says to copy or link the SDL source tree to the jni folder in your Android project. It is not desirable to have to compile SDL with every application; furthermore the Android NDK has support for prebuilt libraries.

Attached is script (to be put in build-scripts) that builds the Android version of the libraries. The script builds both the existing SDL2 module and a new SDL2_main module. This is a static library containing the code from src/main/android/SDL_android_main.c. Also attached is a patch for Android.mk adding this module.

Note that when building an application's native .so using this prebuilt libSDL2main, you must use a link option, such as --whole-archive, that forces inclusion of the code in the .so because the functions in SDL_android_main are called only from Java.
2017-08-13 17:59:59 -07:00
..
androidbuild.sh Android: Fixed androidbuild.sh not working on OS X (thanks, Steffen!). 2016-07-18 22:01:01 +02:00
androidbuildlibs.sh Fixed bug 2839 - No way to create pre-built libraries for Android 2017-08-13 17:59:59 -07:00
checker-buildbot.sh Disable static builds for static analysis. 2017-07-30 14:36:01 -04:00
config.guess Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
config.sub Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
emscripten-buildbot.sh Emscripten: Simplified option name in build script and README. 2017-04-02 21:33:24 +02:00
g++-fat.sh Removed Mac OS 10.5 support (bug #3137). Also fixed a warning about deprecated Carbon code when using SDL_audio (bug #3127, thanks Dominik!) 2016-05-21 00:20:52 -03:00
gcc-fat.sh Mac: Updated availability macro in build script. 2016-06-24 19:06:06 +02:00
install-sh Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
iosbuild.sh Updated iOS fat build 2017-02-20 10:55:49 -08:00
ltmain.sh Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
mkinstalldirs Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
nacl-buildbot.sh nacl: pepper_49 SDK apparently has problems, move buildbot back to pepper_47. 2016-11-10 11:26:44 -05:00
naclbuild.sh Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
raspberrypi-buildbot.sh Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
showrev.sh Fixed bug 3276 - build-scripts/showrev.sh prints the tip, which isn't useful if you're on a different -# branch, or just not sync'd to the tip. 2016-10-01 12:52:55 -07:00
strip_fPIC.sh Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
update-copyright.sh Run sed in binary mode so we don't have to worry about fixing line endings 2017-01-01 18:47:29 -08:00
updaterev.sh Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
windows-buildbot-zipper.bat windows-buildbot-zipper.bat: Check the correct path. 2017-07-30 14:09:18 -04:00
winrtbuild.bat Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
winrtbuild.ps1 WinRT: removed Windows 8.0 from build-bot + NuGet package creation scripts 2017-02-25 21:23:12 -05:00