mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
move configure-time dependency on PortAudio out of libs/ardour and into libs/backends/jack
PortAudio is currently used to get a list of device names for use with JACK on Windows. We should find a better way to do this that avoids this kind of dependency.
This commit is contained in:
parent
cb18f914bd
commit
7b96fab60e
2 changed files with 14 additions and 8 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
from waflib.extras import autowaf as autowaf
|
||||
from waflib import Options
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
|
|
@ -19,6 +20,14 @@ def options(opt):
|
|||
autowaf.set_options(opt)
|
||||
|
||||
def configure(conf):
|
||||
#
|
||||
# PortAudio is currently used to get a list of audio device names.
|
||||
# We should find a better way to do this that doesn't involve this
|
||||
# kind of dependency.
|
||||
#
|
||||
if Options.options.dist_target == 'mingw':
|
||||
autowaf.check_pkg(conf, 'portaudio-2.0', uselib_store='PORTAUDIO',
|
||||
atleast_version='19')
|
||||
autowaf.configure(conf)
|
||||
|
||||
def build(bld):
|
||||
|
|
@ -34,7 +43,10 @@ def build(bld):
|
|||
obj.cxxflags = [ '-fPIC' ]
|
||||
obj.name = 'jack_audiobackend'
|
||||
obj.target = 'jack_audiobackend'
|
||||
obj.uselib = [ 'JACK' ]
|
||||
if Options.options.dist_target == 'mingw':
|
||||
obj.uselib = [ 'JACK', 'PORTAUDIO' ]
|
||||
else:
|
||||
obj.uselib = [ 'JACK' ]
|
||||
obj.use = 'ardour libpbd'
|
||||
obj.vnum = JACKBACKEND_VERSION
|
||||
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'backends')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue