diff options
author | lawnjelly <lawnjelly@gmail.com> | 2020-11-18 18:11:30 +0000 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-10-30 02:05:48 +0200 |
commit | e3491a37445014cc3527d6f2c1467063222b2dd8 (patch) | |
tree | 7f8250aee66fbc382040f0c843a91a5f85238d45 /SConstruct | |
parent | d046817536a21358f9c51bf5b932d0a6615ee76a (diff) |
Add GLES2 2D renderer + Linux display manager
First implementation with Linux display manager.
- Add single-threaded mode for EditorResourcePreview (needed for OpenGL).
Co-authored-by: clayjohn <claynjohn@gmail.com>
Co-authored-by: Fabio Alessandrelli <fabio.alessandrelli@gmail.com>
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 94bc53eaa5..72012ada99 100644 --- a/SConstruct +++ b/SConstruct @@ -15,6 +15,8 @@ from collections import OrderedDict # Local import methods import glsl_builders +import gles_builders +from platform_methods import run_in_subprocess # Scan possible build platforms @@ -706,6 +708,26 @@ if selected_platform in platform_list: } env.Append(BUILDERS=GLSL_BUILDERS) + if not env["platform"] == "server": # FIXME: detect GLES3 + env.Append( + BUILDERS={ + "GLES3_GLSL": env.Builder( + action=run_in_subprocess(gles_builders.build_gles3_headers), + suffix="glsl.gen.h", + src_suffix=".glsl", + ) + } + ) + env.Append( + BUILDERS={ + "GLES2_GLSL": env.Builder( + action=run_in_subprocess(gles_builders.build_gles2_headers), + suffix="glsl.gen.h", + src_suffix=".glsl", + ) + } + ) + scons_cache_path = os.environ.get("SCONS_CACHE") if scons_cache_path != None: CacheDir(scons_cache_path) |