README-cmake.txt
author David Ludwig <dludwig@pobox.com>
Wed, 25 Dec 2013 21:39:48 -0500
changeset 8563 c0e68f3b6bbb
parent 7222 2435b221d77d
permissions -rw-r--r--
WinRT: compiled the d3d11 renderer's shaders into SDL itself

Previously, the shaders would get compiled separately, the output of which would need to be packaged into the app. This change should make SDL's dll be the only binary needed to include SDL in a WinRT app.
slouken@7222
     1
================================================================================
slouken@7222
     2
CMake build system for SDL (www.cmake.org)
slouken@7222
     3
================================================================================
slouken@7222
     4
slouken@7222
     5
SDL's build system was traditionally based on autotools. Over time, this
slouken@7222
     6
approach has suffered from several issues across the different supported 
slouken@7222
     7
platforms.
slouken@7222
     8
To solve these problems, a new build system based on CMake is under development.
slouken@7222
     9
It works in parallel to the legacy system, so users can experiment with it
slouken@7222
    10
without complication.
slouken@7222
    11
While still experimental, the build system should be usable on the following
slouken@7222
    12
platforms:
slouken@7222
    13
    
slouken@7222
    14
    * FreeBSD
slouken@7222
    15
    * Linux
slouken@7222
    16
    * VS.NET 2010
slouken@7222
    17
    * MinGW and Msys
slouken@7222
    18
    * OS X with support for XCode
slouken@7222
    19
    
slouken@7222
    20
================================================================================
slouken@7222
    21
Usage
slouken@7222
    22
================================================================================
slouken@7222
    23
slouken@7222
    24
Assuming the source for SDL is located at ~/sdl
slouken@7222
    25
slouken@7222
    26
cd ~
slouken@7222
    27
mkdir build
slouken@7222
    28
cd build
slouken@7222
    29
cmake ../sdl
slouken@7222
    30
slouken@7222
    31
This will build the static and dynamic versions of SDL in the ~/build directory.