Add so version number and install to /usr/lib
Fix libxml-2.0 dependency
Add license
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.
libfoo is used in the blogpost First Steps with Buildroot to show how to select features using buildroot.
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 foo_yaml
by
running this:
nm -D build/libfoo.so
libfoo depends on the following libraries:
-Dxml=false
)-Dyaml=false
)