diff options
| author | Rhody Lugo <rhodylugo@gmail.com> | 2017-11-25 21:47:54 -0400 |
|---|---|---|
| committer | Rhody Lugo <rhodylugo@gmail.com> | 2017-11-25 22:15:22 -0400 |
| commit | 428b6a308e8a8792542bbb3284218399f99c33fa (patch) | |
| tree | 6083c49ee6d4d35002fff2a9873082ab2d18ca8c /SConstruct | |
| parent | 2f3c4c94dac8fc88db9a23fa07a070ed33951dc7 (diff) | |
| download | redot-engine-428b6a308e8a8792542bbb3284218399f99c33fa.tar.gz | |
add support for scons cache and enable it for appveyor
Diffstat (limited to 'SConstruct')
| -rw-r--r-- | SConstruct | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 61edb1233b..b5885f896f 100644 --- a/SConstruct +++ b/SConstruct @@ -434,6 +434,11 @@ if selected_platform in platform_list: if (True): # FIXME: detect GLES3 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") + if scons_cache_path != None: + CacheDir(scons_cache_path) + print("Scons cache enabled... (path: '" + scons_cache_path + "')") + Export('env') # build subdirs, the build order is dependent on link order. |
