You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-25 15:37:42 +00:00
Small refactoring in HTML5 build scripts
Drop logic for non-existent 'profile' target
This commit is contained in:
@@ -30,8 +30,8 @@ zip_files = env.InstallAs([
|
|||||||
zip_dir.File('godot.wasm'),
|
zip_dir.File('godot.wasm'),
|
||||||
zip_dir.File('godot.html')
|
zip_dir.File('godot.html')
|
||||||
], [
|
], [
|
||||||
js_wrapped,
|
js_wrapped,
|
||||||
wasm,
|
wasm,
|
||||||
'#misc/dist/html/default.html'
|
'#misc/dist/html/default.html'
|
||||||
])
|
])
|
||||||
env.Zip('#bin/godot', zip_files, ZIPROOT=zip_dir, ZIPSUFFIX='${PROGSUFFIX}${ZIPSUFFIX}', ZIPCOMSTR='Archving $SOURCES as $TARGET')
|
env.Zip('#bin/godot', zip_files, ZIPROOT=zip_dir, ZIPSUFFIX='${PROGSUFFIX}${ZIPSUFFIX}', ZIPCOMSTR='Archving $SOURCES as $TARGET')
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import os
|
import os
|
||||||
import string
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
@@ -48,8 +47,6 @@ def configure(env):
|
|||||||
# run-time performance.
|
# run-time performance.
|
||||||
env.Append(CCFLAGS=['-Os'])
|
env.Append(CCFLAGS=['-Os'])
|
||||||
env.Append(LINKFLAGS=['-Os'])
|
env.Append(LINKFLAGS=['-Os'])
|
||||||
if env['target'] == 'profile':
|
|
||||||
env.Append(LINKFLAGS=['--profiling-funcs'])
|
|
||||||
|
|
||||||
elif env['target'] == 'release_debug':
|
elif env['target'] == 'release_debug':
|
||||||
env.Append(CPPDEFINES=['DEBUG_ENABLED'])
|
env.Append(CPPDEFINES=['DEBUG_ENABLED'])
|
||||||
|
|||||||
Reference in New Issue
Block a user