| Summary: | CMake-based build system for SDL2 | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Marcus von Appen <mva> |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | alex.barry, gabomdq |
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: |
Patch file for SDL HG, apply with patch -p1 < cmake_20120827.diff
Updated patch file for SDL HG, apply with patch -p1 < cmake_20120919.diff Updated patch file for SDL HG, apply with patch -p1 < cmake_20121020.diff Updated patch file for SDL HG, apply with patch -p1 < cmake_20121116.diff Updated patch file for SDL HG, apply with patch -p1 < cmake_20121116_1.diff |
||
|
Description
Marcus von Appen
2012-09-08 01:29:21 UTC
Created attachment 950 [details]
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.
Created attachment 976 [details] 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) 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)
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? Created attachment 990 [details] 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 Created attachment 991 [details] 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 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! |