CMake for SDL_(mixer|image|ttf|net)

Hello folks,

Are there any plans to add CMake build system inside the official SDL
extensions? It would be nice because it’s not very easy to build on
Windows actually (MinGW is a bit easier thanks to ./configure though).

I can provide patches for SDL_ttf and SDL_net but SDL_mixer and
SDL_image are harder beasts :slight_smile:

Regards,–
David Demelier

I think patches are welcome ;)–
Martin Gerhardy
http://www.caveproductions.org

Am 02.03.2016 um 10:02 schrieb David Demelier <demelier.david at gmail.com>:

Hello folks,

Are there any plans to add CMake build system inside the official SDL extensions? It would be nice because it’s not very easy to build on Windows actually (MinGW is a bit easier thanks to ./configure though).

I can provide patches for SDL_ttf and SDL_net but SDL_mixer and SDL_image are harder beasts :slight_smile:

Regards,


David Demelier


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I think SDL_image would be the most difficult :), due to the external dependencies.

Anyway the recent version, of many of the dependencies, of both SDL_image and SDL_mixer has CMakeFiles in their repo. It’s probably easier to use these files (on Windows build) rather than managing the file list manually. The downside is in the current SDL repo there’s only a few of them in the external directory (libpng, for example). For Linux builds, FindPkgConfig would be preffered I believe (it does not work with Visual Studio, AFAIK).

If someone is interested I have Visual-Studio-2015 projects for SDL_image,
SDL_mixer, SDL_ttf and a few dependencies (png, jpeg, freetype, z,
harfbuzz).
It allows compilation for Windows 10 UWP (desktop and device).
I have already shared it, but if you need it, just tell and I’ll put it
online.On 2 March 2016 at 15:36, mr_tawan <mr_tawan at hotmail.com> wrote:

I think SDL_image would be the most difficult [image: Smile], due to the
external dependencies.

Anyway the recent version, of many of the dependencies, of both SDL_image
and SDL_mixer has CMakeFiles in their repo. It’s probably easier to use
these files (on Windows build) rather than managing the file list manually.
The downside is in the current SDL repo there’s only a few of them in the
external directory (libpng, for example). For Linux builds, FindPkgConfig
would be preffered I believe (it does not work with Visual Studio, AFAIK).


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I made CMake scripts for SDL_image, SDL_ttf, and SDL_net. (Sorry no SDL_mixer.)




Check the Blurrr branch.

These ‘work for me’ and are intended for my use case. They are a
little messy because I use them for Android too. I haven’t spent the
time to try to mainline them (partly because I need to get the SDL one
mainlined first). But if anybody wants to use these and get them into
submission shape, I’m happy to work with you.

Thanks,
EricOn 3/2/16, David Demelier <demelier.david at gmail.com> wrote:

Hello folks,

Are there any plans to add CMake build system inside the official SDL
extensions? It would be nice because it’s not very easy to build on
Windows actually (MinGW is a bit easier thanks to ./configure though).

I can provide patches for SDL_ttf and SDL_net but SDL_mixer and
SDL_image are harder beasts :slight_smile: