From 37c413d917994c9a773388078448814d53b55f19 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Tue, 14 Sep 2021 11:25:51 +0530 Subject: [PATCH] Install modules in bindir for Windows Windows only loads DLLs from the same directory as the executable. This fixes module loading failure by putting it in same directory. Part-of: --- meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meson.build b/meson.build index 9aa12cf88..ae0c66310 100644 --- a/meson.build +++ b/meson.build @@ -88,6 +88,11 @@ if modlibexecdir == '' modlibexecdir = join_paths(libdir, 'pulseaudio', 'modules') endif +if host_machine.system() == 'windows' + # Windows only supports loading libraries from the same dir as the executable + modlibexecdir = bindir +endif + padsplibdir = get_option('padsplibdir') if padsplibdir == '' padsplibdir = privlibdir