meson: Use declare_dependency for libraries

Now example binaries and tests don't have to be aware of the nuances for
configuring the build to use the library. This makes the project library
look like any other system dependency.

Change-Id: I9bbf33d32057964011fd8387e742e0d92117f848
Signed-off-by: William A. Kennington III <wak@google.com>
4 files changed
tree: 793a59cfe69034d12711d015976028796cf32e02
  1. example/
  2. src/
  3. test/
  4. .clang-format
  5. .gitignore
  6. .lcovrc
  7. bootstrap.sh
  8. configure.ac
  9. LICENSE
  10. MAINTAINERS
  11. Makefile.am
  12. meson.build
  13. meson_options.txt
  14. README.md
README.md

stdplus

stdplus is a c++ project containing commonly used classes and functions for the Linux platform.

Dependencies

Test cases require google{test,mock}, valgrind, and lcov.

Building

For a standard release build, you want something like:

./bootstrap.sh
./configure --disable-examples --disable-tests
make
make install

For a test / debug build, a typical configuration is

./bootstrap.sh
./configure --enable-tests --enable-coverage --enable-valgrind
make
make check
make check-valgrind
make check-code-coverage