summaryrefslogtreecommitdiff
path: root/platform/x11/detect.py
diff options
context:
space:
mode:
Diffstat (limited to 'platform/x11/detect.py')
-rw-r--r--platform/x11/detect.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index 37c787179f..935a9fcc26 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -7,6 +7,7 @@ import platform
def is_active():
return True
+
def get_name():
return "X11"
@@ -50,9 +51,9 @@ def can_build():
print("xrandr not found.. x11 disabled.")
return False
-
return True # X11 enabled
+
def get_opts():
return [
@@ -65,6 +66,7 @@ def get_opts():
('debug_release', 'Add debug symbols to release version', 'no'),
]
+
def get_flags():
return [
@@ -74,7 +76,6 @@ def get_flags():
]
-
def configure(env):
is64 = sys.maxsize > 2**32
@@ -104,13 +105,11 @@ def configure(env):
env.Append(LINKFLAGS=['-fsanitize=address'])
env.extra_suffix += "s"
-
# if (env["tools"]=="no"):
# #no tools suffix
# env['OBJSUFFIX'] = ".nt"+env['OBJSUFFIX']
# env['LIBSUFFIX'] = ".nt"+env['LIBSUFFIX']
-
if (env["target"] == "release"):
if (env["debug_release"] == "yes"):
@@ -174,7 +173,6 @@ def configure(env):
if (env["libogg"] == "system"):
env.ParseConfig('pkg-config ogg --cflags --libs')
-
env.Append(CPPFLAGS=['-DOPENGL_ENABLED'])
if (env["glew"] == "system"):
@@ -223,7 +221,6 @@ def configure(env):
env.Append(CPPFLAGS=['-m64'])
env.Append(LINKFLAGS=['-m64', '-L/usr/lib/i686-linux-gnu'])
-
import methods
env.Append(BUILDERS={'GLSL120': env.Builder(action=methods.build_legacygl_headers, suffix='glsl.h', src_suffix='.glsl')})
@@ -237,4 +234,3 @@ def configure(env):
list_of_x86 = ['x86_64', 'x86', 'i386', 'i586']
if any(platform.machine() in s for s in list_of_x86):
env["x86_libtheora_opt_gcc"] = True
-