diff options
| author | Anton Yabchinskiy | 2014-11-20 00:09:39 +0300 |
|---|---|---|
| committer | Anton Yabchinskiy | 2014-11-22 13:23:12 +0300 |
| commit | 4a1fd94f0d4de8a87b23668f33f2fd6cb012a854 (patch) | |
| tree | b1def1636ba6274e20febaec6e7f184fd05ac84b /platform/x11/detect.py | |
| parent | e709468bb13e795cff72b3e87198c61c5b1a2ee7 (diff) | |
| download | godot-4a1fd94f0d4de8a87b23668f33f2fd6cb012a854.tar.gz godot-4a1fd94f0d4de8a87b23668f33f2fd6cb012a854.tar.zst godot-4a1fd94f0d4de8a87b23668f33f2fd6cb012a854.zip | |
Enable ALSA only for Linux
Diffstat (limited to 'platform/x11/detect.py')
| -rw-r--r-- | platform/x11/detect.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py index 1c8d231d4..e2c84182b 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -1,6 +1,7 @@ import os import sys +import platform def is_active(): @@ -113,9 +114,11 @@ 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']) env.Append(CPPFLAGS=['-DX11_ENABLED','-DUNIX_ENABLED','-DGLES2_ENABLED','-DGLES1_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.. |
