summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-07-25 16:39:23 +0200
committerRobin Gareus <robin@gareus.org>2019-07-25 17:49:42 +0200
commit384c97e12db22c102cc4723aa7bcda13f3ec8d0d (patch)
tree693019dd4f7c45b6ee59d201c8233bf5a1f095d5 /wscript
parentd70b03ae610d45beb446b7d42f4048d8d7dbc877 (diff)
Puls der Zeit
Prototype a basic stereo-playback only pulseaudio backend.
Diffstat (limited to 'wscript')
-rw-r--r--wscript13
1 files changed, 13 insertions, 0 deletions
diff --git a/wscript b/wscript
index 40ce25b290..3a90652701 100644
--- a/wscript
+++ b/wscript
@@ -1044,6 +1044,9 @@ def configure(conf):
if re.search ("linux", sys.platform) != None and Options.options.dist_target != 'mingw':
autowaf.check_pkg(conf, 'alsa', uselib_store='ALSA')
+ if re.search ("linux", sys.platform) != None and Options.options.dist_target != 'mingw':
+ autowaf.check_pkg(conf, 'libpulse', uselib_store='PULSEAUDIO', atleast_version='10.0', mandatory=False)
+
if re.search ("openbsd", sys.platform) != None:
conf.env.append_value('LDFLAGS', '-L/usr/X11R6/lib')
@@ -1229,6 +1232,7 @@ int main () { return 0; }
conf.env['BUILD_DUMMYBACKEND'] = any('dummy' in b for b in backends)
conf.env['BUILD_PABACKEND'] = any('portaudio' in b for b in backends)
conf.env['BUILD_CORECRAPPITA'] = any('coreaudio' in b for b in backends)
+ conf.env['BUILD_PULSEAUDIO'] = any('pulseaudio' in b for b in backends)
if re.search ("linux", sys.platform) != None and Options.options.dist_target != 'mingw' and conf.env['BUILD_PABACKEND']:
print("PortAudio Backend is not for Linux")
@@ -1242,6 +1246,14 @@ int main () { return 0; }
print("ALSA Backend is only available on Linux")
sys.exit(1)
+ if re.search ("linux", sys.platform) == None and conf.env['BUILD_PULSEAUDIO']:
+ print("Pulseaudio Backend is only available on Linux")
+ sys.exit(1)
+
+ if conf.env['BUILD_PULSEAUDIO'] and not conf.is_defined('HAVE_PULSEAUDIO'):
+ print("Pulseaudio Backend requires libpulse-dev")
+ sys.exit(1)
+
set_compiler_flags (conf, Options.options)
if sys.platform == 'darwin':
@@ -1327,6 +1339,7 @@ const char* const ardour_config_info = "\\n\\
write_config_text('ALSA Backend', conf.env['BUILD_ALSABACKEND'])
write_config_text('Dummy backend', conf.env['BUILD_DUMMYBACKEND'])
write_config_text('JACK Backend', conf.env['BUILD_JACKBACKEND'])
+ write_config_text('Pulseaudio Backend', conf.env['BUILD_PULSEAUDIO'])
config_text.write("\\n\\\n")
write_config_text('Buildstack', conf.env['DEPSTACK_REV'])
write_config_text('Mac i386 Architecture', opts.generic)