From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 09B04C43334 for ; Tue, 12 Jul 2022 14:59:52 +0000 (UTC) Received: from localhost ([::1]:33652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBHMe-0008Od-32 for qemu-devel@archiver.kernel.org; Tue, 12 Jul 2022 10:59:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBHKs-0006zP-7K for qemu-devel@nongnu.org; Tue, 12 Jul 2022 10:58:04 -0400 Received: from mail-ua1-x92c.google.com ([2607:f8b0:4864:20::92c]:38674) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBHKp-0000Nl-2Q for qemu-devel@nongnu.org; Tue, 12 Jul 2022 10:58:01 -0400 Received: by mail-ua1-x92c.google.com with SMTP id j6so3078454uae.5 for ; Tue, 12 Jul 2022 07:57:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=18RJ24HurOOKRIJCyKvl1brRxYWQ6KU5G/ZZk4JpHYk=; b=z/7sZE36lUwXu0Rup1LIZLR7oPnvmSeJaX3D4YYFledmdsGiDhB+ZvWp4zwsAe9lKt 7PRChxeXkz5qWMyeMdinFvhL4TyYl2lqnyLUhE3QRHtvxyxQ1B9MCSnguCBQXwDm5tA1 E2gItVquummjKhbpGVCKovRKACuLd7HGhgUKeuVcFrStEyEvmjcbojxmFB8OYhnPUyQ+ 1uStlDbt3Ya9XAo0t6oQ7OcRypCbfXtM1s8t3WPGuZAycbGSbYSgRCEMlEMnC1WOd7pL BhalphX4Wr4DncXVHqqrP/OVD3mnRd/5ksz8ic48qeM9XJ9XXWCOYGnwdVeI0OtSsWpJ PkpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=18RJ24HurOOKRIJCyKvl1brRxYWQ6KU5G/ZZk4JpHYk=; b=qzJFptjjkbg+FMWPlNxUOyxm+bktDadZXyKPtGIXCuMOHLW53bhR+/lAcTwX2IbPqL It0PN/Y9+7dz2WVogGiB6DX6cNOBc4r7OA9QuavXdW2PORK4gG+pHia1VQ2kTeuOtb3x mJJzjkENUxnmDC/jRtIQ0mKblQRLGuYr6Zh+3wipUrOTp4bNAi+CSmLJObL9f+S/hErp /m9EnRQRiDsCorEIo3bHjLxA4eGLcAoWB65Oj0Qj/xgB9eJZ+baHzNp7/DV6fiA4t615 aH22pKtY/okNXyhDKVQqwfSTp0zj54NwxChbxm14GN6C/+ClB/HfT3KP//s/NGFCuD4g M4cQ== X-Gm-Message-State: AJIora8NXKC5htKBvutuKQy+gdRNIYp3USe7cGy+ljWhrEsALLmSsLcE aEuxhJ138Y/2OyLa97t0l26xkU3ov7QydgHYr58PnA== X-Google-Smtp-Source: AGRyM1uWxeccQX7cG0RtNOu1LylDAA+fZA9RB5roZpGugEC0ZUpCEX92jl7dMJIh9gsf+REioCCiohb6lFA9eY4MIPc= X-Received: by 2002:ab0:2a06:0:b0:379:96c7:bf4f with SMTP id o6-20020ab02a06000000b0037996c7bf4fmr7890683uar.8.1657637874788; Tue, 12 Jul 2022 07:57:54 -0700 (PDT) MIME-Version: 1.0 References: <20220712093528.4144184-1-marcandre.lureau@redhat.com> <20220712093528.4144184-11-marcandre.lureau@redhat.com> In-Reply-To: <20220712093528.4144184-11-marcandre.lureau@redhat.com> From: Warner Losh Date: Tue, 12 Jul 2022 08:57:43 -0600 Message-ID: Subject: Re: [PATCH v2 10/15] qemu-common: introduce a common subproject To: =?UTF-8?B?TWFyYy1BbmRyw6kgTHVyZWF1?= Cc: QEMU Developers , Eric Blake , Cleber Rosa , "open list:Block layer core" , Paolo Bonzini , Xie Yongji , Kyle Evans , Peter Maydell , John Snow , Michael Roth , Kevin Wolf , "Dr. David Alan Gilbert" , Markus Armbruster , Vladimir Sementsov-Ogievskiy , Laurent Vivier , Fam Zheng , Hanna Reitz Content-Type: multipart/alternative; boundary="000000000000b17fc805e39ce4d6" Received-SPF: none client-ip=2607:f8b0:4864:20::92c; envelope-from=wlosh@bsdimp.com; helo=mail-ua1-x92c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --000000000000b17fc805e39ce4d6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jul 12, 2022 at 3:36 AM wrote: > From: Marc-Andr=C3=A9 Lureau > > Add a new meson subproject to provide common code and scripts for QEMU > and tools. Initially, it will offer QAPI/QMP code generation and > common utilities. > > libvhost-user & libvduse will make use of the subproject to avoid having > include/ links to common headers. > > The other targeted user is qemu-ga, which will also be converted to a > subproject (so it can be built, moved, released etc independent from QEMU= ). > > Other projects such as qemu-storage-daemon could be built standalone > eventually in the future. > > Note that with meson subprojects are "global". Projects will share > subprojects ( > https://mesonbuild.com/Subprojects.html#subprojects-depending-on-other-su= bprojects > ). > We will add extra subprojects/ links to allow standalone subproject > compilation though. > > This initial commit simply set the stage to build and link against it. > > Signed-off-by: Marc-Andr=C3=A9 Lureau > --- > meson.build | 9 ++++++++- > .../qemu-common/include}/qemu/help-texts.h | 0 > linux-user/meson.build | 4 ++-- > subprojects/libvduse/meson.build | 2 ++ > subprojects/libvduse/subprojects/qemu-common | 1 + > subprojects/libvhost-user/meson.build | 2 ++ > subprojects/libvhost-user/subprojects/qemu-common | 1 + > subprojects/qemu-common/meson.build | 8 ++++++++ > 8 files changed, 24 insertions(+), 3 deletions(-) > rename {include =3D> subprojects/qemu-common/include}/qemu/help-texts.h > (100%) > create mode 120000 subprojects/libvduse/subprojects/qemu-common > create mode 120000 subprojects/libvhost-user/subprojects/qemu-common > create mode 100644 subprojects/qemu-common/meson.build > > diff --git a/meson.build b/meson.build > index bc5569ace159..254eb1263a66 100644 > --- a/meson.build > +++ b/meson.build > @@ -167,6 +167,10 @@ if 'dtrace' in get_option('trace_backends') > endif > endif > > +add_project_arguments('-I' + meson.current_source_dir() / > 'subprojects/qemu-common/include', > + language: ['c', 'cpp', 'objc'], > +) > + > if get_option('iasl') =3D=3D '' > iasl =3D find_program('iasl', required: false) > else > @@ -1577,6 +1581,9 @@ if libbpf.found() and not cc.links(''' > endif > endif > > +qemu_common =3D subproject('qemu-common') > +qemu_common =3D qemu_common.get_variable('qemu_common_dep') > + > ################# > # config-host.h # > ################# > @@ -3052,7 +3059,7 @@ util_ss.add_all(trace_ss) > util_ss =3D util_ss.apply(config_all, strict: false) > libqemuutil =3D static_library('qemuutil', > sources: util_ss.sources() + > stub_ss.sources() + genh, > - dependencies: [util_ss.dependencies(), libm= , > threads, glib, socket, malloc, pixman]) > + dependencies: [util_ss.dependencies(), libm= , > threads, glib, socket, malloc, pixman, qemu_common]) > qemuutil =3D declare_dependency(link_with: libqemuutil, > sources: genh + version_res, > dependencies: [event_loop_base]) > diff --git a/include/qemu/help-texts.h > b/subprojects/qemu-common/include/qemu/help-texts.h > similarity index 100% > rename from include/qemu/help-texts.h > rename to subprojects/qemu-common/include/qemu/help-texts.h > diff --git a/linux-user/meson.build b/linux-user/meson.build > index de4320af053c..fc6cdb55d657 100644 > --- a/linux-user/meson.build > +++ b/linux-user/meson.build > @@ -7,7 +7,7 @@ linux_user_ss =3D ss.source_set() > common_user_inc +=3D include_directories('include/host/' / host_arch) > common_user_inc +=3D include_directories('include') > > -linux_user_ss.add(files( > +linux_user_ss.add([files( > 'elfload.c', > 'exit.c', > 'fd-trans.c', > @@ -20,7 +20,7 @@ linux_user_ss.add(files( > 'thunk.c', > 'uaccess.c', > 'uname.c', > -)) > +), qemu_common]) > Question: Why does linux-user need these, but bsd-user does not? Warner > linux_user_ss.add(rt) > > linux_user_ss.add(when: 'TARGET_HAS_BFLT', if_true: files('flatload.c')) > diff --git a/subprojects/libvduse/meson.build > b/subprojects/libvduse/meson.build > index ba08f5ee1a03..841509ecb996 100644 > --- a/subprojects/libvduse/meson.build > +++ b/subprojects/libvduse/meson.build > @@ -2,6 +2,8 @@ project('libvduse', 'c', > license: 'GPL-2.0-or-later', > default_options: ['c_std=3Dgnu99']) > > +qemu_common =3D subproject('qemu-common') > + > libvduse =3D static_library('vduse', > files('libvduse.c'), > c_args: '-D_GNU_SOURCE') > diff --git a/subprojects/libvduse/subprojects/qemu-common > b/subprojects/libvduse/subprojects/qemu-common > new file mode 120000 > index 000000000000..4c1c87018a7a > --- /dev/null > +++ b/subprojects/libvduse/subprojects/qemu-common > @@ -0,0 +1 @@ > +../../qemu-common > \ No newline at end of file > diff --git a/subprojects/libvhost-user/meson.build > b/subprojects/libvhost-user/meson.build > index 39825d9404ae..73355908e072 100644 > --- a/subprojects/libvhost-user/meson.build > +++ b/subprojects/libvhost-user/meson.build > @@ -5,6 +5,8 @@ project('libvhost-user', 'c', > threads =3D dependency('threads') > glib =3D dependency('glib-2.0') > > +qemu_common =3D subproject('qemu-common') > + > vhost_user =3D static_library('vhost-user', > files('libvhost-user.c'), > dependencies: threads, > diff --git a/subprojects/libvhost-user/subprojects/qemu-common > b/subprojects/libvhost-user/subprojects/qemu-common > new file mode 120000 > index 000000000000..4c1c87018a7a > --- /dev/null > +++ b/subprojects/libvhost-user/subprojects/qemu-common > @@ -0,0 +1 @@ > +../../qemu-common > \ No newline at end of file > diff --git a/subprojects/qemu-common/meson.build > b/subprojects/qemu-common/meson.build > new file mode 100644 > index 000000000000..8969b08473ef > --- /dev/null > +++ b/subprojects/qemu-common/meson.build > @@ -0,0 +1,8 @@ > +project('qemu-common', 'c', > + license: 'GPL-2.0-or-later', > + default_options: ['c_std=3Dgnu11'] > +) > + > +qemu_common_dep =3D declare_dependency( > + include_directories: include_directories('include'), > +) > -- > 2.37.0.rc0 > > --000000000000b17fc805e39ce4d6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Tue, Jul 12, 2022 at 3:36 AM <<= a href=3D"mailto:marcandre.lureau@redhat.com">marcandre.lureau@redhat.com> wrote:
Fr= om: Marc-Andr=C3=A9 Lureau <marcandre.lureau@redhat.com>

Add a new meson subproject to provide common code and scripts for QEMU
and tools. Initially, it will offer QAPI/QMP code generation and
common utilities.

libvhost-user & libvduse will make use of the subproject to avoid havin= g
include/ links to common headers.

The other targeted user is qemu-ga, which will also be converted to a
subproject (so it can be built, moved, released etc independent from QEMU).=

Other projects such as qemu-storage-daemon could be built standalone
eventually in the future.

Note that with meson subprojects are "global". Projects will shar= e
subprojects (https= ://mesonbuild.com/Subprojects.html#subprojects-depending-on-other-subprojec= ts).
We will add extra subprojects/ links to allow standalone subproject
compilation though.

This initial commit simply set the stage to build and link against it.

Signed-off-by: Marc-Andr=C3=A9 Lureau <marcandre.lureau@redhat.com>
---
=C2=A0meson.build=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | 9 ++++++++-
=C2=A0.../qemu-common/include}/qemu/help-texts.h=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0| 0
=C2=A0linux-user/meson.build=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0| 4 ++--
=C2=A0subprojects/libvduse/meson.build=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| 2 ++
=C2=A0subprojects/libvduse/subprojects/qemu-common=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0| 1 +
=C2=A0subprojects/libvhost-user/meson.build=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | 2 ++
=C2=A0subprojects/libvhost-user/subprojects/qemu-common=C2=A0 =C2=A0 =C2=A0= =C2=A0 | 1 +
=C2=A0subprojects/qemu-common/meson.build=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | 8 ++++++++
=C2=A08 files changed, 24 insertions(+), 3 deletions(-)
=C2=A0rename {include =3D> subprojects/qemu-common/include}/qemu/help-te= xts.h (100%)
=C2=A0create mode 120000 subprojects/libvduse/subprojects/qemu-common
=C2=A0create mode 120000 subprojects/libvhost-user/subprojects/qemu-common<= br> =C2=A0create mode 100644 subprojects/qemu-common/meson.build

diff --git a/meson.build b/meson.build
index bc5569ace159..254eb1263a66 100644
--- a/meson.build
+++ b/meson.build
@@ -167,6 +167,10 @@ if 'dtrace' in get_option('trace_backends&= #39;)
=C2=A0 =C2=A0endif
=C2=A0endif

+add_project_arguments('-I' + meson.current_source_dir() / 'sub= projects/qemu-common/include',
+=C2=A0 language: ['c', 'cpp', 'objc'],
+)
+
=C2=A0if get_option('iasl') =3D=3D ''
=C2=A0 =C2=A0iasl =3D find_program('iasl', required: false)
=C2=A0else
@@ -1577,6 +1581,9 @@ if libbpf.found() and not cc.links(''' =C2=A0 =C2=A0endif
=C2=A0endif

+qemu_common =3D subproject('qemu-common')
+qemu_common =3D qemu_common.get_variable('qemu_common_dep')
+
=C2=A0#################
=C2=A0# config-host.h #
=C2=A0#################
@@ -3052,7 +3059,7 @@ util_ss.add_all(trace_ss)
=C2=A0util_ss =3D util_ss.apply(config_all, strict: false)
=C2=A0libqemuutil =3D static_library('qemuutil',
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sources: util_ss.sources() + stub_ss.source= s() + genh,
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0dependencies: [util_ss.dependencies(), libm,= threads, glib, socket, malloc, pixman])
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0dependencies: [util_ss.dependencies(), libm,= threads, glib, socket, malloc, pixman, qemu_common])
=C2=A0qemuutil =3D declare_dependency(link_with: libqemuutil,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0sources: genh + version_res,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0dependencies: [event_loop_base])
diff --git a/include/qemu/help-texts.h b/subprojects/qemu-common/include/qe= mu/help-texts.h
similarity index 100%
rename from include/qemu/help-texts.h
rename to subprojects/qemu-common/include/qemu/help-texts.h
diff --git a/linux-user/meson.build b/linux-user/meson.build
index de4320af053c..fc6cdb55d657 100644
--- a/linux-user/meson.build
+++ b/linux-user/meson.build
@@ -7,7 +7,7 @@ linux_user_ss =3D ss.source_set()
=C2=A0common_user_inc +=3D include_directories('include/host/' / ho= st_arch)
=C2=A0common_user_inc +=3D include_directories('include')

-linux_user_ss.add(files(
+linux_user_ss.add([files(
=C2=A0 =C2=A0'elfload.c',
=C2=A0 =C2=A0'exit.c',
=C2=A0 =C2=A0'fd-trans.c',
@@ -20,7 +20,7 @@ linux_user_ss.add(files(
=C2=A0 =C2=A0'thunk.c',
=C2=A0 =C2=A0'uaccess.c',
=C2=A0 =C2=A0'uname.c',
-))
+), qemu_common])

Question: Why does li= nux-user=C2=A0need these, but bsd-user does not?

W= arner
=C2=A0
=C2=A0linux_user_ss.add(rt)

=C2=A0linux_user_ss.add(when: 'TARGET_HAS_BFLT', if_true: files(= 9;flatload.c'))
diff --git a/subprojects/libvduse/meson.build b/subprojects/libvduse/meson.= build
index ba08f5ee1a03..841509ecb996 100644
--- a/subprojects/libvduse/meson.build
+++ b/subprojects/libvduse/meson.build
@@ -2,6 +2,8 @@ project('libvduse', 'c',
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0license: 'GPL-2.0-or-later',
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0default_options: ['c_std=3Dgnu99'= ])

+qemu_common =3D subproject('qemu-common')
+
=C2=A0libvduse =3D static_library('vduse',
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0files('libvduse.c'),
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0c_args: '-D_GNU_SOURCE')
diff --git a/subprojects/libvduse/subprojects/qemu-common b/subprojects/lib= vduse/subprojects/qemu-common
new file mode 120000
index 000000000000..4c1c87018a7a
--- /dev/null
+++ b/subprojects/libvduse/subprojects/qemu-common
@@ -0,0 +1 @@
+../../qemu-common
\ No newline at end of file
diff --git a/subprojects/libvhost-user/meson.build b/subprojects/libvhost-u= ser/meson.build
index 39825d9404ae..73355908e072 100644
--- a/subprojects/libvhost-user/meson.build
+++ b/subprojects/libvhost-user/meson.build
@@ -5,6 +5,8 @@ project('libvhost-user', 'c',
=C2=A0threads =3D dependency('threads')
=C2=A0glib =3D dependency('glib-2.0')

+qemu_common =3D subproject('qemu-common')
+
=C2=A0vhost_user =3D static_library('vhost-user',
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0files('libvhost-user.c'),
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0dependencies: threads,
diff --git a/subprojects/libvhost-user/subprojects/qemu-common b/subproject= s/libvhost-user/subprojects/qemu-common
new file mode 120000
index 000000000000..4c1c87018a7a
--- /dev/null
+++ b/subprojects/libvhost-user/subprojects/qemu-common
@@ -0,0 +1 @@
+../../qemu-common
\ No newline at end of file
diff --git a/subprojects/qemu-common/meson.build b/subprojects/qemu-common/= meson.build
new file mode 100644
index 000000000000..8969b08473ef
--- /dev/null
+++ b/subprojects/qemu-common/meson.build
@@ -0,0 +1,8 @@
+project('qemu-common', 'c',
+=C2=A0 license: 'GPL-2.0-or-later',
+=C2=A0 default_options: ['c_std=3Dgnu11']
+)
+
+qemu_common_dep =3D declare_dependency(
+=C2=A0 include_directories: include_directories('include'),
+)
--
2.37.0.rc0

--000000000000b17fc805e39ce4d6--