From: Alex Bennée Date: Tue, 4 Mar 2025 22:24:36 +0000 (+0000) Subject: plugins/api: build only once X-Git-Tag: v10.0.0-rc0~16^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=40988ed9dfca934791bd2aeb1cc2d11e3a239265;p=thirdparty%2Fqemu.git plugins/api: build only once Now all the softmmu/user-mode stuff has been split out we can build this compilation unit only once. Reviewed-by: Richard Henderson Signed-off-by: Alex Bennée Message-Id: <20250304222439.2035603-30-alex.bennee@linaro.org> --- diff --git a/plugins/api.c b/plugins/api.c index 832bf6ee5e6..604ce06802a 100644 --- a/plugins/api.c +++ b/plugins/api.c @@ -46,17 +46,6 @@ #include "exec/translator.h" #include "disas/disas.h" #include "plugin.h" -#ifndef CONFIG_USER_ONLY -#include "qapi/error.h" -#include "migration/blocker.h" -#include "qemu/plugin-memory.h" -#include "hw/boards.h" -#else -#include "qemu.h" -#ifdef CONFIG_LINUX -#include "loader.h" -#endif -#endif /* Uninstall and Reset handlers */ diff --git a/plugins/meson.build b/plugins/meson.build index 942b59e9041..d27220d5ff3 100644 --- a/plugins/meson.build +++ b/plugins/meson.build @@ -61,9 +61,8 @@ endif user_ss.add(files('user.c', 'api-user.c')) system_ss.add(files('system.c', 'api-system.c')) -common_ss.add(files('loader.c')) +common_ss.add(files('loader.c', 'api.c')) specific_ss.add(files( 'core.c', - 'api.c', ))