aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: cb5ba648e1d46d6d5a583f9d09cd4985422852f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# msgpack

This is a simple implementation of the MessagePack specification (`spec.md` in the tree).

Heard C is dangerous, so the library is just macros

This library uses NO dynamic allocations.

### Usage

See the api in `msgpack.h`, it is self-explanatory.
 
### Building

This project use ninja and m4 macros (so both need to be installed), 
use `ninja` to build, with options like:

* `"no options"` to build to the current target (when `PROD=1` it runs the test)
* `test` to run the the unit tests.
* `install` to install the built files in output directories set by `ninja configure`

To change paths and presets using `ninja configure` with an
appropriate environment variable:

* `PROD=1` to use the non-debug flags
* `TARGET=header/static/shared` to set the target type
* `PREFIX=<path>` used for other paths, default `./installdir`
* `LIBDIR=<path>` used for libraries (.so and .a), default `PREFIX/lib`
* `INCLUDEDIR=<path>` used for C headers, default `PREFIX/include`