aboutsummaryrefslogtreecommitdiff
path: root/platform/x11/detect.py
diff options
context:
space:
mode:
authorJuan Linietsky2015-03-22 15:10:50 -0300
committerJuan Linietsky2015-03-22 15:10:50 -0300
commit15bee515e63f8d9d93fc9aacd00f2b99e37cd58b (patch)
treecee112be228c175c348b2749ee56487ea52dfb3c /platform/x11/detect.py
parenteefcf93e55ce6d9f76c4765c9385f870ce621897 (diff)
parentf7621810a2f072a5d77563b6018023c575f355bf (diff)
downloadgodot-15bee515e63f8d9d93fc9aacd00f2b99e37cd58b.tar.gz
godot-15bee515e63f8d9d93fc9aacd00f2b99e37cd58b.tar.zst
godot-15bee515e63f8d9d93fc9aacd00f2b99e37cd58b.zip
Diffstat (limited to 'platform/x11/detect.py')
-rw-r--r--platform/x11/detect.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index fb5cdb508..2519dd6fd 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -38,6 +38,11 @@ def can_build():
if (x11_error):
print("xcursor not found.. x11 disabled.")
return False
+
+ x11_error=os.system("pkg-config xinerama --modversion > /dev/null ")
+ if (x11_error):
+ print("xinerama not found.. x11 disabled.")
+ return False
return True # X11 enabled
@@ -48,6 +53,7 @@ def get_opts():
('use_llvm','Use llvm compiler','no'),
('use_sanitizer','Use llvm compiler sanitize address','no'),
('pulseaudio','Detect & Use pulseaudio','yes'),
+ ('new_wm_api', 'Use experimental window management API','no'),
]
def get_flags():
@@ -147,3 +153,7 @@ def configure(env):
env.Append( BUILDERS = { 'GLSL120GLES' : env.Builder(action = methods.build_gles2_headers, suffix = 'glsl.h',src_suffix = '.glsl') } )
#env.Append( BUILDERS = { 'HLSL9' : env.Builder(action = methods.build_hlsl_dx9_headers, suffix = 'hlsl.h',src_suffix = '.hlsl') } )
+ if(env["new_wm_api"]=="yes"):
+ env.Append(CPPFLAGS=['-DNEW_WM_API'])
+ env.ParseConfig('pkg-config xinerama --cflags --libs')
+