diff options
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):
|