Skip to content

Commit

Permalink
use DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=0 to work around
Browse files Browse the repository at this point in the history
emscripten-ports/SDL2#130 and allow us to put
multiple Modules (and canvases) on one page without having to use <iframe>s
  • Loading branch information
edmund-huber committed May 31, 2021
1 parent cf7029f commit ddd460a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ obj:
obj/%.o: %.cpp | obj
$(CXX) -c $(CXXFLAGS) $^ -o $@

bin/aspng_wasm.js: CXX = emcc $(CXXFLAGS) -s WASM=1 -s MODULARIZE=1 -s USE_LIBPNG -s USE_SDL=2
# See https://github.com/emscripten-ports/SDL2/issues/130#issuecomment-851701543
# for why we're using DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=0.
bin/aspng_wasm.js: CXX = emcc $(CXXFLAGS) -s WASM=1 -s MODULARIZE=1 -s USE_LIBPNG -s USE_SDL=2 -s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=0
bin/aspng_wasm.js: obj/gui.ow $(CORE_OBJECTS_WASM) | bin
$(CXX) $^ --embed-file tests/full_ripple_adder/_.png@input.png --embed-file font.png -o $@

Expand Down

0 comments on commit ddd460a

Please sign in to comment.