summaryrefslogtreecommitdiff
path: root/platform/x11/detect.py
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-11-19 19:31:56 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-11-19 19:31:56 -0300
commit43ce972ddb60b8de684cb1e7a023bc070afd90db (patch)
treeb74616dd3cb02541a75989137dd178628700f93c /platform/x11/detect.py
parent0f71c90ff36c26ca5c7eec99eb1090ab1c864825 (diff)
parent3b9868d2e44740c03861c64020a8b5d4d6da031d (diff)
Merge pull request #903 from a12n/libao
libao audio driver
Diffstat (limited to 'platform/x11/detect.py')
-rw-r--r--platform/x11/detect.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index 9a52a7c92b..6b1347a3cc 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -1,6 +1,7 @@
import os
import sys
+import platform
def is_active():
@@ -143,10 +144,14 @@ def configure(env):
-
- env.Append(CPPFLAGS=['-DOPENGL_ENABLED','-DGLEW_ENABLED'])
- env.Append(CPPFLAGS=["-DALSA_ENABLED"])
+ env.Append(CPPFLAGS=['-DOPENGL_ENABLED','-DGLEW_ENABLED'])
+ if platform.platform() == 'Linux':
+ env.Append(CPPFLAGS=["-DALSA_ENABLED"])
+ env.Append(LIBS=['asound'])
+ if env['ao'] == 'yes':
+ env.ParseConfig('pkg-config ao --cflags --libs')
+ env.Append(CPPFLAGS=['-DAO_ENABLED'])
if (env["pulseaudio"]=="yes"):
if not os.system("pkg-config --exists libpulse-simple"):
print("Enabling PulseAudio")
@@ -156,7 +161,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..