From nobody Mon Feb 9 13:59:05 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1562775762; cv=none; d=zoho.com; s=zohoarc; b=mY3IoWwtKSnoBeOpGeRnl8CC3sbV+2M1kf0LdeAHgnmTIstJdhy+TOtnP8ygsVrZsYs5ADWhhyfiVfbEFpY2UQADQ8Om859EVd0uivqIXMSWvigi8jVMcHuKqDAY3NULl/w+8plddfdvm5oLx1/Ew7+fYCVnf8QM1vzyOg9BBrk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562775762; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=jIw3wGu90O5VPci/xvcIGXIfoKSHop6LUOoGJt7ZTWc=; b=FvW8Eg6kdSBVBqbnarPDRHRn7CUIH7WtAxFl5ITVyUuDrMT3D8BnXeW6/GmLVg3Bt6LQgrIvzYfQlOyWPO+3102Q/aOm9AwbE3I2u1QMYUiB5KPf60PsTHnLll+YAm6LbVj+wpwYvqL7sX5dcgU7MlXMjW35CnEAq8z2WvE2vIQ= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 156277576277748.19289783513966; Wed, 10 Jul 2019 09:22:42 -0700 (PDT) Received: from localhost ([::1]:35256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlFMf-0003Gu-Nt for importer@patchew.org; Wed, 10 Jul 2019 12:22:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55410) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlFF4-00068T-6l for qemu-devel@nongnu.org; Wed, 10 Jul 2019 12:14:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlFEy-0007b5-0b for qemu-devel@nongnu.org; Wed, 10 Jul 2019 12:14:46 -0400 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:55620) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hlFEv-0007SF-4O for qemu-devel@nongnu.org; Wed, 10 Jul 2019 12:14:41 -0400 Received: by mail-wm1-x342.google.com with SMTP id a15so2890765wmj.5 for ; Wed, 10 Jul 2019 09:14:37 -0700 (PDT) Received: from 640k.localdomain ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id w14sm2573747wrk.44.2019.07.10.09.14.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jul 2019 09:14:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=jIw3wGu90O5VPci/xvcIGXIfoKSHop6LUOoGJt7ZTWc=; b=enMWWHMhdGScWeiH9/8UKECqgmTSu17wDmSjJK72LOxDFdTgOvdgz7yQ3ijCMvLbrB rOQkuXzS4XyCuv+ZC5yT3e3CJqSl/tyTcW8isk2BNnHz76fOqus50Ddl93eh7/F7DiUF W3X90JXamLEaiCgM+BuDlk9qE/IowstDZ9yrMBxJR175DUmOtmcNqfWPfV40iN1mMBak xOklGzeevOBCYfjDguSoc8DMqwvhIbdpnhDr7ROgNCsEHB1lu8UMP3WymzP15QqyMRvg Zzi2alBWuNNiqFlQlQAWcPqXHPRkOEj9TOvOu2TucpYjSeFMvJjQba6PuorTnSozrKTY 6W1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=jIw3wGu90O5VPci/xvcIGXIfoKSHop6LUOoGJt7ZTWc=; b=KgULuhHvZwex8bLL3Zw9GxsSl72i6/0hOnVc8rAvO0o3fdOyvaC25XZf2mKFrzgZsL sqf1rhIWkq3OEkEf9gpcjEkomw/N1gsdifFvgYrGg2EI2WSXLsdSJgQ6TriJrxbxbict OuwNXnEzOkjOspxi5XorqQLTe/24DeNaFM7kvkze2tbqeuqR3FS+lRKe1h7J9QUIax2Z OqLk5qa+XeTQ1vsn/Kj5XYXYJj1jtFNBIou7yEreWctUxdntiiUnGZTvHIZf92rgzrgf kPSFXOPlaireUP79dq1m8F6rqDyH91V1ulgEG7e6B7KQ88W9mMDFv8OHPXaANndw9guh vcLw== X-Gm-Message-State: APjAAAUr+oiC5K7h3serJY7zZ37YE2k/7S0YwQrcB4gzys87HY7OSYQ+ 0naE3ToPRvr43dxVWozKo1jF8zVDODw= X-Google-Smtp-Source: APXvYqwvunjfBK2yqOmf+RskOpwp/guTdq7v7TXbm2tasfOLXWevCHT/RI4yABOZwq+Oz/CmxL0hrw== X-Received: by 2002:a7b:cb08:: with SMTP id u8mr5916598wmj.167.1562775275945; Wed, 10 Jul 2019 09:14:35 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 10 Jul 2019 18:14:24 +0200 Message-Id: <1562775267-1222-6-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1562775267-1222-1-git-send-email-pbonzini@redhat.com> References: <1562775267-1222-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::342 Subject: [Qemu-devel] [PATCH 5/8] libvhost-user: convert to Meson X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , berrange@redhat.com, armbru@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Since libqemuutil.a has been converted to Meson, the conversion is straightforward. Signed-off-by: Paolo Bonzini --- Makefile | 14 ++++---------- Makefile.objs | 1 - contrib/libvhost-user/Makefile.objs | 1 - contrib/libvhost-user/meson.build | 2 ++ meson.build | 4 ++++ 5 files changed, 10 insertions(+), 12 deletions(-) delete mode 100644 contrib/libvhost-user/Makefile.objs create mode 100644 contrib/libvhost-user/meson.build diff --git a/Makefile b/Makefile index ddc7d27..3763d8c 100644 --- a/Makefile +++ b/Makefile @@ -323,7 +323,6 @@ dummy :=3D $(call unnest-vars,, \ ivshmem-client-obj-y \ ivshmem-server-obj-y \ rdmacm-mux-obj-y \ - libvhost-user-obj-y \ vhost-user-scsi-obj-y \ vhost-user-blk-obj-y \ vhost-user-input-obj-y \ @@ -422,11 +421,6 @@ $(BUILD_DIR)/version.o: $(SRC_PATH)/version.rc config-= host.h Makefile: $(version-obj-y) =20 ###################################################################### -# Build libraries - -libvhost-user.a: $(libvhost-user-obj-y) - -###################################################################### =20 COMMON_LDADDS =3D libqemuutil.a =20 @@ -517,21 +511,21 @@ ivshmem-client$(EXESUF): $(ivshmem-client-obj-y) $(CO= MMON_LDADDS) ivshmem-server$(EXESUF): $(ivshmem-server-obj-y) $(COMMON_LDADDS) $(call LINK, $^) endif -vhost-user-scsi$(EXESUF): $(vhost-user-scsi-obj-y) libvhost-user.a $(COMMO= N_LDADDS) +vhost-user-scsi$(EXESUF): $(vhost-user-scsi-obj-y) contrib/libvhost-user/l= ibvhost-user.a $(COMMON_LDADDS) $(call LINK, $^) -vhost-user-blk$(EXESUF): $(vhost-user-blk-obj-y) libvhost-user.a $(COMMON_= LDADDS) +vhost-user-blk$(EXESUF): $(vhost-user-blk-obj-y) contrib/libvhost-user/lib= vhost-user.a $(COMMON_LDADDS) $(call LINK, $^) =20 rdmacm-mux$(EXESUF): LIBS +=3D "-libumad" rdmacm-mux$(EXESUF): $(rdmacm-mux-obj-y) $(COMMON_LDADDS) $(call LINK, $^) =20 -vhost-user-gpu$(EXESUF): $(vhost-user-gpu-obj-y) $(libvhost-user-obj-y) $(= COMMON_LDADDS) +vhost-user-gpu$(EXESUF): $(vhost-user-gpu-obj-y) contrib/libvhost-user/lib= vhost-user.a $(COMMON_LDADDS) $(call LINK, $^) =20 ifdef CONFIG_VHOST_USER_INPUT ifdef CONFIG_LINUX -vhost-user-input$(EXESUF): $(vhost-user-input-obj-y) libvhost-user.a $(COM= MON_LDADDS) +vhost-user-input$(EXESUF): $(vhost-user-input-obj-y) contrib/libvhost-user= /libvhost-user.a $(COMMON_LDADDS) $(call LINK, $^) =20 # build by default, do not install diff --git a/Makefile.objs b/Makefile.objs index 29ffaa3..0bcba93 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -114,7 +114,6 @@ qga-vss-dll-obj-y =3D qga/ elf2dmp-obj-y =3D contrib/elf2dmp/ ivshmem-client-obj-$(CONFIG_IVSHMEM) =3D contrib/ivshmem-client/ ivshmem-server-obj-$(CONFIG_IVSHMEM) =3D contrib/ivshmem-server/ -libvhost-user-obj-y =3D contrib/libvhost-user/ vhost-user-scsi.o-cflags :=3D $(LIBISCSI_CFLAGS) vhost-user-scsi.o-libs :=3D $(LIBISCSI_LIBS) vhost-user-scsi-obj-y =3D contrib/vhost-user-scsi/ diff --git a/contrib/libvhost-user/Makefile.objs b/contrib/libvhost-user/Ma= kefile.objs deleted file mode 100644 index ef3778e..0000000 --- a/contrib/libvhost-user/Makefile.objs +++ /dev/null @@ -1 +0,0 @@ -libvhost-user-obj-y +=3D libvhost-user.o libvhost-user-glib.o diff --git a/contrib/libvhost-user/meson.build b/contrib/libvhost-user/meso= n.build new file mode 100644 index 0000000..03ba2af --- /dev/null +++ b/contrib/libvhost-user/meson.build @@ -0,0 +1,2 @@ +libvhost_user =3D static_library('vhost-user', + [files('libvhost-user.c', 'libvhost-user-gl= ib.c')]) diff --git a/meson.build b/meson.build index c625547..a0a8554 100644 --- a/meson.build +++ b/meson.build @@ -140,3 +140,7 @@ util_obj =3D util_obj.apply(config_host, strict: false) libqemuutil =3D static_library('qemuutil', sources: util_obj.sources(), dependencies: util_obj.dependencies()) + +# Other build targets + +subdir('contrib/libvhost-user') --=20 1.8.3.1