[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 17/23] plugins: allow plugins to be enabled on windows
|
From: |
Alex Bennée |
|
Subject: |
[PULL 17/23] plugins: allow plugins to be enabled on windows |
|
Date: |
Tue, 7 Nov 2023 14:23:48 +0000 |
From: Greg Manning <gmanning@rapitasystems.com>
allow plugins to be enabled in the configure script on windows. Also,
add the qemu_plugin_api.lib to the installer.
Signed-off-by: Greg Manning <gmanning@rapitasystems.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231102172053.17692-5-gmanning@rapitasystems.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
[AJB: add check for dlltool to configure]
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231106185112.2755262-17-alex.bennee@linaro.org>
diff --git a/configure b/configure
index e50ec99fe2..abcb199aa8 100755
--- a/configure
+++ b/configure
@@ -1011,9 +1011,9 @@ if test "$targetos" = "bogus"; then
fi
# test for any invalid configuration combinations
-if test "$targetos" = "windows"; then
+if test "$targetos" = "windows" && ! has "$dlltool"; then
if test "$plugins" = "yes"; then
- error_exit "TCG plugins not currently supported on Windows platforms"
+ error_exit "TCG plugins requires dlltool to build on Windows platforms"
fi
plugins="no"
fi
diff --git a/meson.build b/meson.build
index 4848930680..d7d841e71e 100644
--- a/meson.build
+++ b/meson.build
@@ -3944,6 +3944,11 @@ endforeach
if get_option('plugins')
install_headers('include/qemu/qemu-plugin.h')
+ if targetos == 'windows'
+ # On windows, we want to deliver the qemu_plugin_api.lib file in the qemu
installer,
+ # so that plugin authors can compile against it.
+ install_data(win32_qemu_plugin_api_lib, install_dir: 'lib')
+ endif
endif
subdir('qga')
--
2.39.2
- Re: [PULL 06/23] tests/tcg: add an explicit gdbstub register tester, (continued)
[PULL 14/23] plugins: make test/example plugins work on windows, Alex Bennée, 2023/11/07
[PULL 13/23] plugins: add dllexport and dllimport to api funcs, Alex Bennée, 2023/11/07
[PULL 15/23] plugins: disable lockstep plugin on windows, Alex Bennée, 2023/11/07
[PULL 11/23] cpu: Call plugin hooks only when ready, Alex Bennée, 2023/11/07
[PULL 16/23] gitlab: add dlltool to Windows CI, Alex Bennée, 2023/11/07
[PULL 22/23] mailmap: fixup some more corrupted author fields, Alex Bennée, 2023/11/07
[PULL 17/23] plugins: allow plugins to be enabled on windows,
Alex Bennée <=
[PULL 07/23] tests/avocado: update the tcg_plugins test, Alex Bennée, 2023/11/07
[PULL 09/23] gdbstub: Introduce gdb_find_static_feature(), Alex Bennée, 2023/11/07
[PULL 21/23] contrib/gitdm: add Daynix to domain-map, Alex Bennée, 2023/11/07
[PULL 23/23] Revert "tests/tcg/nios2: Re-enable linux-user tests", Alex Bennée, 2023/11/07
[PULL 19/23] contrib/gitdm: add domain-map for Cestc, Alex Bennée, 2023/11/07
[PULL 18/23] contrib/gitdm: Add Rivos Inc to the domain map, Alex Bennée, 2023/11/07
[PULL 20/23] contrib/gitdm: map HiSilicon to Huawei, Alex Bennée, 2023/11/07
Re: [PULL 00/23] Final test, gdbstub, plugin and gitdm updates for 8.2, Stefan Hajnoczi, 2023/11/08