mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[build/emscripten] We now use the newer #canvas convention
This commit is contained in:
committed by
EmilieNumworks
parent
fd629de548
commit
ca89c06ffe
@@ -118,15 +118,6 @@ endif
|
||||
# Configure EMFLAGS
|
||||
EMFLAGS += -s WASM=0
|
||||
|
||||
# Since emcc 1.39.5, DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR is defautly
|
||||
# to 1 which discards old looks up to find DOM elements. However SDL relies on
|
||||
# the presence of a target "#canvas" that used to return the Module['canvas']
|
||||
# target but not anymore. It also expects the existence of Module['canvas'].
|
||||
# Until we fix the DOM of the html calling epsilon module, we use the deprecated
|
||||
# 'find_event_target'.
|
||||
# TODO: fix DOM of htmls files that uses epsilon js module
|
||||
EMFLAGS += -s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=0
|
||||
|
||||
# Configure LDFLAGS
|
||||
EMSCRIPTEN_MODULARIZE ?= 1
|
||||
LDFLAGS += -s MODULARIZE=$(EMSCRIPTEN_MODULARIZE) -s 'EXPORT_NAME="Epsilon"'
|
||||
|
||||
Reference in New Issue
Block a user