Revision 43daa664ac58ab3b0664ddf9261be1bf33bf9ce1 authored by Alon Zakai on 01 May 2015, 21:34:40 UTC, committed by Alon Zakai on 01 May 2015, 21:39:01 UTC
1 parent 43db931
emscons
#!/usr/bin/env python2
'''
Wrapping the scons invocation, EMSCRIPTEN_TOOL_PATH is set in the process
environment, and can be used to locate the emscripten SCons Tool.
Example:
# Load emscripten Tool
my_env = Environment(tools=['emscripten'], toolpath=[os.environ['EMSCRIPTEN_TOOL_PATH']])
'''
import os, subprocess, sys
from tools import shared
tool_path = os.path.join(shared.path_from_root('tools'), 'scons', 'site_scons', 'site_tools', 'emscripten')
env = os.environ.copy()
env[ 'EMSCRIPTEN_TOOL_PATH' ] = tool_path
exit(subprocess.call(sys.argv[1:], env=env))
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...