Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake-based build system for SDL2 #663

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

CMake-based build system for SDL2 #663

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: HG 2.0
Reported for operating system, platform: All, All

Comments on the original bug report:

On 2012-09-08 01:29:21 +0000, Marcus von Appen wrote:

Created attachment 945
Patch file for SDL HG, apply with patch -p1 < cmake_20120827.diff

Based on the discussion of http://lists.libsdl.org/pipermail/sdl-libsdl.org/2012-August/085408.html, I created a CMake-based build system for SDL2, which can be used as replacement or alternative to the autotools-based building for SDL2, as described in http://lists.libsdl.org/pipermail/sdl-libsdl.org/2012-August/085504.html.

The build system has been tested sucessfully with FreeBSD, various Linux distributions, VS.NET 2010, MinGW and Msys, on 64-bit and 32-bit platforms. Also, it was reported to work for XCode.

It does not alter any existing configuration and hence can live side-by-side with the existing projects and build systems, that currently exist.

On 2012-09-19 01:24:04 +0000, Marcus von Appen wrote:

Created attachment 950
Updated patch file for SDL HG, apply with patch -p1 < cmake_20120919.diff

This removes the recently dropped Windows CE support code portions and fixes a minor issue with building only the static OR shared library.

On 2012-10-20 02:09:59 +0000, Marcus von Appen wrote:

Created attachment 976
Updated patch file for SDL HG, apply with patch -p1 < cmake_20121020.diff

This adds the libm/* source code files to the project to reflect recent change for the MinGW ABI compatibility as of rev:dccafb0699dc (http://hg.libsdl.org/SDL/rev/dccafb0699dc)

On 2012-10-23 09:17:21 +0000, Alex Barry wrote:

To incorporate cygwin with gcc >= 4.0, I changed CMakeLists.txt with the following (sorry, no patch...does this make me a bad person?) [changes lines 147-153]:

if(CYGWIN)
if(CMAKE_C_COMPILER_VERSION MATCHES ".3\.[0-9].")
include_directories("-I/usr/include/mingw")
list(APPEND EXTRA_LDFLAGS "-mno-cygwin")
set(SDL_CFLAGS "${SDL_CFLAGS} -I/usr/include/mingw")
list(APPEND SDL_LIBS "-mno-cygwin")
endif(CMAKE_C_COMPILER_VERSION MATCHES ".3\.[0-9].")
endif(CYGWIN)

On 2012-11-15 03:14:05 +0000, Gabriel Jacobo wrote:

Sam gave the go ahead, so I can apply this on the official repository if you'd like, can you update the patch and let me know?

On 2012-11-15 23:27:27 +0000, Marcus von Appen wrote:

Created attachment 990
Updated patch file for SDL HG, apply with patch -p1 < cmake_20121116.diff

Find attached the most recent patch, which incorporates a change for cygwin as discussed in http://lists.libsdl.org/pipermail/sdl-libsdl.org/2012-October/086177.html

On 2012-11-15 23:35:55 +0000, Marcus von Appen wrote:

Created attachment 991
Updated patch file for SDL HG, apply with patch -p1 < cmake_20121116_1.diff

Support the latest changes to the file size API as of http://hg.libsdl.org/SDL/rev/b716011e53ce

On 2012-11-16 04:24:40 +0000, Gabriel Jacobo wrote:

http://hg.libsdl.org/SDL/rev/45a21e50ba5e

I added a README.cmake file and changed the in source build error to be a bit more descriptive. In my Ubuntu 12.04 system it seems to work great, awesome job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant