summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorAnton Yabchinskiy <arn@bestmx.ru>2014-11-20 00:09:39 +0300
committerAnton Yabchinskiy <arn@bestmx.ru>2015-11-20 23:35:19 +0300
commit0931eed7be854ee6e0d0473b715dda2b6f2839e2 (patch)
tree308f604580f50791e9ac8cd42b3b875d660baaa4 /platform
parentdd09f13f68d54c5e427b03f1033d13e7b5c38b4b (diff)
Enable ALSA only for Linux
Diffstat (limited to 'platform')
-rw-r--r--platform/x11/detect.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index 9a52a7c92b..5ec7eb1afc 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -1,6 +1,7 @@
import os
import sys
+import platform
def is_active():
@@ -145,7 +146,9 @@ def configure(env):
env.Append(CPPFLAGS=['-DOPENGL_ENABLED','-DGLEW_ENABLED'])
- env.Append(CPPFLAGS=["-DALSA_ENABLED"])
+ if platform.platform() == 'Linux':
+ env.Append(CPPFLAGS=["-DALSA_ENABLED"])
+ env.Append(LIBS=['asound'])
if (env["pulseaudio"]=="yes"):
if not os.system("pkg-config --exists libpulse-simple"):
@@ -156,7 +159,7 @@ def configure(env):
print("PulseAudio development libraries not found, disabling driver")
env.Append(CPPFLAGS=['-DX11_ENABLED','-DUNIX_ENABLED','-DGLES2_ENABLED','-DGLES_OVER_GL'])
- env.Append(LIBS=['GL', 'GLU', 'pthread','asound','z']) #TODO detect linux/BSD!
+ env.Append(LIBS=['GL', 'GLU', 'pthread', 'z'])
#env.Append(CPPFLAGS=['-DMPC_FIXED_POINT'])
#host compiler is default..