Commit graph

146 commits

Author SHA1 Message Date
Sam Lantinga
d57df88e87 Updated config.guess and config.sub, added config.sub.patch for NaCl and Emscripten build support 2017-09-09 08:03:23 -07:00
Sam Lantinga
8da41824a7 Make the androidbuildlibs.sh script executable 2017-08-27 23:31:31 -07:00
Sam Lantinga
6cfc67f5ef 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
59c39daef9 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
3fc1531a34 windows-buildbot-zipper.bat: Check the correct path. 2017-07-30 14:09:18 -04:00
Ryan C. Gordon
9f32a9b1b1 Buildbot should zip up Visual Studio Win64 binaries, too.
--HG--
extra : rebase_source : ae16b5a86fb9903dd6a72b90c1a34164f4342105
2017-07-30 10:09:34 -04:00
Philipp Wiesemann
4262b63ea9 Emscripten: Simplified option name in build script and README. 2017-04-02 21:33:24 +02:00
David Ludwig
9181f3f80f 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
cc640593fa Updated iOS fat build 2017-02-20 10:55:49 -08:00
Ryan C. Gordon
29c6f748df emscripten-buildbot.sh: let user override default SDKDIR. 2017-01-06 20:00:17 -05:00
Sam Lantinga
ca6961fa33 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
46f2d195d1 Fixed typo in copyright update script 2017-01-01 18:36:35 -08:00
Sam Lantinga
818a882d93 Convert some files back into DOS line endings after updating copyright 2017-01-01 18:32:57 -08:00
Ryan C. Gordon
26b4eb69b0 checker-buildbot.sh: Disable warnings that aren't explicitly static analysis. 2016-11-25 14:16:27 -05:00
Ryan C. Gordon
5825b773fd checker-buildbot.sh: Upgraded to checker-279, deal with zero bugs detected.
--HG--
extra : rebase_source : 8a06a3ac273a484a1207b5ea303c4690c9afcea5
2016-11-24 21:13:23 -05:00
Ryan C. Gordon
44aa173e4a 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
81d6b69a0a Upgraded buildbot to NaCL SDK pepper_49 (the current stable release). 2016-11-08 01:12:54 -05:00
Sam Lantinga
e636f59467 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
450af28fd6 emscripten-buildbot.sh: exit with an error if configure/make fail.
--HG--
extra : rebase_source : 27e3fbb87e49bfb7366034054f997b3946a1486e
2016-09-06 12:18:52 -04:00
Philipp Wiesemann
70603ac944 Android: Fixed androidbuild.sh not working on OS X (thanks, Steffen!).
Fixes Bugzilla #2429.
2016-07-18 22:01:01 +02:00
Philipp Wiesemann
246255b5b2 Mac: Updated availability macro in build script. 2016-06-24 19:06:06 +02:00
Alex Szpakowski
e2f5a3023a 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
Ryan C. Gordon
850815b7fa 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
c4420fc9de 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
01fac9b2f7 WinRT: minor tweak to NuGet package naming
--HG--
rename : VisualC-WinRT/SDL2main-WinRT-CoreWindow.nuspec => VisualC-WinRT/SDL2main-WinRT-NonXAML.nuspec
rename : VisualC-WinRT/SDL2main-WinRT-CoreWindow.targets => VisualC-WinRT/SDL2main-WinRT-NonXAML.targets
2015-12-02 08:04:17 -05:00
David Ludwig
c174bd0e14 WinRT: allowed NuGet packaging code to get hg revision regardless of cwd 2015-12-02 07:58:23 -05:00
David Ludwig
357886616e WinRT: added NuGet-package creation support to WinRT build script 2015-12-01 22:07:24 -05:00
David Ludwig
1ae3259762 WinRT: made WinRT build script create Win10/UWP .dll files 2015-11-30 21:11:33 -05:00
Philipp Wiesemann
a40a5a19bd Android: Changed androidbuild.sh to use path from variable. 2015-07-31 20:15:02 +02:00
Philipp Wiesemann
fa861eb3cc Mac OS X: Fixed typo in build script comment. 2015-06-26 20:12:10 +02:00
David Ludwig
6f1fc0d165 WinRT: made sure build script generates Release-built binaries, by default
winrtbuild.bat/.ps1 were generating Debug-built binaries, in some cases.
This change makes sure that Release mode is the default.
2015-06-14 20:15:36 -04:00
Sam Lantinga
85c40e45b7 Script from Sylvain to automate updating the copyright year 2015-05-26 06:27:12 -07:00
Ryan C. Gordon
64accce776 Some Raspberry Pi build fixes (including Raspberry Pi 2 support).
Fixes Bugzilla #2879.

