Merge pull request #57 from XVilka/meson-build

This commit is contained in:
David Lamparter 2023-04-23 14:12:13 +02:00 committed by GitHub
commit 32def19b9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 107 additions and 2 deletions

View file

@ -33,15 +33,24 @@ capnpc compiler/test.capnp -oc
## Building on Linux
```sh
git clone https://github.com/opensourcerouting/c-capnproto
git clone --recurse-submodules https://github.com/opensourcerouting/c-capnproto
cd c-capnproto
git submodule update --init --recursive
autoreconf -f -i -s
./configure
make
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
### Generating C code from a `.capnp` schema file