Disable GLES builders and source from server compilation

(cherry picked from commit 8699f643c9)
This commit is contained in:
Fabio Alessandrelli 2017-12-26 20:36:18 +01:00 committed by Hein-Pieter van Braam
parent cc280545dc
commit 8f231d82bb
2 changed files with 6 additions and 3 deletions

View File

@ -445,7 +445,7 @@ if selected_platform in platform_list:
if not env['verbose']: if not env['verbose']:
methods.no_verbose(sys, env) methods.no_verbose(sys, env)
if (True): # FIXME: detect GLES3 if (not env["platform"] == "server"): # FIXME: detect GLES3
env.Append( BUILDERS = { 'GLES3_GLSL' : env.Builder(action = methods.build_gles3_headers, suffix = 'glsl.gen.h',src_suffix = '.glsl') } ) env.Append( BUILDERS = { 'GLES3_GLSL' : env.Builder(action = methods.build_gles3_headers, suffix = 'glsl.gen.h',src_suffix = '.glsl') } )
scons_cache_path = os.environ.get("SCONS_CACHE") scons_cache_path = os.environ.get("SCONS_CACHE")

7
drivers/SCsub vendored
View File

@ -22,8 +22,11 @@ if env['xaudio2']:
SConscript("xaudio2/SCsub") SConscript("xaudio2/SCsub")
# Graphics drivers # Graphics drivers
SConscript('gles3/SCsub') if (env["platform"] != "server"):
SConscript('gl_context/SCsub') SConscript('gles3/SCsub')
SConscript('gl_context/SCsub')
else:
SConscript('dummy/SCsub')
# Core dependencies # Core dependencies
SConscript("png/SCsub") SConscript("png/SCsub")