@@ -221,23 +221,25 @@ endif
221
221
ifeq ($(PLATFORM ) ,PLATFORM_WEB)
222
222
# -Os # size optimization
223
223
# -O2 # optimization level 2, if used, also set --memory-init-file 0
224
- # -s USE_GLFW=3 # Use glfw3 library (context/input management)
225
- # -s ALLOW_MEMORY_GROWTH=1 # to allow memory resizing -> WARNING: Audio buffers could FAIL!
226
- # -s TOTAL_MEMORY=16777216 # to specify heap memory size (default = 16MB) (67108864 = 64MB)
227
- # -s USE_PTHREADS=1 # multithreading support
228
- # -s WASM=0 # disable Web Assembly, emitted by default
229
- # -s ASYNCIFY # lets synchronous C/C++ code interact with asynchronous JS
230
- # -s FORCE_FILESYSTEM=1 # force filesystem to load/save files data
231
- # -s ASSERTIONS=1 # enable runtime checks for common memory allocation errors (-O1 and above turn it off)
224
+ # -sUSE_GLFW=3 # Use glfw3 library (context/input management)
225
+ # -sALLOW_MEMORY_GROWTH=1 # to allow memory resizing -> WARNING: Audio buffers could FAIL!
226
+ # -sTOTAL_MEMORY=16777216 # to specify heap memory size (default = 16MB) (67108864 = 64MB)
227
+ # -sUSE_PTHREADS=1 # multithreading support
228
+ # -sWASM=0 # disable Web Assembly, emitted by default
229
+ # -sASYNCIFY # lets synchronous C/C++ code interact with asynchronous JS
230
+ # -sFORCE_FILESYSTEM=1 # force filesystem to load/save files data
231
+ # -sASSERTIONS=1 # enable runtime checks for common memory allocation errors (-O1 and above turn it off)
232
+ # -sMINIFY_HTML=0 # minify generated html from shell.html
232
233
# --profiling # include information for code profiling
233
234
# --memory-init-file 0 # to avoid an external memory initialization code file (.mem)
234
235
# --preload-file resources # specify a resources folder for data compilation
235
236
# --source-map-base # allow debugging in browser with source map
236
- LDFLAGS += -s USE_GLFW=3 -s TOTAL_MEMORY=$(BUILD_WEB_HEAP_SIZE ) -s STACK_SIZE=$(BUILD_WEB_STACK_SIZE ) -s FORCE_FILESYSTEM=1
237
+ # --shell-file shell.html # define a custom shell .html and output extension
238
+ LDFLAGS += -sUSE_GLFW=3 -sTOTAL_MEMORY=$(BUILD_WEB_HEAP_SIZE ) -sSTACK_SIZE=$(BUILD_WEB_STACK_SIZE ) -sFORCE_FILESYSTEM=1 -sMINIFY_HTML=0
237
239
238
240
# Build using asyncify
239
241
ifeq ($(BUILD_WEB_ASYNCIFY),TRUE)
240
- LDFLAGS += -s ASYNCIFY -s ASYNCIFY_STACK_SIZE =$(BUILD_WEB_ASYNCIFY_STACK_SIZE )
242
+ LDFLAGS += -sASYNCIFY -sASYNCIFY_STACK_SIZE =$(BUILD_WEB_ASYNCIFY_STACK_SIZE )
241
243
endif
242
244
243
245
# Add resources building if required
@@ -247,7 +249,7 @@ ifeq ($(PLATFORM),PLATFORM_WEB)
247
249
248
250
# Add debug mode flags if required
249
251
ifeq ($(BUILD_MODE),DEBUG)
250
- LDFLAGS += -s ASSERTIONS =1 --profiling
252
+ LDFLAGS += -sASSERTIONS =1 --profiling
251
253
endif
252
254
253
255
# Define a custom shell .html and output extension
0 commit comments