--HG--
extra : rebase_source : b9b8a69e971e5bf910c0dc592b5d9bf3c15e13ca
2015-04-11 05:58:37 +00:00
Ryan C. Gordon
038a4f862a Actually fix Unix scripts this time. :) 2014-12-24 13:23:48 -05:00
Ryan C. Gordon
1d6b450b2c I don't know if Unix scripts are useful at all on Emscripten, but fix them up. 2014-12-24 13:13:19 -05:00
Ryan C. Gordon
eab9145ae3 A little more work on the Emscripten buildbot script.
Should upload tarballs now, etc.
2014-12-24 13:03:20 -05:00
Ryan C. Gordon
79012b522c Added buildbot script for Emscripten port. 2014-12-24 12:49:35 -05:00
Ryan C. Gordon
de88474dda Initial merge of Emscripten port!
With this commit, you can compile SDL2 with Emscripten
( http://emscripten.org/ ), and make your SDL-based C/C++ program
into a web app.

This port was due to the efforts of several people, including: Charlie Birks,
Sathyanarayanan Gunasekaran, Jukka Jylänki, Alon Zakai, Edward Rudd,
Bruce Mitchener, and Martin Gerhardy. (Thanks, everyone!)

--HG--
extra : rebase_source : 97af74c8a5121e926ebe89f123536b5dd6681695
2014-12-18 00:19:52 -05:00
Ryan C. Gordon
b9aeac24fd Fixed some paths in the new buildbot windows zipper script. 2014-12-04 02:24:22 -05:00
Ryan C. Gordon
b612510fb2 Added a script to handle packing up Windows builds for the buildbot. 2014-12-04 02:09:07 -05:00
Ryan C. Gordon
241c43fac3 Fixed gcc-fat.sh failing to build Objective-C sources correctly.
This would fail if the compiler was given a .m file _and_ no "-o" option; it
would fail to automatically calculate the correct .o filename in this
situation.

Thanks to Ethan Lee for the help tracking this one down!

--HG--
extra : rebase_source : 3620d161d8c52613e864e156379837db5b8b0be6
2014-11-14 11:21:15 -05:00
David Ludwig
f21e739e93 WinRT: removed '-' from build script file names
Most of the other build scripts don't include a '-' in their file names.  This
change makes the WinRT build scripts use the same convention.

--HG--
rename : build-scripts/winrt-build.bat => build-scripts/winrtbuild.bat
rename : build-scripts/winrt-build.ps1 => build-scripts/winrtbuild.ps1
2014-11-03 13:07:51 -05:00
David Ludwig
9358dcf12b WinRT: added scripts to build Release copies of SDL for all WinRT variants
These variants include:
 - Windows 8.0 for x86
 - Windows 8.0 for x64
 - Windows 8.0 for ARM
 - Windows 8.1 for x86
 - Windows 8.1 for x64
 - Windows 8.1 for ARM
 - Windows Phone 8.0 for x86 (for use with the Windows Phone emulator)
 - Windows Phone 8.0 for ARM
 - Windows Phone 8.1 for x86 (for use with the Windows Phone emulator)
 - Windows Phone 8.1 for ARM

--HG--
extra : rebase_source : 776b8a3680350369ed85c7769540211274bf204e
2014-11-03 08:58:49 -05:00
Ryan C. Gordon
9efa4ff286 Fixed the cmake-guided static analysis and use it by default.
The configure script fails on it on Mac OS X, now, for whatever reason.

Hopefully gets our static analysis buildslave running again!

--HG--
extra : rebase_source : 57f2c5512c5be3b7233132c9ec5d0bb1cbd86c6c
2014-08-20 01:21:45 -04:00
Sam Lantinga
81a400cd0c Fixed indentation for pnacl configuration 2014-07-07 11:13:19 -07:00
Sam Lantinga
c3369ca83e Removed references to Raspberry Pi 2014-06-21 11:16:26 -07:00
Ryan C. Gordon
8ebcced17a Added script for buildbot to use on NaCl target. 2014-06-20 22:38:36 -04:00
Gabriel Jacobo
664169ab4b Fix another NaCl warning 2014-06-20 11:50:31 -03:00
Gabriel Jacobo
e278ae7eb0 Initialize nacl_io, removes SDL_NaClMount/Umount
It's just easier to use nacl_io's mount/umount directly.
2014-06-20 10:59:51 -03:00
Gabriel Jacobo
c6434e2416 Adds missing Makefile for NACL test and a couple of smaller fixes 2014-06-06 18:33:17 -03:00