Skip to content

Commit

Permalink
plugins: allow plugins to be enabled on windows
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tocklime authored and stsquad committed Nov 7, 2023
1 parent f6d7c2f commit 67e82b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 67e82b0

Please sign in to comment.