meson: Add support for gcov
authorArnaud Rebillout <arnaud.rebillout@collabora.com>
Wed, 28 Nov 2018 13:43:53 +0000 (20:43 +0700)
committerArun Raghavan <arun@arunraghavan.net>
Sat, 8 Jun 2019 10:03:03 +0000 (12:03 +0200)
commit1a3ed2f430669dea3d0978ce3acbcceb443c7447
tree176ae11e0ce1211b436cddf3fa500eb7c55bac1d
parentaa5502926fdb1d1b45f7cb0ed8570d90f84532eb
meson: Add support for gcov

Unlike autotools, we use the option --coverage, which is a synonym for
-profile-arcs and -ftest-coverage (when compiling) and -lgcov (when
linking).

For reference, see:
https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html#Instrumentation-Options

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
meson.build
meson_options.txt