summaryrefslogtreecommitdiff
path: root/drivers/alsa/SCsub
diff options
context:
space:
mode:
authorHein-Pieter van Braam-Stewart <hp@tmm.cx>2021-02-16 16:19:03 +0100
committerHein-Pieter van Braam-Stewart <hp@tmm.cx>2021-02-16 20:31:49 +0100
commit09f82fa6eaa4dac6dd1743724b82a99906e64861 (patch)
treee24fc6d654afcb54eb1fce4e7088a20cf77a6570 /drivers/alsa/SCsub
parentcb64f2d96ba25f516ecd6dfb3e80b7ddbb13971f (diff)
Dynamically load libpulse.so.0 and libasound.so.1 on Linux
By generating stubs using https://github.com/hpvb/dynload-wrapper we can dynamically load libpulse and libasound on systems where it is available. Both are still a build-time requirement but no longer a run-time dependency. For maintenance purposes the wrappers should not need to be re-generated unless we want to bump pulse or asound to an incompatible version. It is unlikely we will want to do this any time soon. This closes #20978
Diffstat (limited to 'drivers/alsa/SCsub')
-rw-r--r--drivers/alsa/SCsub3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/alsa/SCsub b/drivers/alsa/SCsub
index 91e1140b75..1d76bb18c4 100644
--- a/drivers/alsa/SCsub
+++ b/drivers/alsa/SCsub
@@ -2,4 +2,7 @@
Import("env")
+if "alsa" in env and env["alsa"]:
+ env.add_source_files(env.drivers_sources, "asound-so_wrap.c")
+
env.add_source_files(env.drivers_sources, "*.cpp")