aboutsummaryrefslogtreecommitdiff
path: root/platform/x11/detect.py
diff options
context:
space:
mode:
authorJuan Linietsky2015-01-13 11:22:56 -0300
committerJuan Linietsky2015-01-13 11:22:56 -0300
commit7c7ab30c4ef74f3e7a90ab6d23d69d545fac7cf3 (patch)
treec96e59671f1ae3a6b8696784f281db0193aaa2d7 /platform/x11/detect.py
parent0a6f409323eda5d1ae2c968bbd482c8af1370466 (diff)
downloadgodot-7c7ab30c4ef74f3e7a90ab6d23d69d545fac7cf3.tar.gz
godot-7c7ab30c4ef74f3e7a90ab6d23d69d545fac7cf3.tar.zst
godot-7c7ab30c4ef74f3e7a90ab6d23d69d545fac7cf3.zip
Diffstat (limited to 'platform/x11/detect.py')
-rw-r--r--platform/x11/detect.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index dd5fa827f..a4c06be44 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -47,6 +47,7 @@ def get_opts():
return [
('use_llvm','Use llvm compiler','no'),
('use_sanitizer','Use llvm compiler sanitize address','no'),
+ ('pulseaudio','Detect & Use pulseaudio','yes'),
]
def get_flags():
@@ -115,12 +116,13 @@ def configure(env):
env.Append(CPPFLAGS=['-DOPENGL_ENABLED','-DGLEW_ENABLED'])
env.Append(CPPFLAGS=["-DALSA_ENABLED"])
- if not os.system("pkg-config --exists libpulse-simple"):
- print("Enabling PulseAudio")
- env.Append(CPPFLAGS=["-DPULSEAUDIO_ENABLED"])
- env.ParseConfig('pkg-config --cflags --libs libpulse-simple')
- else:
- print("PulseAudio development libraries not found, disabling driver")
+ if (env["pulseaudio"]=="yes"):
+ if not os.system("pkg-config --exists libpulse-simple"):
+ print("Enabling PulseAudio")
+ env.Append(CPPFLAGS=["-DPULSEAUDIO_ENABLED"])
+ env.ParseConfig('pkg-config --cflags --libs libpulse-simple')
+ else:
+ print("PulseAudio development libraries not found, disabling driver")
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!