Skip to content

Commit 6c75bde

Browse files
committed
Improve README
1 parent 9e34e5b commit 6c75bde

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

bindings/c/examples/sdl/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ The process will vary based on your operating system.
88

99
### On 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

@@ -25,3 +25,12 @@ Make sure to install SDL2 and its development package.
2525
cmake -S . -B build -DACCESSKIT_DIR="../.." -DCMAKE_BUILD_TYPE=Release
2626
cmake --build build
2727
```
28+
29+
### On Mac OS X
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)