kc3-lang/SDL/CMakeLists.txt

Branch :


Log

Author Commit Date CI Message
496337b3 2017-08-09 19:03:10 Fixed bug 3651 - CMake build does not install CMake package configuration tschwinger@elitemail.org Most ironically, although autoconf/automake-based builds install (pretty half-assed) CMake package configuration files, they're missing in installations resulting from CMake-based builds entirely. A proper configuration file typically also loads target exports (implemented in patch 3572, also fixing this issue - see my comment on that issue for details). I believe it would be best to let the dinosaurs go extinct and redirect all build efforts to the CMake end for two reasons: 1. It potentially provides the best user experience, but you'd have to give it some love and ship with less quirky buildfiles. 2. It would force distros to build SDL via CMake and thus would ensure target exports are actually available everywhere. Various CMake patches I submitted today in summary (directly converted from the HG commits and `am`d onto a fork of a git mirror that happened to be on `tip`). https://github.com/tschw/SDL/commits/patched Fixing #2576 #3572, #3613, and this fresh ticket, which is almost entirely advertisement ;). These already do to make SDL much less of a quirky fella to have in your dependency tree...
56363ebf 2017-08-02 10:22:48 Fixed bug 3690 - SDL2 KMS/DRM render context support Manuel The attached patch adds support for KMS/DRM context graphics. It builds with no problem on X86_64 GNU/Linux systems, provided the needed libraries are present, and on ARM GNU/Linux systems that have KMS/DRM support and a GLES2 implementation. Tested on Raspberry Pi: KMS/DRM is what the Raspberry Pi will use as default in the near future, once the propietary DispmanX API by Broadcom is overtaken by open graphics stack, it's possible to boot current Raspbian system in KMS mode by adding "dtoverlay=vc4-kms-v3d" to config.txt on Raspbian's boot partition. X86 systems use KMS right away in every current GNU/Linux system. Simple build instructions: $./autogen.sh $./configure --enable-video-kmsdrm $make
3c09265d 2017-07-10 18:31:28 Fixed bug 3609 - Windows build fails due to conflicting types for 'XINPUT_GAMEPAD_EX' Ozkan Sezer (In reply to Ryan C. Gordon from comment #9) > I've put this patch in as https://hg.libsdl.org/SDL/rev/7213ae46e870 ...can > you verify this works on the latest MinGW? > > Thanks, > --ryan. This patch is wrong: the structure in question has nothing to do with any gcc version in use. I suggest reverting this adding a conigury check for it, instead. Something like the following should do it: (configure needs regenerating.)
c1cd93e5 2017-06-12 16:35:34 Fixed bug 3670 - CMake IOS haptic error
e5f4a71f 2017-06-11 16:00:45 cmake: iOS haptic section was referencing power source code (thanks, Martin!). Fixes Bugzilla #3670.
2b5a5c51 2017-06-08 22:07:55 Android build fixes -Enabling checking for GCC_ATOMICS also on clang by default. This way all Android ABIs build successfully -Android cmake: Threading was not enabled correctly -Android cmake: Timers and dynamic lib loading were not included in the sources
d9039f23 2017-06-08 13:27:58 jack: Initial shot at a JACK audio target. http://jackaudio.org/ Fixes Bugzilla #2163. (with several more commits following to improve this code.)
dc8a22cd 2017-06-06 13:39:29 cmake: don't use /NODEFAULTLIB if we are using the C runtime (thanks, Rob!). Fixes Bugzilla #3640.
11289b76 2017-06-04 21:25:57 Android cmake build fixed to work with the official android gradle plugin
a7fc2822 2017-05-24 19:56:59 audio: rename bsd target to netbsd. Apparently this is no longer a generic BSD audio target, and hasn't been for years, so rename it for NetBSD.
0e7530b0 2017-02-23 22:38:04 cmake: add WASAPI audio target to the build (thanks, Martin!). Fixes Bugzilla #3588.
5ea0c893 2017-01-24 12:20:41 CMake: fixed logic error in setting -mfpmath=387. Fixes Bugzilla #3565.
3594bf8e 2017-01-23 01:05:44 audio: Wired up new SSE code to build system.
df25258a 2017-01-06 20:43:53 Added configure and cmake support for libsamplerate
35430a73 2016-11-17 01:15:16 cpuinfo: first attempt at SDL_HasNEON() implementation.
f3502c3c 2016-10-14 01:04:21 Fixed building with cmake when fcitx isn't installed
34eebfba 2016-10-03 03:42:10 Fixed setting the version info in the shared library when using CMake Ray Molenkamp When building sdl as shared lib, the version info is lacking in the final binary. CMake gathers the right resource files into ${VERSION_SOURCES} but then doesn't do anything with them.
c9be93c6 2016-10-01 15:11:18 Fixed bug 3078 - cmake: fix sdl2.m4 install location on cross hosts Timo Gurr On cross hosts running autotools for SDL2_gfx-1.0.1 fails to find sdl2.m4: eautoreconf: running in /var/tmp/paludis/build/media-libs-SDL2_gfx-1.0.1/work/SDL2_gfx-1.0.1 ... aclocal aclocal-1.13: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:128: warning: macro 'AM_PATH_SDL2' not found in library libtoolize --copy --force --automake aclocal aclocal-1.13: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:128: warning: macro 'AM_PATH_SDL2' not found in library autoconf configure.in:128: error: possibly undefined macro: AM_PATH_SDL2 If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. * Failed Running autoconf ! SDL2 installs it to /usr/x86_64-pc-linux-gnu/share/aclocal on cross hosts, attached patch makes use of CMAKE_INSTALL_FULL_DATAROOTDIR to support correctly installing to the arch independent location /usr/share/aclocal.
571f4ce8 2016-10-01 17:05:29 Fix CMake setting an incorrect video backend on iOS
671f2a49 2016-10-01 12:54:48 Fixed bug 3268 - CMAKE: ios fixes Martin Gerhardy ios is not properly handled in the cmake file. this patch is a start to do so - it properly builds for me with it.
bb24662c 2016-10-01 12:48:08 Fixed bug 3301 - IBus support on Linux with CMake joe.gsoc16 I recently looked into Unicode support in SDL2 and realized that SDL_TEXTEDITING doesn't get triggered at all (Japanese IME). According to others on IRC it works fine on Windows/Mac but not for me on (arch)Linux. When compiling SDL with autotools, IBus support is enabled by default but not so with CMake. I never used CMake before but got it working and also included that pkg-config determines flags for dbus (FIXME in CMakeLists).
e45698d2 2016-09-28 22:24:01 Updated version to 2.0.5 in preparation for release
e5070d20 2016-09-15 08:57:56 Fixed set of libraries needed to build on Mac OS X
93d42e2d 2016-09-15 08:46:14 Hopefully fixed the cmake build on Mac OS X
264e996e 2016-09-13 00:03:50 Fix CMake CMAKE_REQUIRED_FLAGS handling to preserve existing CMake flags required by Emscripten toolchain.
42feccea 2016-09-13 00:03:40 Include timers when using cmake (#29)
6188c334 2016-09-04 01:42:46 mac: Patched to compile with CMake project.
2c3bf665 2016-03-18 22:15:53 Windows CMake: don't try to link dxguid, it's unavailable when using Visual Studio's XP-compatible toolset.
e5d575b9 2016-01-16 21:58:49 Expose the EGL display and window for Vivante SDL windows
1615b2e2 2016-01-08 07:32:51 CMake: only set "-O3 -g" defaults if CMAKE_BUILD_TYPE wasn't set at all.
757e994e 2016-01-07 17:21:50 Fixed --enable-new-dtags check with cmake
dc5f05bb 2016-01-07 16:42:30 Use --enable-new-dtags to set RUNPATH rather than RPATH so that LD_LIBRARY_PATH is not overridden by the application.
bb1e2bd0 2016-01-05 05:44:32 CMake: Turned off Mac OS X rpath warning kludge. Apparently CMake errors out if it doesn't know this policy, and we don't otherwise require CMake 3.0 yet. Sigh.
e6e62bee 2016-01-05 01:26:32 CMake: Let static libraries optionally be built with Position Independent Code.
008a6abd 2016-01-05 01:25:54 CMake: use the old MACOSX_RPATH behavior (for now), silence the warning.
1373e890 2016-01-04 22:58:38 Try to build with GCC's -Wdeclaration-after-statement. This will help catch things that'll cause issues on C89 compilers before we send them on to fail on Buildbot.
1240f8e0 2016-01-03 20:52:44 CMake: Don't make a libSDL2.so symlink on Mac OS X (do .dylib instead).
b0d8dfcd 2015-12-31 15:26:40 CMake: Fixed building for Windows with VS2015 (bug #3080). - Don't try to link with the Visual C runtime. - Avoid code generation that would use functions from the VC runtime.
61518bce 2015-12-29 00:57:24 CMake: Changes to get CMake project to work with Android (thanks, Martin!). Fixes Bugzilla #3194. (but note that Bugzilla #3200 still needs to be resolved to get this really going on Android, at a minimum.)
7e679ed2 2015-12-29 00:36:03 CMake: fixed a failure to reset CMAKE_REQUIRED_FLAGS (thanks, Martin!). This would break Emscripten builds with the CMake project files (etc). Fixes Bugzilla #3197.
c9927bbb 2015-12-29 00:24:37 CMake: don't try to use the Linux joystick code on Android (thanks, Martin!). Fixes Bugzilla #3201.
7ca3b270 2015-12-29 00:02:43 CMake: Fixed to work on Windows 8 SDK (thanks, Martin!). Fixes Bugzilla #3207.
42f282cc 2015-08-28 19:10:46 Fix bug 3081: CMake configuration auto-disables OpenGL ES support on Windows. Thanks to EntranceJew for the patch.
d154e6c6 2015-08-28 19:05:24 Fixed bug 3098: CMake project never enables xinput support on Windows. Thanks to EntranceJew for debugging the issue.
0e45984f 2015-06-21 17:33:46 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().
3a84f7b5 2015-06-18 22:34:39 CMake fixes for MingW (thanks, Ozkan!). - ignore DXSDK_DIR for mingw environment - use dxerr8 instead of dxerr for mingw. Partially fixes Bugzilla #3016.
aee05522 2015-06-13 10:47:55 Fixed bug 3009 - Cannot compile SDL2 on Windows CMakeLists.txt was missing handling for running CMake with -DDIRECTX=0
f5dce3c6 2015-06-07 20:15:09 CMake: default to shared library builds being enabled.
75a3ad1d 2015-04-22 20:25:19 CMake: Slightly better fix for installation target (thanks, Anthony!). Fixes Bugzilla #2474.
b72938c8 2015-04-20 12:22:44 Windows: Always set the system timer resolution to 1ms by default. An existing hint lets apps that don't need the timer resolution changed avoid this, to save battery, etc, but this fixes several problems in timing, audio callbacks not firing fast enough, etc. Fixes Bugzilla #2944.
fe6c797c 2015-04-10 23:30:31 Fixed an iOS view orientation issue when SDL_GL_CreateContext or SDL_CreateRenderer is called.
e7ba78a3 2015-04-07 21:52:22 CMake: Dependency variable for FUSIONSOUND_SHARED was wrong (thanks, Kaleb!). Fixes Bugzilla #2055.
9470f4a2 2015-03-24 03:21:57 Better fixes for CMake subsystem enabling (thanks, Sebastian!). Fixes Bugzilla #2875.
3c76d2ff 2015-03-20 21:57:15 Several corrections to the CMake project files (thanks, Ozkan!). Fixes Bugzilla #2732.
70191a93 2015-03-20 11:51:03 CMake: Don't search for the OpenGL library on Mac OS X. It's always there.
c1091f32 2015-03-20 10:35:42 CMake project files no longer force you to link against Wayland or Mir libs.
d8988ea8 2015-03-20 10:02:45 Fixed some defaults in CMake project file. Fixes not finding dlopen(), etc.
b88ca1b4 2015-02-10 16:28:56 the last parameter of XChangeProperty is the number of elements.. and when the element format is 32.. the element is "long" so we have 5 long elements here. Yes this seems confusing as on mac+linux Long is either 32 or 64bits depending on the architecture, but this is how the X11 protocol is defined. Thus 5 is the correct value for the nelts here. Not 5 or 10 depending on the architecture. More info on the confusion https://bugs.freedesktop.org/show_bug.cgi?id=16802
b48e54aa 2015-01-26 22:00:29 Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation Jonas Kulla The configure script didn't differentiate between Linux and Android, unconditionally compiling in the unix implementation of SDL_sysfilesystem.c. I'm probably one of the very few people building SDL for android using classic configure + standalone toolchain, so this has gone undetected all along.
f15d13d6 2015-01-18 02:50:14 CMake: Removed unused variable (thanks, Felix!). "MACOSX_COREAUDIO" is actually an internal #define set up elsewhere, and this CMake var is never exported past the CMake script anyhow. Partially fixes Bugzilla #2807.
c4275f95 2015-01-17 04:36:15 Fixed bug 2807 - Not using CoreAudio on OS X when built via CMake
fe40a172 2014-12-18 00:19:52 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!)
77ccc412 2014-12-13 02:40:52 CMake: Minor cleanup up on the new SDL_*_ENABLED_BY_DEFAULT vars.
a228b67d 2014-12-13 02:33:52 CMake: Replace "else(condition)" with "else()", etc. Bumped required CMake version to 2.8. Thanks to the SDL/Emscripten porting team for this cleanup.
70438be2 2014-12-03 10:55:23 WinRT: fixed bug whereby SDL would override an app's default orientation WinRT apps can set a default, preferred orientation via a .appxmanifest file. SDL was overriding this on app startup, and making the app use all possible orientations (landscape and portrait). Thanks to Eric Wing for the heads up on this!
9c398852 2014-11-22 22:20:40 Corrected header file documentation comment.
251ca855 2014-10-15 09:18:17 Expanded the iMX6 video driver into a general Vivante video driver that works across multiple SoCs
24c86b55 2014-09-11 19:24:42 [X11] Reconcile logical keyboard state with physical state on FocusIn since the window system doesn't do it for us like other platforms. This prevents sticky keys and missed keys when going in and out of focus, for example Alt would appear to stick if switching away from an SDL app with Alt-Tab and had to be pressed again. CR: Sam
50cc4efe 2014-09-10 08:54:01 Freescale i.MX6 video driver --- CMakeLists.txt | 2 + cmake/sdlchecks.cmake | 20 +++ configure | 51 +++++++ configure.in | 28 ++++ include/SDL_config.h.cmake | 1 + include/SDL_config.h.in | 1 + src/video/SDL_sysvideo.h | 3 + src/video/SDL_video.c | 3 + src/video/mx6/SDL_mx6events.c | 45 ++++++ src/video/mx6/SDL_mx6events_c.h | 31 +++++ src/video/mx6/SDL_mx6opengles.c | 211 ++++++++++++++++++++++++++++ src/video/mx6/SDL_mx6opengles.h | 68 +++++++++ src/video/mx6/SDL_mx6video.c | 301 ++++++++++++++++++++++++++++++++++++++++ src/video/mx6/SDL_mx6video.h | 78 +++++++++++ 14 files changed, 843 insertions(+) create mode 100644 src/video/mx6/SDL_mx6events.c create mode 100644 src/video/mx6/SDL_mx6events_c.h create mode 100644 src/video/mx6/SDL_mx6opengles.c create mode 100644 src/video/mx6/SDL_mx6opengles.h create mode 100644 src/video/mx6/SDL_mx6video.c create mode 100644 src/video/mx6/SDL_mx6video.h
7242e814 2014-09-02 06:55:47 Updated version to 2.0.4
059579e4 2014-08-23 10:47:50 Fixed bug 2696 - Mac: fix display mode refresh rate calculation Alex Szpakowski SDL's Cocoa backend uses the CGDisplayMode API to get refresh rate information about a display mode, but CGDisplayModeGetRefreshRate will return 0 on most non-CRT monitors. The only way I know of to get correct refresh rate information in OS X is via the CoreVideo DisplayLink API. I have attached a patch which tries to use the CVDisplayLinkGetNominalOutputVideoRefreshPeriod function if CGDisplayModeGetRefreshRate fails, which fixes display mode refresh rate information on the monitors I tested. The CVDisplayLink API requires linking with the CoreVideo framework, and the patch updates the various build files to do so.
04f74225 2014-08-19 21:13:07 Fixed bug 2691 - Disabling shared library prevent cmake configuration hotgloupi Configuring using "cmake -DSDL_STATIC=1 -DSDL_SHARED=0" generate and error in CMakeLists.txt at line 1334: CMake Error at CMakeLists.txt:1334 (install): install TARGETS given target "SDL2" which does not exist in this directory. This install rule shouldn't be present when the DLL has been disabled
f17587df 2014-08-17 13:49:53 Reset CMAKE_REQUIRED_FLAGS after test
95ced654 2014-08-17 13:15:45 cmake: add -Wl,--no-undefined to GCC linker flags This way unresolved symbols will be detected when linking the shared library version.
569e595a 2014-08-17 13:15:09 cmake: add -Wall/-Wshadow to GCC compilation flags
1ea86978 2014-08-17 13:11:55 Removed SDL_round() because the license wasn't compatible with zlib
984d0fc4 2014-08-16 23:28:40 Fixed bug 2683 - Raspberry PI support using CMake Tobias Himmer this patch adds a check to the CMake build script to detect whether the VideoCore API is available. If it is found, it enables SDL_VIDEO_DRIVER_RPI and will also add the needed include/library directory flags to CMAKE_C_FLAGS so the subsequent check for GLES succeeds in picking up the headers. Seems to work fine on Raspbian.
4e7db78e 2014-08-16 23:23:15 Added SDL_round(), contributed by Benoit Pierre - thanks!
384c2047 2014-08-16 15:18:21 Fixed building on Windows with CMake
553028c9 2014-06-22 11:02:56 Partial fix for bug 2556 - add compilation flag -Wshadow I added -Wshadow and then turned it off again because of massive variable shadowing in the blit macros. Feel free to go through that code and fix these if you want. Just uncomment CheckWarnShadow in configure.in if you want to try this.
2334aa86 2014-06-16 10:58:09 Add suport for "make uninstall" to cmake.
47e0aa0e 2014-06-07 20:43:12 Fixed building on command line Mac OS X
2a7aa9bd 2014-05-06 00:13:07 Fix build on Windows targets without dxgi.h, like MingW32.
3dcb451f 2014-04-09 21:29:19 Added a README file regarding WinRT support To note, this file is currently formatted with CRLF line endings, rather than LF, to allow the file to be viewed with Notepad.
b0502ce8 2014-03-25 14:33:34 Re-enable Mir/Wayland support now that 2.0.3 has been released.
b2fcdfca 2014-03-11 10:33:51 Disable Wayland/Mir again for 2.0.3; it's a quick, brown-paper-bag release. We'll enable it by default for 2.0.4. Hopefully. :) ( http://www.catb.org/jargon/html/B/brown-paper-bag-bug.html )
1a35f32b 2014-03-10 01:51:03 Converted David Ludwig's D3D11 renderer to C and optimized it. The D3D11 renderer is now slightly faster than D3D9 on my Windows 8 machine (testsprite2 runs at 3400 FPS vs 3100 FPS) This will need tweaking to fix the Windows RT build.
c167d1f6 2014-03-09 10:38:30 Updated SDL to version 2.0.3
0f1a72c0 2014-03-08 15:32:12 Enable Wayland and Mir in configure/cmake scripts, now that 2.0.2 has shipped.
2b92d9b4 2014-03-07 00:18:37 CMake: Don't use /NODEFAULTLIB on Windows unless we're Visual Studio.
b814f23a 2014-02-24 11:24:48 CMake: Fixed build on Mac OS X.
7f4c6a9c 2014-02-10 10:53:02 Fix Cmake so generated SOname matches autoconf's #.
853334af 2014-02-09 03:09:56 Updated SDL to version 2.0.2
c3c2964d 2014-02-09 02:04:40 Possibly fixed bug 2250 - Cmake: SDL2 Doesn't install DLLs on Windows ernest.lee [Exec] CMake Error at cmake_install.cmake:151 (FILE): [13:37:43][Exec] file INSTALL cannot find [13:37:43][Exec] "C:/TeamCity/buildAgent/work/2e3d17a492e75daf/Build/libSDL2.so". The cmake INSTALL project doesn't work because it uses Linux so shared library paths. Windows uses dlls and I think cygwin also uses dlls. I've included this patch. Can you check if it works?
0d9443d3 2014-02-03 11:59:17 Temporarily default Wayland and Mir to disabled, for 2.0.2 release. We'll flip the default back to enabled right after 2.0.2 is finalized, and try to declare them stable and ready by 2.0.3. Those that have an interest in supporting them in 2.0.2 can manually enable them in the configure script with --enable-video-wayland and/or --enable-video-mir.
19f8c622 2014-02-02 23:41:46 Added Mir video target (thanks, Brandon!).
4f1b8a40 2014-01-28 12:42:01 Move to no-argument version of "endif()" in CMakeLists.txt.
2de3b01c 2014-01-28 12:37:04 Some CMake fixes for static linking on Windows from the OpenFL project.
9d85cdb1 2014-01-28 00:05:23 CMake: Enable missing timer subsystem on Mac OS X and Haiku.
815c6c3b 2014-01-25 16:08:39 quick fix for CMAKE SOVERSION number so it matches what is output by the configure script