summaryrefslogtreecommitdiffstats
path: root/platform/javascript/detect.py
diff options
context:
space:
mode:
authoreska <eska@eska.me>2016-04-11 23:22:14 +0200
committereska <eska@eska.me>2016-06-30 15:45:40 +0200
commit913361928fe2b917def749af774c94228a840524 (patch)
tree076ec65a509fc2fabc44a87e27f4559e08469d6f /platform/javascript/detect.py
parent016be49e084a0a3582b5ebba921114bfd37bfa7e (diff)
downloadredot-engine-913361928fe2b917def749af774c94228a840524.tar.gz
Add JavaScript eval interface
Diffstat (limited to 'platform/javascript/detect.py')
-rw-r--r--platform/javascript/detect.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py
index ae33a43f0d..a9103b4c15 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():
@@ -86,6 +87,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"