add helper for includes

This commit is contained in:
Robin Appelman 2023-07-09 18:22:22 +02:00
commit 06c8e7370f
3 changed files with 30 additions and 11 deletions

View file

@ -40,5 +40,11 @@ buildSourcePawnScript {
};
```
By default the sourcemod includes are available.
Additional includes can be added by setting the `includes` argument to an array of packages containing an `include` folder containing the `.inc` files.
By default, the sourcemod includes are available.
Additional includes can be added by setting the `includes` argument to an array of packages containing an `include` folder containing the `.inc` files.
A helper is provided to create include packages:
```nix
sourcepawn.buildInclude [./cURL.inc ./cURL_header.inc]
```