aboutsummaryrefslogtreecommitdiff
path: root/platform/x11/detect.py
diff options
context:
space:
mode:
authorJuan Linietsky2015-12-08 17:16:45 -0300
committerJuan Linietsky2015-12-08 17:16:45 -0300
commitac414c5581b2f45630e6004d5acef125889eb610 (patch)
treeed474377e91df5a9ad8e8134e781d5bad922e0fe /platform/x11/detect.py
parent38ab47d2f9547f73438e3cdb2752bd58e81634bf (diff)
parentb14c90801f99fe97cb445a56036eefeedfe720db (diff)
downloadgodot-ac414c5581b2f45630e6004d5acef125889eb610.tar.gz
godot-ac414c5581b2f45630e6004d5acef125889eb610.tar.zst
godot-ac414c5581b2f45630e6004d5acef125889eb610.zip
Merge pull request #2849 from a12n/compobsd2
Compile on OpenBSD
Diffstat (limited to 'platform/x11/detect.py')
-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 d99658786..349e58cd7 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -1,6 +1,7 @@
import os
import sys
+import platform
def is_active():
@@ -147,7 +148,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"):
@@ -158,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..