1
0
forked from Mirror/wren

fix amalgamation documentation

This commit is contained in:
ruby0x1
2021-04-06 19:59:42 -07:00
parent 5e60bbf0cf
commit 4cd374e1a7

View File

@ -59,7 +59,9 @@ Since it has no dependencies this is simple, all the code in `src/` comes along.
If you want an even simpler way, there's an 'amalgamated' build (often called `blob`, or `unity` builds.).
This is _all of the wren source code in one file_.
This file can be generated by running `python3 util/generate_amalgamation.py`, and the generated output will be in `build/wren.c`.
This file can be generated by running `python3 util/generate_amalgamation.py > build/wren.c`,
which saves the generated output in `build/wren.c`.
Include `build/wren.c` and `src/include/wren.h` in your project code and you're good to go.
<small>Ideally later we can automate generating this and include it in the repo.</small>