diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-11-26 15:09:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-26 15:09:02 +0100 |
commit | 051f761a87f1706bde0a45da46a3dfe1afff424a (patch) | |
tree | acc26e8f7f669ac7efec8e5cbe1c098e62eb6c15 | |
parent | b0e556d1a73981c00d24cabc3f0fc686e8999023 (diff) | |
parent | 428b6a308e8a8792542bbb3284218399f99c33fa (diff) |
Merge pull request #13299 from rraallvv/scons_cache
Enable SCons shared cache for AppVeyor CI (master)
-rw-r--r-- | .appveyor.yml | 5 | ||||
-rw-r--r-- | SConstruct | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/.appveyor.yml b/.appveyor.yml index dbd56ab7e0..e31e29e0d8 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,7 +1,9 @@ os: Visual Studio 2015 environment: + HOME: "%HOMEDRIVE%%HOMEPATH%" PYTHON: C:\Python27 + SCONS_CACHE: "%HOME%\\scons_cache" matrix: - VS: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat GD_PLATFORM: windows @@ -9,6 +11,9 @@ environment: TARGET: release_debug ARCH: amd64 +cache: + - "%SCONS_CACHE%" + install: - SET "PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" - pip install --egg scons # it will fail on AppVeyor without --egg flag 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. |