From nobody Sun Feb 8 23:41:04 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1594894184; cv=none; d=zohomail.com; s=zohoarc; b=VSEtqQT/ME+X/Z/7jekSpu6yvQQbX+2IAM6gR9k3Ogq0Y/1ODxdQhQGwUtSjb5QJwMgQcbbIsDs03FyVEZsNkSPUymbEbugRcfdO3WJNz0vL6aliG0uLajl8teLfbHixe/dLymHoqXvO2kTBOqQ1A5AxeFK2EL920c/MT/qby3k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594894184; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=m9pNv7VEFy6XTlg6OaRWakEjoSJCNtX2UQg6nF4eeGs=; b=WxpOnw84rRguW30kZRlIFmEnClRJAdgkSh2OqLq6X/XqQodgBUMaxQkp128hCgFh9yFB+RSM/6/su+3noTvwC8+fSF07hdLzxwGOj0BlZXsV2rBT1efhv548e7/iaLgOtr7TzhPxBYzRAU0aajwuE46hKR438A/OaPnkKpcu+lU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1594894184149615.8804753102016; Thu, 16 Jul 2020 03:09:44 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-173-RC3HP8xeMO-nxlE1HZ_XZg-1; Thu, 16 Jul 2020 06:09:20 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6D40B100AA2C; Thu, 16 Jul 2020 10:09:14 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4C05878494; Thu, 16 Jul 2020 10:09:14 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 1CF7A9A314; Thu, 16 Jul 2020 10:09:14 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 06GA6jbi019847 for ; Thu, 16 Jul 2020 06:06:45 -0400 Received: by smtp.corp.redhat.com (Postfix) id 227252B6DC; Thu, 16 Jul 2020 10:06:45 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.40.194.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id 922872B6DB for ; Thu, 16 Jul 2020 10:06:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594894182; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=m9pNv7VEFy6XTlg6OaRWakEjoSJCNtX2UQg6nF4eeGs=; b=TMkn7oiVEJr4oFJ4nUrL5EoXqM86R5TgPldksSUSK+WnGFtthmvTDZEynlZeRpBKhpXTTb Ew5vYeGcYxnvL4RH9U92TrAZ04ojhmdKLByI6bFOExidYp2xiFuX81yUEa9KroVHUC13bU wNSXCJVnUOP2aRk9kFrBICH5oTS6pJM= X-MC-Unique: RC3HP8xeMO-nxlE1HZ_XZg-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 284/351] meson: tests: build shared libraries Date: Thu, 16 Jul 2020 11:58:40 +0200 Message-Id: <5d66e63e3f0378b7ba861e99a0c8856e5f66134d.1594891445.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina --- tests/Makefile.am | 21 --------------------- tests/meson.build | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 21 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index fc48527792b..856ae8dad15 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -16,13 +16,6 @@ ## License along with this library. If not, see ## . =20 -DRIVERLIB_LDFLAGS =3D \ - -avoid-version \ - -rpath /evil/libtool/hack/to/force/shared/lib/creation \ - $(MINGW_EXTRA_LDFLAGS) \ - $(FLAT_NAMESPACE_FLAGS) \ - $(NULL) - PROBES_O =3D if WITH_DTRACE_PROBES PROBES_O +=3D ../src/libvirt_probes.lo @@ -115,7 +108,6 @@ endif WITH_SECDRIVER_SELINUX if WITH_LIBXL test_programs +=3D xlconfigtest \ xmconfigtest libxlxml2domconfigtest -test_libraries +=3D libxltestdriver.la endif WITH_LIBXL =20 if WITH_QEMU @@ -132,9 +124,6 @@ test_programs +=3D qemuxml2argvtest qemuxml2xmltest \ qemuvhostusertest \ $(NULL) test_helpers +=3D qemucapsprobe -test_libraries +=3D \ - libqemutestdriver.la \ - $(NULL) endif WITH_QEMU =20 if WITH_LXC @@ -291,10 +280,8 @@ endif WITH_LINUX =20 if WITH_TESTS noinst_PROGRAMS =3D $(test_programs) $(test_helpers) -noinst_LTLIBRARIES =3D $(test_libraries) else ! WITH_TESTS check_PROGRAMS =3D $(test_programs) $(test_helpers) -check_LTLIBRARIES =3D $(test_libraries) endif ! WITH_TESTS =20 TESTS =3D $(test_programs) \ @@ -317,10 +304,6 @@ libxl_LDADDS =3D \ $(LDADDS) \ $(NULL) =20 -libxltestdriver_la_SOURCES =3D -libxltestdriver_la_LDFLAGS =3D $(DRIVERLIB_LDFLAGS) -libxltestdriver_la_LIBADD =3D $(libxl_LDADDS) - xlconfigtest_SOURCES =3D \ xlconfigtest.c testutilsxen.c testutilsxen.h \ testutils.c testutils.h @@ -348,10 +331,6 @@ qemu_LDADDS +=3D ../src/libvirt_qemu_probes.lo endif WITH_DTRACE_PROBES qemu_LDADDS +=3D $(LDADDS) =20 -libqemutestdriver_la_SOURCES =3D -libqemutestdriver_la_LDFLAGS =3D $(DRIVERLIB_LDFLAGS) -libqemutestdriver_la_LIBADD =3D $(qemu_LDADDS) - qemuxml2argvtest_SOURCES =3D \ qemuxml2argvtest.c testutilsqemu.c testutilsqemu.h \ testutils.c testutils.h \ diff --git a/tests/meson.build b/tests/meson.build index cc83159934f..cdcb87453fc 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -149,8 +149,14 @@ if conf.has('WITH_LIBXL') dependencies: [ tests_dep ], ) =20 + test_xen_driver_lib =3D shared_library( + 'test_xen_driver', + link_whole: [ libxl_driver_imp ], + link_with: [ libvirt_lib ], + ) else test_utils_xen_lib =3D [] + test_xen_driver_lib =3D [] endif =20 if conf.has('WITH_LXC') @@ -175,7 +181,15 @@ if conf.has('WITH_QEMU') [ 'qemumonitortestutils.c', 'testutilsqemuschema.c' ], dependencies: [ tests_dep ], ) + + test_qemu_driver_lib =3D shared_library( + 'test_qemu_driver', + [ qemu_dtrace_gen_objects ], + link_whole: [ qemu_driver_impl ], + link_with: [ libvirt_lib ], + ) else + test_qemu_driver_lib =3D [] test_utils_qemu_lib =3D [] test_utils_qemu_monitor_lib =3D [] endif --=20 2.26.2