libfoo is a C library that does not do anything useful. It demonstrates dependencies with meson and how to use options for compile-time features.
You can build this project with the following commands:
meson build ninja -C build
By default, this will build the library with xml and yaml support. It is possible to use meson argument to disable support for each.
For example, to build without yaml support, you can run the following.
meson build -Dyaml=false ninja -C build
You can then verify that
libfoo.so does not include the function
nm -D build/libfoo.so
libfoo depends on the following libraries: