Add Meson building instructions in README
This commit is contained in:
parent
6b8e3caed3
commit
53f6def21b
1 changed files with 11 additions and 2 deletions
13
README.md
13
README.md
|
|
@ -23,15 +23,24 @@ capnpc compiler/test.capnp -oc
|
||||||
## Building on Linux
|
## Building on Linux
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/opensourcerouting/c-capnproto
|
git clone --recurse-submodules https://github.com/opensourcerouting/c-capnproto
|
||||||
cd c-capnproto
|
cd c-capnproto
|
||||||
git submodule update --init --recursive
|
|
||||||
autoreconf -f -i -s
|
autoreconf -f -i -s
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
make check
|
make check
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Building with Meson
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone --recurse-submodules https://github.com/opensourcerouting/c-capnproto
|
||||||
|
cd c-capnproto
|
||||||
|
meson setup build
|
||||||
|
meson compile -C build
|
||||||
|
build/capn-test
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### Generating C code from a `.capnp` schema file
|
### Generating C code from a `.capnp` schema file
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue