diff options
author | Robin Gareus <robin@gareus.org> | 2019-07-25 16:39:23 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-07-25 17:49:42 +0200 |
commit | 384c97e12db22c102cc4723aa7bcda13f3ec8d0d (patch) | |
tree | 693019dd4f7c45b6ee59d201c8233bf5a1f095d5 /wscript | |
parent | d70b03ae610d45beb446b7d42f4048d8d7dbc877 (diff) |
Puls der Zeit
Prototype a basic stereo-playback only pulseaudio backend.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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) |