libvirt/tools/wireshark/src/meson.build
Jiri Denemark 36b47ffed9 meson: Fix build with -Dtest_coverage=true
As can be seen in commit 8a62a1592a (from
autoconf era), the coverage flags have to be used also when linking
objects. However, this was not reflected when we switched to meson.

Without this patch linking fails with undefined references to various
__gcov_* symbols.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
2021-01-19 16:25:50 +01:00

21 lines
282 B
Meson

subdir('libvirt')
shared_library(
'virt',
[
'packet-libvirt.c',
'plugin.c',
wireshark_protocol,
],
dependencies: [
wireshark_dep,
xdr_dep,
tools_dep,
],
link_args: [
coverage_flags
],
install: true,
install_dir: wireshark_plugindir,
)