cSDL/README.md

26 lines
715 B
Markdown
Raw Normal View History

2022-04-28 12:49:19 +02:00
# Simple DirectMedia Layer SDL 1.2.15 sources for Casio Graph 90+E and Prizm CG10/20
2022-04-28 12:39:32 +02:00
Need to have a fully working gcc toolchain for SH3/SH4 architecture.
You can use the `giteapc install Slyvtt/cSDL` command to get an automatic install
2022-04-28 12:39:32 +02:00
## Using in a program
2022-04-28 12:49:19 +02:00
With CMake
2022-04-28 12:49:19 +02:00
```cmake
find_package(cSDL 1.2.15 REQUIRED)
target_link_libraries(<TARGET> PRIVATE cSDL::cSDL)
```
2022-04-28 12:49:19 +02:00
With make, the following steps are not automatically done, so please proceed with the following manipulations :
* copy the library `libcSDL.a` into your SH3/SH4 compiler lib folder
* copy all header files `*.h` in the include folder `include/SDL` of the SH3/SH4 compiler
* link with `-lcSDL`
In the C/C++ sources `#include <SDL/SDL.h>`
2022-04-28 12:49:19 +02:00