summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct13
1 files changed, 13 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 94bc53eaa5..78e3d28337 100644
--- a/SConstruct
+++ b/SConstruct
@@ -15,6 +15,8 @@ from collections import OrderedDict
# Local
import methods
import glsl_builders
+import gles3_builders
+from platform_methods import run_in_subprocess
# Scan possible build platforms
@@ -706,6 +708,17 @@ if selected_platform in platform_list:
}
env.Append(BUILDERS=GLSL_BUILDERS)
+ if not env["platform"] == "server":
+ env.Append(
+ BUILDERS={
+ "GLES3_GLSL": env.Builder(
+ action=run_in_subprocess(gles3_builders.build_gles3_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)