Skip to content

Commit 80ca8be

Browse files
committed
Improve README
1 parent ddcb748 commit 80ca8be

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

bindings/c/examples/sdl/README.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,31 @@ This example demonstrates how to make use of the C bindings to create cross-plat
66

77
The process will vary based on your operating system.
88

9-
### On Windows:
9+
### Windows:
1010

11-
First download a copy of SDL2 and extract it.
11+
First download an SDL2 development package from the project's [GitHub release page](https://github.com/libsdl-org/SDL/releases) (SDL2-devel-2.x.y-VC.zip for MSVC) and extract it.
1212

1313
```bash
14-
cmake -S . -B build -DACCESSKIT_DIR="../.." -DSDL2_ROOT="<PATH_TO_SDL2_INSTALLATION>/cmake"
14+
cmake -S . -B build -DACCESSKIT_DIR="../.." -DSDL2_DIR="<PATH_TO_SDL2_PACKAGE>/cmake"
1515
cmake --build build --config Release
1616
```
1717

1818
You will then need to copy `SDL2.dll` into the `build/Release` folder.
1919

20-
### On Linux
20+
### Linux
2121

2222
Make sure to install SDL2 and its development package.
2323

2424
```bash
2525
cmake -S . -B build -DACCESSKIT_DIR="../.." -DCMAKE_BUILD_TYPE=Release
2626
cmake --build build
2727
```
28+
29+
### macOS
30+
31+
First download an SDL2 package from the project's [GitHub release page](https://github.com/libsdl-org/SDL/releases) (SDL2-2.x.y.dmg) and copy `SDL2.framework` to `/Library/Frameworks`.
32+
33+
```bash
34+
cmake -S . -B build -DACCESSKIT_DIR="../.." -DCMAKE_BUILD_TYPE=Release
35+
cmake --build build
36+
```

0 commit comments

Comments
 (0)