aboutsummaryrefslogtreecommitdiff
path: root/platform/x11/detect.py
diff options
context:
space:
mode:
authorAnton Yabchinskiy2015-01-14 23:17:15 +0300
committerAnton Yabchinskiy2015-01-14 23:17:15 +0300
commitd6998995b54fd4fed83eef9db3bbb45fa60565db (patch)
tree927e4e2441db1c62b3853d03f3ed4bb996881045 /platform/x11/detect.py
parentb6c5cb1064eab63788060dc918d7fec53e57a532 (diff)
parent04af74596d070f062bd917b0364d87c57544f8d5 (diff)
downloadgodot-d6998995b54fd4fed83eef9db3bbb45fa60565db.tar.gz
godot-d6998995b54fd4fed83eef9db3bbb45fa60565db.tar.zst
godot-d6998995b54fd4fed83eef9db3bbb45fa60565db.zip
Merge branch 'master' of github.com:okamstudio/godot
Conflicts: platform/x11/detect.py
Diffstat (limited to 'platform/x11/detect.py')
-rw-r--r--platform/x11/detect.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index b3d892325..ff006849c 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -48,6 +48,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():
@@ -113,23 +114,22 @@ def configure(env):
env.Append(CCFLAGS=['-DFREETYPE_ENABLED'])
- if env['ao'] == 'yes':
- env.ParseConfig('pkg-config ao --cflags --libs')
- env.Append(CPPFLAGS=['-DAO_ENABLED'])
-
-
env.Append(CPPFLAGS=['-DOPENGL_ENABLED','-DGLEW_ENABLED'])
if platform.platform() == 'Linux':
env.Append(CPPFLAGS=["-DALSA_ENABLED"])
env.Append(LIBS=['asound'])
- 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['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")
+ 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(CPPFLAGS=['-DX11_ENABLED','-DUNIX_ENABLED','-DGLES2_ENABLED','-DGLES_OVER_GL'])
env.Append(LIBS=['GL', 'GLU', 'pthread', 'z'])
#env.Append(CPPFLAGS=['-DMPC_FIXED_POINT'])