Преглед изворни кода

Small refactoring in HTML5 build scripts

Drop logic for non-existent 'profile' target
Leon Krause пре 7 година
родитељ
комит
504ffda8d7
2 измењених фајлова са 3 додато и 6 уклоњено
  1. 3 3
      platform/javascript/SCsub
  2. 0 3
      platform/javascript/detect.py

+ 3 - 3
platform/javascript/SCsub

@@ -30,8 +30,8 @@ zip_files = env.InstallAs([
     zip_dir.File('godot.wasm'),
     zip_dir.File('godot.html')
 ], [
-	js_wrapped,
-	wasm,
-	'#misc/dist/html/default.html'
+    js_wrapped,
+    wasm,
+    '#misc/dist/html/default.html'
 ])
 env.Zip('#bin/godot', zip_files, ZIPROOT=zip_dir, ZIPSUFFIX='${PROGSUFFIX}${ZIPSUFFIX}', ZIPCOMSTR='Archving $SOURCES as $TARGET')

+ 0 - 3
platform/javascript/detect.py

@@ -1,5 +1,4 @@
 import os
-import string
 import sys
 
 
@@ -48,8 +47,6 @@ def configure(env):
         # run-time performance.
         env.Append(CCFLAGS=['-Os'])
         env.Append(LINKFLAGS=['-Os'])
-        if env['target'] == 'profile':
-            env.Append(LINKFLAGS=['--profiling-funcs'])
 
     elif env['target'] == 'release_debug':
         env.Append(CPPDEFINES=['DEBUG_ENABLED'])