diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-08-30 14:52:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-30 14:52:35 +0200 |
commit | 5efe47fb0bd08bba569ec951ed6b6e40d4b264f1 (patch) | |
tree | 6df3ee875980c83ceb65a4753cae14816213614d /platform/javascript/detect.py | |
parent | 445c7455da85d3505d7d9572052f22281fa95581 (diff) | |
parent | 913361928fe2b917def749af774c94228a840524 (diff) | |
download | redot-engine-5efe47fb0bd08bba569ec951ed6b6e40d4b264f1.tar.gz |
Merge pull request #4376 from eska014/js-eval
Add JavaScript eval interface to web export
Diffstat (limited to 'platform/javascript/detect.py')
-rw-r--r-- | platform/javascript/detect.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index d76a20bea7..aeff5a1a34 100644 --- a/platform/javascript/detect.py +++ b/platform/javascript/detect.py @@ -18,7 +18,8 @@ def can_build(): def get_opts(): return [ - ['compress','Compress JS Executable','no'] + ['compress','Compress JS Executable','no'], + ['javascript_eval','Enable JavaScript eval interface','yes'] ] def get_flags(): @@ -89,6 +90,10 @@ def configure(env): env.Append(CPPFLAGS=['-s','ASM_JS=1']) env.Append(CPPFLAGS=['-s','FULL_ES2=1']) # env.Append(CPPFLAGS=['-DANDROID_ENABLED', '-DUNIX_ENABLED','-DMPC_FIXED_POINT']) + + if env['javascript_eval'] == 'yes': + env.Append(CPPFLAGS=['-DJAVASCRIPT_EVAL_ENABLED']) + if (env["compress"]=="yes"): lzma_binpath = em_path+"/third_party/lzma.js/lzma-native" lzma_decoder = em_path+"/third_party/lzma.js/lzma-decoder.js" |