Skip to content

Commit

Permalink
Improve README
Browse files Browse the repository at this point in the history
  • Loading branch information
DataTriny committed Jun 23, 2023
1 parent 9e34e5b commit 6c75bde
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions bindings/c/examples/sdl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ The process will vary based on your operating system.

### On Windows:

First download a copy of SDL2 and extract it.
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.

```bash
cmake -S . -B build -DACCESSKIT_DIR="../.." -DSDL2_ROOT="<PATH_TO_SDL2_INSTALLATION>/cmake"
cmake -S . -B build -DACCESSKIT_DIR="../.." -DSDL2_DIR="<PATH_TO_SDL2_PACKAGE>/cmake"
cmake --build build --config Release
```

Expand All @@ -25,3 +25,12 @@ Make sure to install SDL2 and its development package.
cmake -S . -B build -DACCESSKIT_DIR="../.." -DCMAKE_BUILD_TYPE=Release
cmake --build build
```

### On Mac OS X

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`.

```bash
cmake -S . -B build -DACCESSKIT_DIR="../.." -DCMAKE_BUILD_TYPE=Release
cmake --build build
```

0 comments on commit 6c75bde

Please sign in to comment.