From nobody Mon Feb 9 18:19:17 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.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 (zohomail.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=1576156672; cv=none; d=zohomail.com; s=zohoarc; b=Vi5ti+7kEdSXmK142S7jyxCA9qEKwxKOsiaYUffVQFPTR1Gj2vZ7Y0GrePvSQdk5HCEcwZjsm8nPaEPbjYlb/re1MWee1aKOry8g/Fx84k4Y/7eKqjYzOfvLuBVS1ict3KWKWPjhkuOQrUowtF8SpdNI4dNvng5d5v76dNE0WoQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576156672; 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=MxvLUkJt3psVnzx/R00RwMG5IpoZlvCgNl7VnjVean0=; b=Q5CHHy8T8lays6ALrZVnFdDldsNn/WiSxabn9kJxY07WilqkF7kpOeigah+UJLccQNGFPeJtSeTY2iR+GmzcotGxp2fwUZrOaugBI0A2j3RnV9s/CGdM7R8DI7t2GZCEWU7ZdL/iNj6mDmEfM7T/FxUu0Vxt6XQD+qIu67DvLU8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.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 1576156672429866.7787400331414; Thu, 12 Dec 2019 05:17:52 -0800 (PST) Received: from localhost ([::1]:59146 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifOLm-0006Mb-GU for importer@patchew.org; Thu, 12 Dec 2019 08:17:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33085) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifNyI-0003Pr-MY for qemu-devel@nongnu.org; Thu, 12 Dec 2019 07:53:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifNyH-0006by-A3 for qemu-devel@nongnu.org; Thu, 12 Dec 2019 07:53:34 -0500 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:39673) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ifNyH-0006aE-06 for qemu-devel@nongnu.org; Thu, 12 Dec 2019 07:53:33 -0500 Received: by mail-wm1-x341.google.com with SMTP id d5so2375341wmb.4 for ; Thu, 12 Dec 2019 04:53:32 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id n189sm5193825wme.33.2019.12.12.04.53.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Dec 2019 04:53:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MxvLUkJt3psVnzx/R00RwMG5IpoZlvCgNl7VnjVean0=; b=Ic6HpTyC1Bk6kr8kQmV4dx+nM0zlipYk0YTp2IsCiqopS1X7wCBNMk71rePq3+KOUX huEXCIplAVGgHtVkjKZaq5cI+UU+DWBBNhbStjhNMulZfv73KMHkSxfDzylqdXzdmy3z O7LMojzOGZEh8Ahu+ITi4pAxMo9V7P176CJYmzDOi/co5r3WFEkJlBy6lIvhIFBInAeQ 4fJaQhgFrcIYcH2fcLKTFOQ/YFwsXqRdFvz7EVXtFb+ZdKdFA7fzIOCURig12t0RRRKk ojbdU/1cL9UoITunshiAFOCWNoImCVkHvuvdr1jGQ0bfAXnluabrzBxnPtXxcqcN+2k8 riNg== 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:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=MxvLUkJt3psVnzx/R00RwMG5IpoZlvCgNl7VnjVean0=; b=g3tGYYYWN31oLFiu6/8hGHfaSXTCog70bywpZ/zqCvm1fTxm1pmX81sNkiFVtgi/qX imEl9rHs9K+o8YgJH2A7O60jrRG87RHHeJcu9ZYQsOvB75cyS2CgS4idtIVfa+i7hYqr apzHjOcfLKL5HoFOnwBb4pgc8NvzHcHWVdCFPkmrTuZmt3g+5D3w8yAKZPYO6n2CFjzi XrBUFOfl65/hqw5VrhbWO/x4PPkkey7F5H4cAUhUtauiRr0iyxSgbXTGoMohhIP62F9o KtwJBk0yIMGlIV7Vxj8Eqk1Hw0u0ju/7ohJSYYSehgLI7ig+cHy7fAa41twSosbbSOkx 19Yw== X-Gm-Message-State: APjAAAXT7tYLU5d0dxNzXIoGSLEI4bytJkGVhT1evy5scXMVkXIBvt85 OfmPxfLoZDB0PyusTIKJdobJBFRx X-Google-Smtp-Source: APXvYqw1V5BSuY3riTm1jvtDjLVXpvBxk29SJpLis1bF71S9hO87+22zxXOmMtW2Vm9McRDmimUZAg== X-Received: by 2002:a05:600c:257:: with SMTP id 23mr6427935wmj.123.1576155211637; Thu, 12 Dec 2019 04:53:31 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 034/132] meson: convert qom directory to Meson Date: Thu, 12 Dec 2019 13:51:18 +0100 Message-Id: <1576155176-2464-35-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1576155176-2464-1-git-send-email-pbonzini@redhat.com> References: <1576155176-2464-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::341 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Marc-Andr=C3=A9 Lureau Signed-off-by: Marc-Andr=C3=A9 Lureau Signed-off-by: Paolo Bonzini --- Makefile | 2 +- Makefile.objs | 4 ++-- Makefile.target | 3 ++- meson.build | 1 + qom/Makefile.objs | 3 --- qom/meson.build | 15 +++++++++++++++ tests/Makefile.include | 2 +- 7 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 qom/meson.build diff --git a/Makefile b/Makefile index b880265..9e9b2cf 100644 --- a/Makefile +++ b/Makefile @@ -202,7 +202,6 @@ dummy :=3D $(call unnest-vars,, \ block-obj-y \ block-obj-m \ crypto-obj-y \ - qom-obj-y \ io-obj-y \ common-obj-y \ common-obj-m) @@ -222,6 +221,7 @@ $(SOFTMMU_ALL_RULES): $(block-obj-y) $(SOFTMMU_ALL_RULES): $(chardev-obj-y) $(SOFTMMU_ALL_RULES): $(crypto-obj-y) $(SOFTMMU_ALL_RULES): $(io-obj-y) +$(SOFTMMU_ALL_RULES): $(qom-obj-y) $(SOFTMMU_ALL_RULES): config-all-devices.mak =20 .PHONY: $(TARGET_DIRS_RULES) diff --git a/Makefile.objs b/Makefile.objs index 38e3604..b695319 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -24,9 +24,9 @@ block-obj-m =3D block/ crypto-obj-y =3D crypto/ =20 ####################################################################### -# qom-obj-y is code used by both qemu system emulation and qemu-img +# libraries built entirely from meson =20 -qom-obj-y =3D qom/ +qom-obj-y =3D qom/libqom.fa =20 ####################################################################### # io-obj-y is code used by both qemu system emulation and qemu-img diff --git a/Makefile.target b/Makefile.target index 1f19d68..df3b14a 100644 --- a/Makefile.target +++ b/Makefile.target @@ -176,13 +176,14 @@ dummy :=3D $(call unnest-vars,,obj-y) all-obj-y :=3D $(obj-y) =20 include $(SRC_PATH)/Makefile.objs +dummy :=3D $(call fix-paths,../,, \ + qom-obj-y) dummy :=3D $(call unnest-vars,.., \ authz-obj-y \ block-obj-y \ block-obj-m \ chardev-obj-y \ crypto-obj-y \ - qom-obj-y \ io-obj-y \ common-obj-y \ common-obj-m) diff --git a/meson.build b/meson.build index 00c0767..36094fe 100644 --- a/meson.build +++ b/meson.build @@ -271,6 +271,7 @@ libqemuutil =3D static_library('qemuutil', qemuutil =3D declare_dependency(link_with: libqemuutil, sources: version_res) =20 +subdir('qom') subdir('fsdev') =20 # Other build targets diff --git a/qom/Makefile.objs b/qom/Makefile.objs index f9d7735..fc1248e 100644 --- a/qom/Makefile.objs +++ b/qom/Makefile.objs @@ -1,4 +1 @@ -qom-obj-y =3D object.o container.o qom-qobject.o -qom-obj-y +=3D object_interfaces.o - common-obj-$(CONFIG_SOFTMMU) +=3D qom-hmp-cmds.o qom-qmp-cmds.o diff --git a/qom/meson.build b/qom/meson.build new file mode 100644 index 0000000..3c41ed3 --- /dev/null +++ b/qom/meson.build @@ -0,0 +1,15 @@ +qom_ss =3D ss.source_set() +qom_ss.add(files( + 'container.c', + 'object.c', + 'object_interfaces.c', + 'qom-qobject.c', +)) + +qom_ss =3D qom_ss.apply(config_host, strict: false) +libqom =3D static_library('qom', qom_ss.sources(), + dependencies: [qom_ss.dependencies()], + link_with: [libqemuutil], + name_suffix: 'fa') + +qom =3D declare_dependency(link_whole: libqom) diff --git a/tests/Makefile.include b/tests/Makefile.include index 9fd6a48..659f087 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -498,7 +498,7 @@ QEMU_CFLAGS +=3D -I$(SRC_PATH)/tests =20 # Deps that are common to various different sets of tests below test-util-obj-y =3D libqemuutil.a -test-qom-obj-y =3D $(qom-obj-y) $(test-util-obj-y) +test-qom-obj-y =3D qom/libqom.fa $(test-util-obj-y) test-qapi-obj-y =3D tests/test-qapi-types.o \ tests/include/test-qapi-types-sub-module.o \ tests/test-qapi-types-sub-sub-module.o \ --=20 1.8.3.1