diff options
author | Chad Austin <chad@imvu.com> | 2013-05-30 12:01:46 -0700 |
---|---|---|
committer | Chad Austin <chad@imvu.com> | 2013-07-17 15:01:12 -0700 |
commit | c3bd7e6187590595119a300b420372563242fddf (patch) | |
tree | 7703f31d2cf1e2058048883eee784977a4a32d8e /scons-tools | |
parent | 7f0731a0b13c77a041dfc385d37c7ec509e23b9e (diff) |
Blow away the jscache when embind changes and fix a cpppath dependency error when compiling embind files.
Diffstat (limited to 'scons-tools')
-rwxr-xr-x | scons-tools/emscripten.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scons-tools/emscripten.py b/scons-tools/emscripten.py index da18b3bd..0c10e54d 100755 --- a/scons-tools/emscripten.py +++ b/scons-tools/emscripten.py @@ -24,6 +24,7 @@ def build_version_file(env): EMSCRIPTEN_DEPENDENCIES = [
env.Glob('${EMSCRIPTEN_HOME}/src/*.js'),
+ env.Glob('${EMSCRIPTEN_HOME}/src/embind/*.js'),
env.Glob('${EMSCRIPTEN_HOME}/tools/*.py'),
'${EMSCRIPTEN_HOME}/emscripten.py',
]
@@ -301,6 +302,12 @@ def generate(env): '__IEEE_LITTLE_ENDIAN',
])
+ env.Append(
+ CPPPATH=[
+ env.Dir('${EMSCRIPTEN_HOME}/system/include'),
+ ]
+ )
+
env['BUILDERS']['Emscripten'] = Builder(
action='$PYTHON ${EMSCRIPTEN_HOME}/emscripten.py $EMSCRIPTEN_FLAGS $_EMSCRIPTEN_SETTINGS_FLAGS --temp-dir=$EMSCRIPTEN_TEMP_DIR --compiler $JS_ENGINE --relooper=third-party/relooper.js $SOURCE > $TARGET',
target_scanner=EmscriptenScanner)
|