From: Andrea Bolognani Date: Thu, 30 Mar 2023 14:07:33 +0000 (+0200) Subject: tests: Don't build virgdbusmock on Windows X-Git-Tag: v9.3.0-rc1~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84f2399c9ed31669adcc136bc04cc121b8e46ed2;p=thirdparty%2Flibvirt.git tests: Don't build virgdbusmock on Windows All of the tests that use this mock (networkxml2firewalltest, virsystemdtest, virpolkittest) are either no-ops on Windows, or are not compiled at all on the target. Signed-off-by: Andrea Bolognani Reviewed-by: Jonathon Jongsma Reviewed-by: Ján Tomko --- diff --git a/tests/meson.build b/tests/meson.build index 8958e68a69..c26c2719ac 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -82,7 +82,6 @@ mock_libs = [ { 'name': 'virdnsmasqmock' }, { 'name': 'virfilecachemock' }, { 'name': 'virfirewallmock' }, - { 'name': 'virgdbusmock', 'deps': [ virgdbusmock_dep] }, { 'name': 'virhostcpumock' }, { 'name': 'virhostdevmock' }, { 'name': 'virnetdaemonmock' }, @@ -104,6 +103,12 @@ if host_machine.system() == 'linux' ] endif +if host_machine.system() != 'windows' + mock_libs += [ + { 'name': 'virgdbusmock', 'deps': [ virgdbusmock_dep] }, + ] +endif + # build libraries used by tests