Add env vars to readme
This commit is contained in:
parent
467d0c4eae
commit
76020e8f21
1 changed files with 8 additions and 0 deletions
|
|
@ -30,6 +30,14 @@ __Capabilities & Limitations__
|
||||||
|
|
||||||
Nimgen supports compiling in C/C++ sources and static libraries as well as loading in dynamic libraries.
|
Nimgen supports compiling in C/C++ sources and static libraries as well as loading in dynamic libraries.
|
||||||
|
|
||||||
|
Environment variables are supported via Nim's string interpolation `%` symbol imported from the `strutils` module. Simply use double quotes to enclose any value and put `${}` around the environment variable name. In addition, the `output` var from the n.global section is available as ${output}. For example:
|
||||||
|
|
||||||
|
[n.global]
|
||||||
|
output="src/path"
|
||||||
|
|
||||||
|
[n.include]
|
||||||
|
"${output}/library/include"
|
||||||
|
|
||||||
To see examples of nimgen in action check out the following wrappers:-
|
To see examples of nimgen in action check out the following wrappers:-
|
||||||
* Link with a dynamic library
|
* Link with a dynamic library
|
||||||
* [nimbass](https://github.com/genotrance/nimbass) - BASS audio wrapper: [docs](http://nimgen.genotrance.com/nimbass)
|
* [nimbass](https://github.com/genotrance/nimbass) - BASS audio wrapper: [docs](http://nimgen.genotrance.com/nimbass)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue