mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 18:54:43 +00:00
Merge pull request #4376 from eska014/js-eval
Add JavaScript eval interface to web export
This commit is contained in:
commit
5efe47fb0b
6 changed files with 242 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue