https://github.com/kripken/emscripten
Raw File
Tip revision: a0a4a6e1007e76f401adc01b7c3bbbd1e70925a8 authored by Alon Zakai on 26 August 2015, 00:43:00 UTC
use -m32 in test_sse1_full if normal building failed
Tip revision: a0a4a6e
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))

back to top