Commit Graph

80 Commits

Author SHA1 Message Date
Sam Lantinga
34bdee53c6 Make the androidbuildlibs.sh script executable 2017-08-27 23:31:31 -07:00
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
Ryan C. Gordon
ee3f11d545 Disable static builds for static analysis.
There's really no sense in analyzing everything twice, and this makes the
job finish significantly faster.
2017-07-30 14:36:01 -04:00
Ryan C. Gordon
1f016d4598 windows-buildbot-zipper.bat: Check the correct path. 2017-07-30 14:09:18 -04:00
Ryan C. Gordon
8efe9cea0e Buildbot should zip up Visual Studio Win64 binaries, too. 2017-07-30 10:09:34 -04:00
Philipp Wiesemann
f1296a8652 Emscripten: Simplified option name in build script and README. 2017-04-02 21:33:24 +02:00
David Ludwig
e07e446a3f WinRT: removed Windows 8.0 from build-bot + NuGet package creation scripts
According to Steam's OS stats, Windows 8.0 use is pretty much nil.  Further,
Microsoft hasn't support Windows 8.0 development in any of their
actively-updated toolchains, and setting it up can be a pain.

In theory, SDL2 still supports Windows 8.0, however building of Windows 8.0
.dlls is no longer the default, if and when using the 'winrtbuild.*' scripts.
The MSVC 2012 project files for building Windows 8.0 dlls remain, though,
for the time being.
2017-02-25 21:23:12 -05:00
Sam Lantinga
43dbbd6375 Updated iOS fat build 2017-02-20 10:55:49 -08:00
Ryan C. Gordon
5fcd454a16 emscripten-buildbot.sh: let user override default SDKDIR. 2017-01-06 20:00:17 -05:00
Sam Lantinga
0badbddef9 Run sed in binary mode so we don't have to worry about fixing line endings 2017-01-01 18:47:29 -08:00
Sam Lantinga
9e6d729e2d Fixed typo in copyright update script 2017-01-01 18:36:35 -08:00
Sam Lantinga
0f586d5808 Convert some files back into DOS line endings after updating copyright 2017-01-01 18:32:57 -08:00
Ryan C. Gordon
ff56c7b300 checker-buildbot.sh: Disable warnings that aren't explicitly static analysis. 2016-11-25 14:16:27 -05:00
Ryan C. Gordon
fd250bd636 checker-buildbot.sh: Upgraded to checker-279, deal with zero bugs detected. 2016-11-24 21:13:23 -05:00
Ryan C. Gordon
0a294a7ba0 nacl: pepper_49 SDK apparently has problems, move buildbot back to pepper_47.
(this is still a big leap forward from the previous buildbot target of
pepper_35!)
2016-11-10 11:26:44 -05:00
Ryan C. Gordon
920bc237da Upgraded buildbot to NaCL SDK pepper_49 (the current stable release). 2016-11-08 01:12:54 -05:00
Sam Lantinga
6a9ee8fa4b 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.
winterknight

The showrev.sh script shows the tip, instead of the current hg revision. This can be mismatched if one were to use hg update -r ??? to revert to a previous revision.

Patch uses parents instead of tip, which will show the revision that the source is compiled with, instead of the latest revision that the user who is compiling has downloaded.
2016-10-01 12:52:55 -07:00
Ryan C. Gordon
45553ac4db emscripten-buildbot.sh: exit with an error if configure/make fail. 2016-09-06 12:18:52 -04:00
Philipp Wiesemann
e7a9095f55 Android: Fixed androidbuild.sh not working on OS X (thanks, Steffen!).
Fixes Bugzilla .
2016-07-18 22:01:01 +02:00
Philipp Wiesemann
ce456cfb8e Mac: Updated availability macro in build script. 2016-06-24 19:06:06 +02:00
Alex Szpakowski
4a468739f8 Removed Mac OS 10.5 support (bug ). Also fixed a warning about deprecated Carbon code when using SDL_audio (bug , thanks Dominik!) 2016-05-21 00:20:52 -03:00
Ryan C. Gordon
06129f6de9 Fixed buildbot's static analysis script to enable assertions.
This removes false positives. Apparently someone forced the default CMake
builds to use -O3, turning these off by default.  :/
2016-01-08 07:21:15 -05:00
Sam Lantinga
68a3272852 Fixed sed error on Mac OS X and updated copyright on a few last files 2016-01-02 10:38:51 -08:00
David Ludwig
5790f59f88 WinRT: minor tweak to NuGet package naming 2015-12-02 08:04:17 -05:00
David Ludwig
3b79ab4c2b WinRT: allowed NuGet packaging code to get hg revision regardless of cwd 2015-12-02 07:58:23 -05:00
David Ludwig
89898d8341 WinRT: added NuGet-package creation support to WinRT build script 2015-12-01 22:07:24 -05:00
David Ludwig
0020aa94c8 WinRT: made WinRT build script create Win10/UWP .dll files 2015-11-30 21:11:33 -05:00
Philipp Wiesemann
682604b2f3 Android: Changed androidbuild.sh to use path from variable. 2015-07-31 20:15:02 +02:00
Philipp Wiesemann
c5857ab498 Mac OS X: Fixed typo in build script comment. 2015-06-26 20:12:10 +02:00
Philipp Wiesemann
0e45984fa0 Fixed crash if initialization of EGL failed but was tried again later.
The internal function SDL_EGL_LoadLibrary() did not delete and remove a mostly
uninitialized data structure if loading the library first failed. A later try to
use EGL then skipped initialization and assumed it was previously successful
because the data structure now already existed. This led to at least one crash
in the internal function SDL_EGL_ChooseConfig() because a NULL pointer was
dereferenced to make a call to eglBindAPI().
2015-06-21 17:33:46 +02:00