thunderbrew/vendor/sdl-2.30.5/Xcode/SDL/pkg-support/resources/ReadMe.txt

45 lines
1.6 KiB
Text
Raw Permalink Normal View History

The Simple DirectMedia Layer (SDL for short) is a cross-platform
library designed to make it easy to write multi-media software,
such as games and emulators.
The Simple DirectMedia Layer library source code is available from:
http://www.libsdl.org/
This library is distributed under the terms of the zlib license:
http://zlib.net/zlib_license.html
2024-07-21 17:06:25 -04:00
This packages contains the SDL framework for OS X.
Conforming with Apple guidelines, this framework
contains both the SDL runtime component and development header files.
To Install:
2024-07-21 17:06:25 -04:00
Copy the SDL2.framework to /Library/Frameworks
You may alternatively install it in <Your home directory>/Library/Frameworks
if your access privileges are not high enough.
Use in CMake projects:
2024-07-21 17:06:25 -04:00
SDL2.framework can be used in CMake projects using the following pattern:
```
2024-07-21 17:06:25 -04:00
find_package(SDL2 REQUIRED COMPONENTS SDL2)
add_executable(my_game ${MY_SOURCES})
2024-07-21 17:06:25 -04:00
target_link_libraries(my_game PRIVATE SDL2::SDL2)
```
2024-07-21 17:06:25 -04:00
If SDL2.framework is installed in a non-standard location,
please refer to the following link for ways to configure CMake:
https://cmake.org/cmake/help/latest/command/find_package.html#config-mode-search-procedure
Additional References:
2024-07-21 17:06:25 -04:00
- Screencast tutorials for getting started with OpenSceneGraph/Mac OS X are
available at:
http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/MacOSXTips
Though these are OpenSceneGraph centric, the same exact concepts apply to
SDL, thus the videos are recommended for everybody getting started with
2024-07-21 17:06:25 -04:00
developing on Mac OS X. (You can skim over the PlugIns stuff since SDL
doesn't have any PlugIns to worry about.)