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: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/633>
This commit is contained in:
Biswapriyo Nath 2021-09-14 11:25:51 +05:30 committed by PulseAudio Marge Bot
parent 7fd89e491f
commit 37c413d917

View file

@ -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