]> git.ipfire.org Git - thirdparty/libvirt.git/commit
meson: tests: built utils static libraries
authorPavel Hrdina <phrdina@redhat.com>
Thu, 18 Jun 2020 00:01:49 +0000 (02:01 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:05 +0000 (09:27 +0200)
commit401aa32fdbe605f86891cad0c2bcb6ccce9340a8
tree031d2c57a07e64f04ace00c9de8fb5b5e9855be8
parent8885a3c135fcd480c398cc34fd67314195d2d079
meson: tests: built utils static libraries

With the old build system we just list the source files directly for
each test, but this would not work as expected with Meson.

For every binary there is a separate directory with its object files
which would mean all the utils sources would be compiled repeatedly
for every test using them.

Having static libraries ensures that the utils sources are compiled
only once.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
tests/Makefile.am
tests/meson.build
tests/testutils.c