docs/README-cmake.md
author Sam Lantinga
Mon, 14 Aug 2017 13:37:14 -0700
changeset 11289 ca3c2c98f2e1
parent 10486 5bf595c48fd4
child 13087 76ff33e9a6b4
permissions -rw-r--r--
Fixed bug 2441 - SDL_DuplicateSurface


Rainer Deyke

I've written a small patch that adds a small SDL_DuplicateSurface function to SDL. I've written the function as part of a larger (as yet unfinished) patch, but I think this function is useful enough that it merits inclusion in SDL on its own.
     1 CMake
     2 ================================================================================
     3 (www.cmake.org)
     4 
     5 SDL's build system was traditionally based on autotools. Over time, this
     6 approach has suffered from several issues across the different supported 
     7 platforms.
     8 To solve these problems, a new build system based on CMake is under development.
     9 It works in parallel to the legacy system, so users can experiment with it
    10 without complication.
    11 While still experimental, the build system should be usable on the following
    12 platforms:
    13 
    14 * FreeBSD
    15 * Linux
    16 * VS.NET 2010
    17 * MinGW and Msys
    18 * OS X with support for XCode
    19 
    20 
    21 ================================================================================
    22 Usage
    23 ================================================================================
    24 
    25 Assuming the source for SDL is located at ~/sdl
    26 
    27     cd ~
    28     mkdir build
    29     cd build
    30     cmake ../sdl
    31 
    32 This will build the static and dynamic versions of SDL in the ~/build directory.