On Mon, Mar 3, 2025 at 11:24 AM 汪鹏程 <wangpengcheng...@bytedance.com> wrote:
>
> What about plugins under `tests/tcg/plugins/`?

It feels a bit odd to install something from the tests directory.
If certain plugins in tests/tcg/plugins are of general use (not just
for testing) then it might be
reasonable to move them to contrib/plugins.



> From: "Christoph Müllner"<christoph.muell...@vrull.eu>
> Date: Mon, Mar 3, 2025, 18:09
> Subject: [External] [PATCH] contrib/plugins: Install plugins to moddir
> To: <qemu-devel@nongnu.org>, "Alex Bennée"<alex.ben...@linaro.org>, 
> "Alexandre Iooss"<erdn...@crans.org>, "Mahmoud 
> Mandour"<ma.mando...@gmail.com>, "Pierrick 
> Bouvier"<pierrick.bouv...@linaro.org>
> Cc: "Wang Pengcheng"<wangpengcheng...@bytedance.com>, "Christoph 
> Müllner"<christoph.muell...@vrull.eu>
> Currently the built plugins can only be found in the build directory.
> This patch lists them as installable objects, which will be copied
> into qemu_moddir with `make install`.
>
> Signed-off-by: Christoph Müllner <christoph.muell...@vrull.eu>
> ---
>  contrib/plugins/meson.build | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/contrib/plugins/meson.build b/contrib/plugins/meson.build
> index 82c97ca0f5..c25a1871b7 100644
> --- a/contrib/plugins/meson.build
> +++ b/contrib/plugins/meson.build
> @@ -14,11 +14,15 @@ if get_option('plugins')
>                          include_directories: '../../include/qemu',
>                          link_depends: [win32_qemu_plugin_api_lib],
>                          link_args: win32_qemu_plugin_api_link_flags,
> -                        dependencies: glib)
> +                        dependencies: glib,
> +                        install: true,
> +                        install_dir: qemu_moddir)
>      else
>        t += shared_module(i, files(i + '.c'),
>                          include_directories: '../../include/qemu',
> -                        dependencies: glib)
> +                        dependencies: glib,
> +                        install: true,
> +                        install_dir: qemu_moddir)
>      endif
>    endforeach
>  endif
> --
> 2.47.1

Reply via email to