build(libconfig): got build system and tests working

This commit is contained in:
2025-06-21 08:41:39 -04:00
parent 2775306d50
commit 698e8d2e07
15 changed files with 872 additions and 19 deletions

23
readme.md Normal file
View File

@@ -0,0 +1,23 @@
# libconstants
libconstants is the authoritative source for physical constants for the SERiF project.
This has been broken out of the main serif project to allow for more modularity
## Building
In order to build libconstants you need `meson>=1.5.0`. This can be installed with `pip`
```bash
pip install "meson>=1.5.0"
```
Then from the root libconstants directory it is as simple as
```bash
meson setup build --buildtype=release
meson compile -C build
meson test -C build
```
this will auto generate a pkg-config file for you so that linking other libraries to libconstants is easy.