plugins: make test/example plugins work on windows
commit330fe3b03f6451889bec6f5c9f7e8bb5009c80c3
authorGreg Manning <gmanning@rapitasystems.com>
Mon, 6 Nov 2023 18:51:04 +0000 (6 18:51 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 8 Nov 2023 15:15:23 +0000 (8 15:15 +0000)
treebf2ba5a952418a518b2d70ab410774d2cb42afdb
parentfb691b8cbabf5bde7d25a7f720d5ec7d5b1341e1
plugins: make test/example plugins work on windows

Generate a qemu_plugin_api.lib delay import lib on windows, for
windows qemu plugins to link against.

Implement an example dll load fail hook to link up the API functions
correctly when a plugin is loaded on windows.

Update the build scripts for the test and example plugins to use these
things.

Signed-off-by: Greg Manning <gmanning@rapitasystems.com>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231102172053.17692-3-gmanning@rapitasystems.com>
[AJB: use find_program for dlltool, s/Windows/windows/]
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231106185112.2755262-15-alex.bennee@linaro.org>
configure
contrib/plugins/Makefile
contrib/plugins/win32_linker.c [new file with mode: 0644]
plugins/meson.build
tests/plugin/meson.build