Fix PortAudio with MSYS

PortAudio can now successfully be used with Ardour when building on
Windows/MSYS. This will not work with MSYS packaged PortAudio, it
doesn't come with ASIO. You must build from source.
This commit is contained in:
Franke Burgarino 2025-11-20 18:35:28 -06:00
parent 273e1af79e
commit 4f434154a0

View file

@ -1,6 +1,8 @@
#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
import os
import sys
import platform as PLATFORM
I18N_PACKAGE = 'portaudio-backend'
@ -25,6 +27,9 @@ def build_portaudio (bld, name, defines):
obj.target = name
obj.use = 'libardour libpbd'
obj.uselib = 'PORTAUDIO GLIBMM XML'
if bld.env['build_target'] == 'mingw' and sys.platform == "win32":
obj.stlib = ['portaudio']
obj.lib = ['ole32', 'setupapi', 'uuid', 'winmm', 'ksuser', 'jack64']
obj.install_path = os.path.join(bld.env['LIBDIR'], 'backends')
obj.defines = ['PACKAGE="' + I18N_PACKAGE + '"',
'ARDOURBACKEND_DLL_EXPORTS',