mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +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
|
|
@ -105,7 +105,6 @@ libardour_sources = [
|
||||||
'io.cc',
|
'io.cc',
|
||||||
'io_processor.cc',
|
'io_processor.cc',
|
||||||
'jack_slave.cc',
|
'jack_slave.cc',
|
||||||
'jack_utils.cc',
|
|
||||||
'kmeterdsp.cc',
|
'kmeterdsp.cc',
|
||||||
'ladspa_plugin.cc',
|
'ladspa_plugin.cc',
|
||||||
'ladspa_search_path.cc',
|
'ladspa_search_path.cc',
|
||||||
|
|
@ -252,9 +251,6 @@ def configure(conf):
|
||||||
if Options.options.dist_target == 'auto':
|
if Options.options.dist_target == 'auto':
|
||||||
if re.search ("linux", sys.platform) != None:
|
if re.search ("linux", sys.platform) != None:
|
||||||
autowaf.check_pkg(conf, 'alsa', uselib_store='ALSA')
|
autowaf.check_pkg(conf, 'alsa', uselib_store='ALSA')
|
||||||
if Options.options.dist_target == 'mingw':
|
|
||||||
autowaf.check_pkg(conf, 'portaudio-2.0', uselib_store='PORTAUDIO',
|
|
||||||
atleast_version='19')
|
|
||||||
autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
|
autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
|
||||||
if Options.options.dist_target != 'mingw':
|
if Options.options.dist_target != 'mingw':
|
||||||
autowaf.check_pkg(conf, 'lrdf', uselib_store='LRDF',
|
autowaf.check_pkg(conf, 'lrdf', uselib_store='LRDF',
|
||||||
|
|
@ -347,7 +343,7 @@ def build(bld):
|
||||||
obj.name = 'ardour'
|
obj.name = 'ardour'
|
||||||
obj.target = 'ardour'
|
obj.target = 'ardour'
|
||||||
obj.uselib = ['GLIBMM','GTHREAD','AUBIO','SIGCPP','XML','UUID',
|
obj.uselib = ['GLIBMM','GTHREAD','AUBIO','SIGCPP','XML','UUID',
|
||||||
'JACK', 'ALSA', 'PORTAUDIO', 'SNDFILE','SAMPLERATE','LRDF',
|
'JACK', 'ALSA', 'SNDFILE','SAMPLERATE','LRDF',
|
||||||
'AUDIOUNITS', 'OSX','BOOST','CURL','DL']
|
'AUDIOUNITS', 'OSX','BOOST','CURL','DL']
|
||||||
obj.use = ['libpbd','libmidipp','libevoral','libvamphost',
|
obj.use = ['libpbd','libmidipp','libevoral','libvamphost',
|
||||||
'libvampplugin','libtaglib','librubberband',
|
'libvampplugin','libtaglib','librubberband',
|
||||||
|
|
@ -447,7 +443,6 @@ def build(bld):
|
||||||
create_ardour_test_program(bld, obj.includes, 'framewalk_to_beats', 'test_framewalk_to_beats', ['test/framewalk_to_beats_test.cc'])
|
create_ardour_test_program(bld, obj.includes, 'framewalk_to_beats', 'test_framewalk_to_beats', ['test/framewalk_to_beats_test.cc'])
|
||||||
create_ardour_test_program(bld, obj.includes, 'framepos_plus_beats', 'test_framepos_plus_beats', ['test/framepos_plus_beats_test.cc'])
|
create_ardour_test_program(bld, obj.includes, 'framepos_plus_beats', 'test_framepos_plus_beats', ['test/framepos_plus_beats_test.cc'])
|
||||||
create_ardour_test_program(bld, obj.includes, 'framepos_minus_beats', 'test_framepos_minus_beats', ['test/framepos_minus_beats_test.cc'])
|
create_ardour_test_program(bld, obj.includes, 'framepos_minus_beats', 'test_framepos_minus_beats', ['test/framepos_minus_beats_test.cc'])
|
||||||
create_ardour_test_program(bld, obj.includes, 'jack_utils', 'test_jack_utils', ['test/jack_utils_test.cc'])
|
|
||||||
create_ardour_test_program(bld, obj.includes, 'playlist_equivalent_regions', 'test_playlist_equivalent_regions', ['test/playlist_equivalent_regions_test.cc'])
|
create_ardour_test_program(bld, obj.includes, 'playlist_equivalent_regions', 'test_playlist_equivalent_regions', ['test/playlist_equivalent_regions_test.cc'])
|
||||||
create_ardour_test_program(bld, obj.includes, 'playlist_layering', 'test_playlist_layering', ['test/playlist_layering_test.cc'])
|
create_ardour_test_program(bld, obj.includes, 'playlist_layering', 'test_playlist_layering', ['test/playlist_layering_test.cc'])
|
||||||
create_ardour_test_program(bld, obj.includes, 'plugins_test', 'test_plugins', ['test/plugins_test.cc'])
|
create_ardour_test_program(bld, obj.includes, 'plugins_test', 'test_plugins', ['test/plugins_test.cc'])
|
||||||
|
|
@ -466,7 +461,6 @@ def build(bld):
|
||||||
test/framewalk_to_beats_test.cc
|
test/framewalk_to_beats_test.cc
|
||||||
test/framepos_plus_beats_test.cc
|
test/framepos_plus_beats_test.cc
|
||||||
test/framepos_minus_beats_test.cc
|
test/framepos_minus_beats_test.cc
|
||||||
test/jack_utils_test.cc
|
|
||||||
test/playlist_equivalent_regions_test.cc
|
test/playlist_equivalent_regions_test.cc
|
||||||
test/playlist_layering_test.cc
|
test/playlist_layering_test.cc
|
||||||
test/plugins_test.cc
|
test/plugins_test.cc
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
from waflib.extras import autowaf as autowaf
|
from waflib.extras import autowaf as autowaf
|
||||||
|
from waflib import Options
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
|
|
@ -19,6 +20,14 @@ def options(opt):
|
||||||
autowaf.set_options(opt)
|
autowaf.set_options(opt)
|
||||||
|
|
||||||
def configure(conf):
|
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)
|
autowaf.configure(conf)
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
|
|
@ -34,6 +43,9 @@ def build(bld):
|
||||||
obj.cxxflags = [ '-fPIC' ]
|
obj.cxxflags = [ '-fPIC' ]
|
||||||
obj.name = 'jack_audiobackend'
|
obj.name = 'jack_audiobackend'
|
||||||
obj.target = 'jack_audiobackend'
|
obj.target = 'jack_audiobackend'
|
||||||
|
if Options.options.dist_target == 'mingw':
|
||||||
|
obj.uselib = [ 'JACK', 'PORTAUDIO' ]
|
||||||
|
else:
|
||||||
obj.uselib = [ 'JACK' ]
|
obj.uselib = [ 'JACK' ]
|
||||||
obj.use = 'ardour libpbd'
|
obj.use = 'ardour libpbd'
|
||||||
obj.vnum = JACKBACKEND_VERSION
|
obj.vnum = JACKBACKEND_VERSION
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue