Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line | 
|---|---|---|---|
| 3 | pmbaty | 1 | The Simple DirectMedia Layer (SDL for short) is a cross-platform | 
| 2 | library designed to make it easy to write multi-media software, | ||
| 3 | such as games and emulators. | ||
| 4 | |||
| 5 | The Simple DirectMedia Layer library source code is available from: | ||
| 6 | http://www.libsdl.org/ | ||
| 7 | |||
| 8 | This library is distributed under the terms of the zlib license: | ||
| 9 | http://zlib.net/zlib_license.html | ||
| 10 | |||
| 11 | |||
| 12 | This packages contains the SDL framework for OS X. | ||
| 13 | Conforming with Apple guidelines, this framework | ||
| 14 | contains both the SDL runtime component and development header files. | ||
| 15 | |||
| 16 | |||
| 17 | To Install: | ||
| 18 | Copy the SDL2.framework to /Library/Frameworks | ||
| 19 | |||
| 20 | You may alternatively install it in <Your home directory>/Library/Frameworks | ||
| 21 | if your access privileges are not high enough. | ||
| 22 | |||
| 23 | |||
| 24 | Use in CMake projects: | ||
| 25 | SDL2.framework can be used in CMake projects using the following pattern: | ||
| 26 | ``` | ||
| 27 | find_package(SDL2 REQUIRED COMPONENTS SDL2) | ||
| 28 | add_executable(my_game ${MY_SOURCES}) | ||
| 29 | target_link_libraries(my_game PRIVATE SDL2::SDL2) | ||
| 30 | ``` | ||
| 31 | If SDL2.framework is installed in a non-standard location, | ||
| 32 | please refer to the following link for ways to configure CMake: | ||
| 33 | https://cmake.org/cmake/help/latest/command/find_package.html#config-mode-search-procedure | ||
| 34 | |||
| 35 | |||
| 36 | Additional References: | ||
| 37 | |||
| 38 | - Screencast tutorials for getting started with OpenSceneGraph/Mac OS X are | ||
| 39 | available at: | ||
| 40 | http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/MacOSXTips | ||
| 41 | Though these are OpenSceneGraph centric, the same exact concepts apply to | ||
| 42 | SDL, thus the videos are recommended for everybody getting started with | ||
| 43 | developing on Mac OS X. (You can skim over the PlugIns stuff since SDL | ||
| 44 | doesn't have any PlugIns to worry about.) |