Skip to content

Commit 3dc7e73

Browse files
committed
Feat: Updated cabal file such that cabal sdist and cabal check run with no issues.
1 parent 47bd1a1 commit 3dc7e73

2 files changed

Lines changed: 350 additions & 107 deletions

File tree

README.md

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ sudo cmake --install . --config Release
3535
```
3636
This will install SDL3 to your system so that cabal can find and build the sdl3 package.
3737

38-
Find your way back to this project's directory and run `cabal build` to build the package with examples, or `cabal build sdl3` to build just the package.
38+
Find your way back to this project's directory and run `cabal build sdl3` to build just the package.
3939

4040
### Windows
4141

@@ -79,7 +79,31 @@ package *
7979
extra-lib-dirs: "path/to/SDL3/lib/"
8080
```
8181
82-
Once all of this is done, you can find your way into this directory and run `cabal build sdl3`. If you would like to install the examples, run `cabal build` instead.
82+
Once all of this is done, you can find your way into this directory and run `cabal build sdl3` to build just the package.
83+
84+
## Building and Running Examples
85+
86+
To build all examples:
87+
```bash
88+
cabal build --flag examples
89+
```
90+
91+
To see a list of all available examples:
92+
```bash
93+
cabal run --flag examples
94+
```
95+
96+
To run a specific example:
97+
```bash
98+
cabal run --flag examples EXAMPLE_NAME
99+
```
100+
101+
For example, to run the init example:
102+
```bash
103+
cabal run --flag examples init
104+
```
105+
106+
You can also build specific executables in a similar manner by specifying the target name.
83107
84108
# Working Examples
85109
@@ -164,7 +188,7 @@ These examples are based off of the original [SDL3 GPU Examples](https://github.
164188
165189
## 📊 Binding Status
166190
167-
*Last updated: 2025-07-03 09:07 UTC*
191+
*Last updated: 2025-07-04 20:29 UTC*
168192
169193
*SDL3 commit: `cf6c42e6e6cca075b196a8ee69e96a0d8ba0652b`*
170194
### Summary

0 commit comments

Comments
 (0)