Added JSON support. (0.28.0)
This commit is contained in:
parent
0fa6d56c14
commit
afb0e8cd3a
16 changed files with 521 additions and 3 deletions
19
README.md
19
README.md
|
|
@ -127,10 +127,18 @@ cd fun
|
|||
Build:
|
||||
|
||||
```bash
|
||||
cmake -S . -B build -DFUN_DEBUG=OFF -DFUN_WITH_PCSC=OFF -DFUN_WITH_REPL=ON
|
||||
# Note: Every -D flag must be of the form NAME=VALUE (e.g., -DFUN_WITH_REPL=ON)
|
||||
cmake -S . -B build -DFUN_DEBUG=OFF -DFUN_WITH_PCSC=OFF -DFUN_WITH_REPL=ON -DFUN_WITH_JSON=ON
|
||||
cmake --build build --target fun
|
||||
```
|
||||
|
||||
CMake options you can toggle (all require NAME=VALUE):
|
||||
|
||||
- FUN_DEBUG=ON|OFF — verbose debug logging in the VM (default OFF)
|
||||
- FUN_WITH_REPL=ON|OFF — enable building the interactive REPL (default ON)
|
||||
- FUN_WITH_PCSC=ON|OFF — enable PC/SC smart card support (default OFF)
|
||||
- FUN_WITH_JSON=ON|OFF — enable JSON support via json-c (default ON)
|
||||
|
||||
That's it! For testing it, run:
|
||||
|
||||
```bash
|
||||
|
|
@ -160,6 +168,15 @@ FUN_LIB_DIR="$(pwd)/lib" ./build/fun
|
|||
|
||||
But be sure to build Fun with -DFUN_WITH_REPL=ON.
|
||||
|
||||
Tip: If you saw an error like this when configuring with CMake:
|
||||
|
||||
CMake Error: Parse error in command line argument: FUN_WITH_JSON
|
||||
Should be: VAR:type=value
|
||||
|
||||
it means a -D flag was passed without a value. Always specify options as -DNAME=VALUE, for example:
|
||||
|
||||
-DFUN_WITH_JSON=ON
|
||||
|
||||
## Author
|
||||
|
||||
Johannes Findeisen <you@hanez.org>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue