--HG-- rename : doc/README-SDL.md => README-SDL.txt rename : doc/README-android.md => docs/README-android.md rename : doc/README-cmake.md => docs/README-cmake.md rename : doc/README-directfb.md => docs/README-directfb.md rename : doc/README-dynapi.md => docs/README-dynapi.md rename : doc/README-gesture.md => docs/README-gesture.md rename : doc/README-hg.md => docs/README-hg.md rename : doc/README-ios.md => docs/README-ios.md rename : doc/README-linux.md => docs/README-linux.md rename : doc/README-macosx.md => docs/README-macosx.md rename : doc/README-nacl.md => docs/README-nacl.md rename : doc/README-pandora.md => docs/README-pandora.md rename : doc/README-platforms.md => docs/README-platforms.md rename : doc/README-porting.md => docs/README-porting.md rename : doc/README-psp.md => docs/README-psp.md rename : doc/README-raspberrypi.md => docs/README-raspberrypi.md rename : doc/README-touch.md => docs/README-touch.md rename : doc/README-wince.md => docs/README-wince.md rename : doc/README-windows.md => docs/README-windows.md rename : doc/README-winrt.md => docs/README-winrt.md rename : doc/README.md => docs/README.md rename : doc/doxyfile => docs/doxyfile
31 lines
1,005 B
Markdown
31 lines
1,005 B
Markdown
CMake
|
|
================================================================================
|
|
(www.cmake.org)
|
|
|
|
SDL's build system was traditionally based on autotools. Over time, this
|
|
approach has suffered from several issues across the different supported
|
|
platforms.
|
|
To solve these problems, a new build system based on CMake is under development.
|
|
It works in parallel to the legacy system, so users can experiment with it
|
|
without complication.
|
|
While still experimental, the build system should be usable on the following
|
|
platforms:
|
|
|
|
* FreeBSD
|
|
* Linux
|
|
* VS.NET 2010
|
|
* MinGW and Msys
|
|
* OS X with support for XCode
|
|
|
|
================================================================================
|
|
Usage
|
|
================================================================================
|
|
|
|
Assuming the source for SDL is located at ~/sdl
|
|
|
|
cd ~
|
|
mkdir build
|
|
cd build
|
|
cmake ../sdl
|
|
|
|
This will build the static and dynamic versions of SDL in the ~/build directory.
|