aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Yakimowich-Payne <jyapayne@gmail.com>2018-07-09 09:51:44 +0900
committerJoey Yakimowich-Payne <jyapayne@gmail.com>2018-07-09 09:51:44 +0900
commit3b60a0e4b10be17d00e39afbc163702555555d62 (patch)
tree1ef7b3589dd2b47e47aec2e5c8ee8d042a9b4ce5
parent9c41b5a17644726ff982b65e2740f2cc3e57c54a (diff)
downloadnimgen-3b60a0e4b10be17d00e39afbc163702555555d62.tar.gz
nimgen-3b60a0e4b10be17d00e39afbc163702555555d62.zip
Move env var section in readme
-rw-r--r--README.md22
1 files changed, 11 insertions, 11 deletions
diff --git a/README.md b/README.md
index 78ad979..40f7556 100644
--- a/README.md
+++ b/README.md
@@ -30,17 +30,6 @@ __Capabilities & Limitations__
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 `$` or `${}` around the environment variable name. In addition, the `output` var from the n.global section is available as ${output}. For example:
-
- [n.global]
- c_compiler="$CC"
- cpp_compiler="${CPP}-arm"
- output="src/path"
-
- [n.include]
- "${output}/library/include"
- "${MY_INCLUDE_PATH}/include"
-
To see examples of nimgen in action check out the following wrappers:-
* Link with a dynamic library
* [nimbass](https://github.com/genotrance/nimbass) - BASS audio wrapper: [docs](http://nimgen.genotrance.com/nimbass)
@@ -76,6 +65,17 @@ Nimgen only supports the ```gcc``` preprocessor at this time. Support for detect
__Config file__
+In all sections below, 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 `$` or `${}` around the environment variable name. In addition, the `output` var from the n.global section is available as ${output}. For example:
+
+ [n.global]
+ c_compiler="$CC"
+ cpp_compiler="${CPP}-arm"
+ output="src/path"
+
+ [n.include]
+ "${output}/library/include"
+ "${MY_INCLUDE_PATH}/include"
+
_[n.global]_
```output``` = name of the Nimble project once installed, also location to place generated .nim files