diff options
author | Chad Austin <chad@imvu.com> | 2013-12-06 15:38:20 -0800 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2014-02-04 16:20:30 +0700 |
commit | 52e04b489962f1167868aa46eb8325df4b2c9fdf (patch) | |
tree | 90675b8b2261f2515cce442f45220c1a5269bd7f /scons-tools | |
parent | b09a5551ea298d0d8d95946a7131df342362ea51 (diff) |
have VirtualFileSystem also depend on the file path so renaming shaders causes a rebuild
Diffstat (limited to 'scons-tools')
-rwxr-xr-x | scons-tools/emscripten.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scons-tools/emscripten.py b/scons-tools/emscripten.py index b4912aaa..4c48083e 100755 --- a/scons-tools/emscripten.py +++ b/scons-tools/emscripten.py @@ -316,6 +316,11 @@ def generate(env): def depend_on_embedder(target, source, env):
env.Depends(target, env['JS_EMBEDDER'])
+ files = []
+ for src in source:
+ for dirpath, dirnames, filenames in os.walk(str(src.srcnode())):
+ files.extend(map(lambda p: os.path.join(dirpath, p), filenames))
+ env.Depends(target, env.Value(sorted(files)))
return target, source
def embed_files_in_js(target, source, env, for_signature):
|