mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Merge pull request #6993 from eska014/remove-js-compression
Remove JavaScript compilation option 'compress'.
This commit is contained in:
@@ -18,8 +18,7 @@ def can_build():
|
|||||||
def get_opts():
|
def get_opts():
|
||||||
|
|
||||||
return [
|
return [
|
||||||
['compress','Compress JS Executable','no'],
|
['javascript_eval','Enable JavaScript eval interface','yes'],
|
||||||
['javascript_eval','Enable JavaScript eval interface','yes']
|
|
||||||
]
|
]
|
||||||
|
|
||||||
def get_flags():
|
def get_flags():
|
||||||
@@ -85,12 +84,6 @@ def configure(env):
|
|||||||
if env['javascript_eval'] == 'yes':
|
if env['javascript_eval'] == 'yes':
|
||||||
env.Append(CPPFLAGS=['-DJAVASCRIPT_EVAL_ENABLED'])
|
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"
|
|
||||||
lzma_dec = "LZMA.decompress"
|
|
||||||
env.Append(LINKFLAGS=['--compression',lzma_binpath+","+lzma_decoder+","+lzma_dec])
|
|
||||||
|
|
||||||
env.Append(LINKFLAGS=['-s','ASM_JS=1'])
|
env.Append(LINKFLAGS=['-s','ASM_JS=1'])
|
||||||
env.Append(LINKFLAGS=['-O2'])
|
env.Append(LINKFLAGS=['-O2'])
|
||||||
#env.Append(LINKFLAGS=['-g4'])
|
#env.Append(LINKFLAGS=['-g4'])
|
||||||
|
|||||||
Reference in New Issue
Block a user